|
Public Member Functions | |
ScriptMsgListener () | |
DECLARE_CONOBJECT (ScriptMsgListener) | |
virtual bool | onAdd () |
Called when the object is added to the sim. | |
virtual void | onRemove () |
Called when the object is removed from the sim. | |
virtual bool | onMessageReceived (StringTableEntry queue, const char *event, const char *data) |
Callback for when messages are received. | |
virtual bool | onMessageObjectReceived (StringTableEntry queue, Message *msg) |
Callback for when message objects are received. | |
virtual void | onAddToQueue (StringTableEntry queue) |
Callback for when the listener is added to a queue. | |
virtual void | onRemoveFromQueue (StringTableEntry queue) |
Callback for when the listener is removed from a queue. | |
Private Types | |
typedef SimObject | Parent |
typedef Dispatcher::IMessageListener | IMLParent |
typedef SimObject ScriptMsgListener::Parent [private] |
typedef Dispatcher::IMessageListener ScriptMsgListener::IMLParent [private] |
ScriptMsgListener::ScriptMsgListener | ( | ) |
ScriptMsgListener::DECLARE_CONOBJECT | ( | ScriptMsgListener | ) |
virtual bool ScriptMsgListener::onAdd | ( | ) | [virtual] |
virtual void ScriptMsgListener::onRemove | ( | ) | [virtual] |
virtual bool ScriptMsgListener::onMessageReceived | ( | StringTableEntry | queue, | |
const char * | event, | |||
const char * | data | |||
) | [virtual] |
Callback for when messages are received.
queue | The name of the queue the message was dispatched to | |
msg | The type of message | |
data | The data for the message |
Implements Dispatcher::IMessageListener.
Reimplemented in MessageForwarder.
virtual bool ScriptMsgListener::onMessageObjectReceived | ( | StringTableEntry | queue, | |
Message * | msg | |||
) | [virtual] |
Callback for when message objects are received.
queue | The name of the queue the message was dispatched to | |
msg | The message object |
Implements Dispatcher::IMessageListener.
Reimplemented in MessageForwarder.
virtual void ScriptMsgListener::onAddToQueue | ( | StringTableEntry | queue | ) | [virtual] |
Callback for when the listener is added to a queue.
The default implementation of onAddToQueue() and onRemoveFromQueue() provide tracking of the queues this listener is added to through the mQueues member. Overrides of onAddToQueue() or onRemoveFromQueue() should ensure they call the parent implementation in any overrides.
queue | The name of the queue that the listener added to |
Reimplemented from Dispatcher::IMessageListener.
virtual void ScriptMsgListener::onRemoveFromQueue | ( | StringTableEntry | queue | ) | [virtual] |
Callback for when the listener is removed from a queue.
The default implementation of onAddToQueue() and onRemoveFromQueue() provide tracking of the queues this listener is added to through the mQueues member. Overrides of onAddToQueue() or onRemoveFromQueue() should ensure they call the parent implementation in any overrides.
queue | The name of the queue the listener was removed from |
Reimplemented from Dispatcher::IMessageListener.