48 lines
935 B
C++
48 lines
935 B
C++
// 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();
|
|
}
|