BRCrossStruct.cpp
上传用户:yffx2008
上传日期:2014-10-12
资源大小:12414k
文件大小:1k
源码类别:

交通/航空行业

开发平台:

Visual C++

  1. // BRCrossStruct.cpp: implementation of the CBRCrossStruct class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #include "stdafx.h"
  5. #include "GpsSC.h"
  6. #include "BRCrossStruct.h"
  7. #ifdef _DEBUG
  8. #undef THIS_FILE
  9. static char THIS_FILE[]=__FILE__;
  10. #define new DEBUG_NEW
  11. #endif
  12. //////////////////////////////////////////////////////////////////////
  13. // Construction/Destruction
  14. //////////////////////////////////////////////////////////////////////
  15. #define GPS_INFINITE 0x7fffffff
  16. CBRCrossStruct::CBRCrossStruct()
  17. {
  18. m_Distance = GPS_INFINITE;
  19. m_Double = 0;
  20. m_Adjust = 2;
  21. }
  22. CBRCrossStruct::~CBRCrossStruct()
  23. {
  24. }
  25. CBRCrossStruct& CBRCrossStruct::operator = (CBRCrossStruct& ds)
  26. {
  27. m_Distance = ds.m_Distance;
  28. m_Adjust = ds.m_Adjust;
  29. m_Double = ds.m_Double;
  30. m_cCross = ds.m_cCross;
  31. return *this;
  32. }
  33. void CBRCrossStruct::Clear()
  34. {
  35. m_Distance = GPS_INFINITE;
  36. m_Double = 0;
  37. m_Adjust = 2;
  38. m_cCross.Clear();
  39. }