📄 serializepath.cpp
字号:
// SerializePath.cpp : implementation file
//
#include "stdafx.h"
#include "GpsTest.h"
#include "SerializePath.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSerializePath
IMPLEMENT_SERIAL(CSerializePath,CObject,1);
CSerializePath::CSerializePath()
{
PointCount = 0;
}
void CSerializePath::Serialize(CArchive& ar)
{
if(ar.IsLoading ())
{
ar >> nLatitude >> nLongitude >> nSpeed >> nCourse >> m_strStatus;
}
else
{
ar << nLatitude << nLongitude << nSpeed << nCourse <<m_strStatus;
}
}
CSerializePath::~CSerializePath()
{
}
// Note: we add support for IID_IserializePath to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
/////////////////////////////////////////////////////////////////////////////
// CSerializePath message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -