?? gpscolorblock.cpp
字號:
// 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();
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -