www.pudn.com > agentnet.zip > MSG.CPP
// Msg.cpp: implementation of the CMsg class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Msg.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
//构造函数
CMsg::CMsg()
{
Init();
}
//析构函数
CMsg::~CMsg()
{
}
//初始化函数
void CMsg::Init()
{
m_strText=_T("");
m_strCommand=_T("");
m_strUser=_T("");
m_strToUser=_T("");
m_strPassword=_T("");
}
//序列化函数
void CMsg::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
ar<>m_strUser;
ar>>m_strToUser;
ar>>m_strPassword;
ar>>m_strCommand;
ar>>m_strText;
}
}
#ifdef _DEBUG
void CMsg::AssertValid() const
{
CObject::AssertValid();
}
void CMsg::Dump(CDumpContext& dc) const
{
CObject::Dump(dc);
}
#endif
IMPLEMENT_DYNAMIC(CMsg,CObject)