gpsbusline.cpp

来自「用VC写的监控中心后台程序。 代码全」· C++ 代码 · 共 42 行

CPP
42
字号
// GpsBusLine.cpp: implementation of the CGpsBusLine class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "GpsSC.h"
#include "GpsBusLine.h"
#include "GpsBusInfo.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CGpsBusLine::CGpsBusLine()
{
	m_sBusLineID.Empty();
}

CGpsBusLine::~CGpsBusLine()
{
	ClearBusList();	
}

void CGpsBusLine::ClearBusList()
{
	CGpsBusInfo		*pBus = NULL;
	POSITION		pos;

	pos = m_lBusLineList.GetTailPosition();
	while(pos != NULL) {
		pBus = (CGpsBusInfo*)m_lBusLineList.GetPrev(pos);
		delete pBus;
	}
	m_lBusLineList.RemoveAll();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?