The base message class which signals an event.
A message is used by the Switchboard class to signal to any listeners that an event has happened. The only information it conveys is the message name (a user-definable string) and who sent the message.
Classes which implement the MessageListener interface can subscribe to specific types of messages to get notification.
- See Also
Definition at line 50 of file Message.h.
The default constructor creates a Message with the name "GenericMessage" and no sender.
Definition at line 34 of file Message.cpp.
||const String &
This is the constructor you should actually use – gives the Message a name and sender.
Definition at line 44 of file Message.cpp.
|const String & Message::GetMessageName
Get the name of this Message. Since all Messages come to the listener via the same ReceiveMessage function, this can be used to filter for specific notifications.
- The name of this message
Definition at line 50 of file Message.cpp.
Find out who requested this Message to be sent. This can have all sorts of semantics depending on what the Message itself is communicating.
- The sender
Definition at line 55 of file Message.cpp.
The documentation for this class was generated from the following files: