a
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
// Channel.cpp: implementation of the CChannel class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "Channel.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Construction/Destruction
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
CChannel::CChannel()
|
||||
{
|
||||
m_iMaxLevel = (int)VAL_ZERO;
|
||||
m_iPtAmount = (int)VAL_ZERO;
|
||||
|
||||
m_iChNumber = (int)VAL_ZERO;
|
||||
m_iEAmount = (int)VAL_ZERO;
|
||||
|
||||
m_pMedium = NULL;
|
||||
}
|
||||
|
||||
CChannel::~CChannel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CChannel::ClearSptRecList()
|
||||
{
|
||||
int iRecIndex = (int)VAL_ZERO;
|
||||
int iRecCount = (int)VAL_ZERO;
|
||||
|
||||
POSITION pos = NULL;
|
||||
iRecCount = m_sptRecArray.GetSize();
|
||||
|
||||
CSptRecord* pSptRecord = NULL;
|
||||
while (iRecIndex < iRecCount)
|
||||
{
|
||||
pSptRecord = (CSptRecord*)(m_sptRecArray.GetAt(iRecIndex));
|
||||
if (pSptRecord != NULL)
|
||||
{
|
||||
delete pSptRecord;
|
||||
pSptRecord = NULL;
|
||||
}
|
||||
iRecIndex++;
|
||||
}
|
||||
m_sptRecArray.RemoveAll();
|
||||
}
|
||||
Reference in New Issue
Block a user