📄 kansweralarmprotcol.cpp
字号:
// KAnswerAlarmProtcol.cpp: implementation of the KAnswerAlarmProtcol class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "KAnswerAlarmProtcol.h"
#include "../KylinSystem/KSerializer.h"
#include "../KylinSystem/KGuid.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
const CString KAnswerAlarmProtcol::_TypeName = _T("Alarm.AnswerMessage");
const KGuid KAnswerAlarmProtcol::_TypeID(_T("{66B2CAA1-66A9-4883-AFAF-6BD698D771E2}"));
KAnswerAlarmProtcol::KAnswerAlarmProtcol()
{
}
KAnswerAlarmProtcol::~KAnswerAlarmProtcol()
{
}
const KGuid KAnswerAlarmProtcol::TypeID()
{
return _TypeID;
}
const CString KAnswerAlarmProtcol::TypeName()
{
return _TypeName;
}
const KGuid KAnswerAlarmProtcol::GetTypeID()
{
return _TypeID;
}
const CString KAnswerAlarmProtcol::GetTypeName()
{
return _TypeName;
}
void KAnswerAlarmProtcol::Serialize(CArchive& ar)
{
KSerializer mSerializer(ar);
if(ar.IsStoring())
{
mSerializer.Write(this->EventID);
mSerializer.Write(this->AnswerMsg);
mSerializer.Write(this->AnswerPerson);
mSerializer.Write(this->AnswerMsgTime);
mSerializer.Write(this->HadAnswered);
mSerializer.Write(this->IsReceived);
mSerializer.Write(this->IsUseReaded);
mSerializer.Write(this->UseName);
}
else
{
mSerializer.Read(this->EventID);
mSerializer.Read(this->AnswerMsg);
mSerializer.Read(this->AnswerPerson);
mSerializer.Read(this->AnswerMsgTime);
mSerializer.Read(this->HadAnswered);
mSerializer.Read(this->IsReceived);
mSerializer.Read(this->IsUseReaded);
mSerializer.Read(this->UseName);
}
}
CString KAnswerAlarmProtcol::GetIsUseReaded()
{
return this->IsUseReaded;
}
void KAnswerAlarmProtcol::SetIsUseReaded(CString strValue)
{
this->IsUseReaded=strValue;
}
CString KAnswerAlarmProtcol::GetHadAnswered()
{
return this->HadAnswered;
}
void KAnswerAlarmProtcol::SetHadAnswered(CString strValue)
{
this->HadAnswered=strValue;
}
CString KAnswerAlarmProtcol::GetAnswerMsg()
{
return this->AnswerMsg;
}
void KAnswerAlarmProtcol::SetAnswerMsg(CString strValue)
{
this->AnswerMsg=strValue;
}
CString KAnswerAlarmProtcol::GetAnswerPerson()
{
return this->AnswerPerson;
}
void KAnswerAlarmProtcol::SetAnswerPerson(CString strValue)
{
this->AnswerPerson=strValue;
}
CString KAnswerAlarmProtcol::GetAnswerMsgTime()
{
return this->AnswerMsgTime;
}
void KAnswerAlarmProtcol::SetAnswerMsgTime(CString strValue)
{
this->AnswerMsgTime=strValue;
}
CString KAnswerAlarmProtcol::GetEventID()
{
return this->EventID;
}
void KAnswerAlarmProtcol::SetEventID(CString strValue)
{
this->EventID=strValue;
}
CString KAnswerAlarmProtcol::GetUseName()
{
return this->UseName;
}
void KAnswerAlarmProtcol::SetUseName(CString strValue)
{
this->UseName=strValue;
}
CString KAnswerAlarmProtcol::GetIsReceived()
{
return this->IsReceived;
}
void KAnswerAlarmProtcol::SetIsReceived(CString strValue)
{
IsReceived=strValue;
}
void KAnswerAlarmProtcol::SetUserID(CString strValue)
{
UserID=strValue;
}
CString KAnswerAlarmProtcol::GetUserID()
{
return UserID;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -