|
/**********************************************************************
UML StateWizard provides its software under the LGPL License and
zlib/libpng License.
Email us at info@intelliwizard.com for any information, suggestions and
feature requestions.
Home Page: http://www.intelliwizard.com
*************************************************************************/
#include "StdAfx.h"
#include ".\dataitem.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CDataItem::CDataItem(void)
{
this->pPrjFileListAddr = NULL;
this->pPrjNameListAddr = NULL;
this->pEventIdListAddr = NULL;
}
CDataItem::~CDataItem(void)
{
if(this->pPrjFileListAddr != NULL)
delete[] this->pPrjFileListAddr;
if(this->pPrjNameListAddr != NULL)
delete[] this->pPrjNameListAddr;
if(this->pEventIdListAddr != NULL)
delete[] this->pEventIdListAddr;
}
void CDataItem::Convert2StringArray(CStringArray &array, std::vector<BSTR> bstr_vect)
{
array.RemoveAll();
std::vector<BSTR>::iterator it = bstr_vect.begin();
for (; it != bstr_vect.end(); it++)
{
CString sItem;
sItem = (BSTR)(*it);
array.Add(sItem);
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.