📄 mmsgroutinggroupchange.h
字号:
#if !defined(MMsgRoutingGroupChange_H)
#define MMsgRoutingGroupChange_H
// MMsgRoutingGroupChange.h
#include "MMsgRoutingClientChange.h"
namespace WONMsg {
//
// GroupChangeEx
//
class MMsgRoutingGroupChange : public MMsgRoutingClientChange {
public:
// Default ctor
MMsgRoutingGroupChange(void);
// RoutingServerMessage ctor
explicit MMsgRoutingGroupChange(const RoutingServerMessage& theMsgR);
// Copy ctor
MMsgRoutingGroupChange(const MMsgRoutingGroupChange& theMsgR);
// Destructor
virtual ~MMsgRoutingGroupChange(void);
// Assignment
MMsgRoutingGroupChange& operator=(const MMsgRoutingGroupChange& theMsgR);
// Virtual Duplicate from RoutingServerMessage
virtual TRawMsg* Duplicate(void) const;
// Debug output
virtual void Dump(std::ostream& os) const;
// Pack and Unpack the message
// Unpack will throw a BadMsgException is message is not of this type
virtual void* Pack(void);
virtual void Unpack(void);
// Member access
GroupId GetGroupId() const { return mGroupId; }
void SetGroupId(GroupId theGroupId) { mGroupId = theGroupId; }
protected:
GroupId mGroupId;
};
//
// GroupChangeEx
//
class MMsgRoutingGroupChangeEx : public MMsgRoutingClientChangeEx {
public:
// Default ctor
MMsgRoutingGroupChangeEx(void);
// RoutingServerMessage ctor
explicit MMsgRoutingGroupChangeEx(const RoutingServerMessage& theMsgR);
// Copy ctor
MMsgRoutingGroupChangeEx(const MMsgRoutingGroupChangeEx& theMsgR);
// Destructor
virtual ~MMsgRoutingGroupChangeEx(void);
// Assignment
MMsgRoutingGroupChangeEx& operator=(const MMsgRoutingGroupChangeEx& theMsgR);
// Virtual Duplicate from RoutingServerMessage
virtual TRawMsg* Duplicate(void) const;
// Debug output
virtual void Dump(std::ostream& os) const;
// Pack and Unpack the message
// Unpack will throw a BadMsgException is message is not of this type
virtual void* Pack(void);
virtual void Unpack(void);
// Member access
// Member access
GroupId GetGroupId() const { return mGroupId; }
void SetGroupId(GroupId theGroupId) { mGroupId = theGroupId; }
protected:
GroupId mGroupId;
};
// Inlines
inline TRawMsg* MMsgRoutingGroupChange::Duplicate(void) const
{ return new MMsgRoutingGroupChange(*this); }
inline TRawMsg* MMsgRoutingGroupChangeEx::Duplicate(void) const
{ return new MMsgRoutingGroupChangeEx(*this); }
}; // Namespace WONMsg
#endif // MMsgRoutingGroupChange_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -