GpsBusInfo.cpp
上传用户:yffx2008
上传日期:2014-10-12
资源大小:12414k
文件大小:1k
- // GpsBusInfo.cpp: implementation of the CGpsBusInfo class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "GpsSC.h"
- #include "GpsBusInfo.h"
- #include "GpsPoint.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char THIS_FILE[]=__FILE__;
- #define new DEBUG_NEW
- #endif
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- CGpsBusInfo::CGpsBusInfo()
- {
- m_sBusID.Empty();
- }
- CGpsBusInfo::~CGpsBusInfo()
- {
- ClearTrackPointList();
- }
- void CGpsBusInfo::ClearTrackPointList()
- {
- CGpsPoint *pPoint = NULL;
- POSITION pos;
- pos = m_lBusTrackList.GetTailPosition();
- while(pos != NULL) {
- pPoint = (CGpsPoint*)m_lBusTrackList.GetPrev(pos);
- delete pPoint;
- }
- m_lBusTrackList.RemoveAll();
- }