Definition at line 11 of file BaseMsg.h.
Public Member Functions | |
BaseMsg (const std::string &listenerName, const std::string &name) | |
Create msg. | |
virtual | ~BaseMsg () |
virtual BaseMsg * | clone () const =0 |
virtual void | sendActual (BaseListener *listener) const =0 |
void | sendClone () const |
Send copy of message. | |
bool | equalsName (const std::string &name) const |
const std::string & | getMsgName () const |
const std::string & | getListenerName () const |
virtual std::string | toString () const |
Protected Attributes | |
std::string | m_listenerName |
std::string | m_name |
|
Create msg.
Definition at line 19 of file BaseMsg.cpp. 00020 : m_listenerName(listenerName), m_name(name) 00021 { 00022 /* empty */ 00023 }
|
|
Definition at line 17 of file BaseMsg.h. 00017 {}
|
|
|
|
Definition at line 22 of file BaseMsg.h. 00023 { return m_name == name; }
|
|
Definition at line 25 of file BaseMsg.h. 00025 { return m_listenerName; }
|
|
Definition at line 24 of file BaseMsg.h. 00024 { return m_name; }
|
|
|
|
Send copy of message.
Definition at line 29 of file BaseMsg.cpp. 00030 { 00031 //NOTE: message type must be preserved 00032 MessagerAgent::agent()->forwardNewMsg(clone()); 00033 }
|
|
Reimplemented in IntMsg, and StringMsg. Definition at line 36 of file BaseMsg.cpp. 00037 { 00038 std::string result = m_listenerName; 00039 result.append("->" + m_name); 00040 return result; 00041 }
|
|
|
|
|