This commit is contained in:
coco
2026-07-03 16:05:30 +08:00
commit df489d5640
1101 changed files with 779140 additions and 0 deletions
@@ -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();
}