serializepath.cpp

来自「广宇GPS系统」· C++ 代码 · 共 46 行

CPP
46
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?