?? public.cpp
字號:
// public.cpp: implementation of the Cpublic class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "alfa.h"
#include "public.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(Cpublic,CObject,1)
Cpublic::Cpublic()
{
m_acctime=300;
m_acctype='T';
m_address=608;
m_coordtype=0;
m_dectime=300;
m_dectype='T';
m_irq=7;
m_unit=1;
m_maxspeed=1000;
m_interpolate=5;
}
Cpublic::~Cpublic()
{
}
void Cpublic::Serialize(CArchive & ar)
{
if(ar.IsLoading())
{
ar >> m_acctime;
ar >> m_acctype;
ar >> m_address;
ar >> m_coordtype;
ar >> m_dectime;
ar >> m_dectype;
ar >> m_irq;
ar >> m_unit;
ar >> m_maxspeed;
ar >> m_interpolate;
}
else
{
ar << m_acctime;
ar << m_acctype;
ar << m_address;
ar << m_coordtype;
ar << m_dectime;
ar << m_dectype;
ar << m_irq;
ar << m_unit;
ar << m_maxspeed;
ar << m_interpolate;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -