📄 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();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -