#include "StdAfx.h"
|
#include "MBFireOutputSet.h"
|
|
CMBFireOutputSet::CMBFireOutputSet(void)
|
{
|
RemoveAll();
|
}
|
|
|
CMBFireOutputSet::~CMBFireOutputSet(void)
|
{
|
RemoveAll();
|
}
|
|
void CMBFireOutputSet::GetVector( CMBFireOutputSetInfoVector &vector )
|
{
|
vector.clear();
|
vector = m_vector;
|
}
|
|
bool CMBFireOutputSet::Add( CMBFireOutputSetInfo *pFireOutputSetInfo )
|
{
|
if( NULL == pFireOutputSetInfo )
|
return false;
|
|
|
m_vector.push_back(pFireOutputSetInfo);
|
|
return true;
|
}
|
|
bool CMBFireOutputSet::RemoveAll()
|
{
|
CMBFireOutputSetInfoVector::iterator it;
|
CMBFireOutputSetInfo *pFireOutputSetInfo = NULL;
|
|
for( it = m_vector.begin();it != m_vector.end();it++ )
|
{
|
pFireOutputSetInfo = *it;
|
delete pFireOutputSetInfo;
|
pFireOutputSetInfo = NULL;
|
}
|
|
m_vector.clear();
|
|
return true;
|
}
|