RoadPoint.cpp
上传用户:yffx2008
上传日期:2014-10-12
资源大小:12414k
文件大小:1k
- // RoadPoint.cpp: implementation of the CRoadPoint class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "GpsSC.h"
- #include "RoadPoint.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char THIS_FILE[]=__FILE__;
- #define new DEBUG_NEW
- #endif
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- CRoadPoint::CRoadPoint()
- {
- int i;
- BigRoad_SN_Bytes = 2;
- for(i = 0; i < BigRoad_SN_Bytes; i++) {
- BigRoad_SerialNumber[i] = 0;
- }
-
- OutOfMap = 0;
- OutOfMap_Bytes = 1; //相同的两个字节表示
- m_bIsModify = false;
- }
- CRoadPoint& CRoadPoint::operator = (const CRoadPoint& ds)
- {
- BigRoad_SerialNumber[0] = ds.BigRoad_SerialNumber[0];
- BigRoad_SerialNumber[1] = ds.BigRoad_SerialNumber[1];
- OutOfMap = ds.OutOfMap;
- m_bIsModify = ds.m_bIsModify;
- m_dgx = ds.m_dgx;
- m_dgy = ds.m_dgy;
- m_lx = ds.m_lx;
- m_ly = ds.m_ly;
- return *this;
- }
- CRoadPoint::~CRoadPoint()
- {
- }
- void CRoadPoint::Clear()
- {
- int i;
- BigRoad_SN_Bytes = 2;
- for(i = 0; i < BigRoad_SN_Bytes; i++) {
- BigRoad_SerialNumber[i] = 0;
- }
-
- OutOfMap = 0;
- OutOfMap_Bytes = 1; //相同的两个字节表示
- m_bIsModify = false;
- }