12345678910111213141516171819202122232425262728293031323334353637383940 |
- #include "StdAfx.h"
- #include"MessageInfo.h"
- //-------------MessageInfo--------------------------
- MessageInfo::MessageInfo(void)
- {
- SetKey("MessageInfo");
- CodeID.SetKey("CodeID");
- Type.SetKey("Type");
- Level.SetKey("Level");
- Resouceinfo.SetKey("Resouceinfo");
- Description.SetKey("Description");
- }
- MessageInfo::~MessageInfo(void)
- {
- }
- void MessageInfo::GetResDataObject(ResDataObject &obj)
- {
- obj.add(CodeID.GetKey(), ((string)CodeID).c_str());
- obj.add(Type.GetKey(), Type);
- obj.add(Level.GetKey(), Level);
- obj.add(Resouceinfo.GetKey(), ((string)Resouceinfo).c_str());
- obj.add(Description.GetKey(), ((string)Description).c_str());
- };
- const char * MessageInfo::GetVal()
- {
- ResDataObject obj;
- obj.add(CodeID.GetKey(), CodeID.GetVal());
- obj.add(Type.GetKey(), Type.GetVal());
- obj.add(Level.GetKey(), Level.GetVal());
- obj.add(Resouceinfo.GetKey(), Resouceinfo.GetVal());
- obj.add(Description.GetKey(), Description.GetVal());
- (m_ValString) = obj.encode();
- return m_ValString.c_str();
- };
|