GpsColorBlock.cpp
上传用户:yffx2008
上传日期:2014-10-12
资源大小:12414k
文件大小:1k
- // GpsColorBlock.cpp: implementation of the CGpsColorBlock class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "GpsSC.h"
- #include "GpsColorBlock.h"
- #include "GpsPoint.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char THIS_FILE[]=__FILE__;
- #define new DEBUG_NEW
- #endif
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- CGpsColorBlock::CGpsColorBlock()
- {
- m_ColorBlockTotal = 0;
- m_ColorBlock_Bytes = 2;
- m_ColorValue = 0;
- m_ColorValue_Bytes = 2;
- m_ColorBlock_PointTotal = 0;
- m_ColorBlock_PointTotal_Bytes = 2;
- m_BlockNumber = 0;
- }
- CGpsColorBlock::~CGpsColorBlock()
- {
- ClearColorBlockPointList();
- }
- void CGpsColorBlock::ClearColorBlockPointList()
- {
- CGpsPoint *pGpsPoint;
- POSITION pos = ColorBlockPointList.GetHeadPosition();
- while(pos != NULL) {
- pGpsPoint = (CGpsPoint*)ColorBlockPointList.GetNext(pos);
- delete pGpsPoint;
- }
- ColorBlockPointList.RemoveAll();
- }