GpsBusLine.cpp
上传用户:yffx2008
上传日期:2014-10-12
资源大小:12414k
文件大小:1k
- // 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();
- }