![]() |
VR-Forces Developer's Guide
|
This class encapsulates the sending and receiving of DtVrfObjectMessages though signal interactions. Parameters used in the sending or received with the message are passed using the DtSignalMessageParams structure.
Public Types | |
| typedef DtCallbackList < DtSignalMessageTransporterCallbackParams * > | DtMessageReceivedCallbackList |
Public Member Functions | |
| virtual | ~DtSignalMessageTransporter () |
| virtual bool | processVrfObjectMessageReceived (const DtSignalMessageParams ¶ms, const char *pVrfObjectMessageBuffer) |
| virtual void | sendInteraction (const DtSignalMessageParams ¶ms, int contentSize, const char *pContent) |
| virtual void | sendMessage (const DtSignalMessageParams ¶ms, const DtVrfObjectMessage *message) |
| virtual void | processSignalInteraction (const makVrfEvents::DtVrfSignalEvent *inter) |
| bool | enabled () const |
| virtual void | setEnabled (bool bEnabled) |
| virtual void | addMessageReceivedCallback (DtMessageReceivedCallbackList::DtCallbackFunctionType fcn, void *usr) |
| virtual void | removeMessageReceivedCallback (DtMessageReceivedCallbackList::DtCallbackFunctionType fcn, void *usr) |
Static Public Member Functions | |
| static DtSignalMessageTransporter * | create (DtCommunicationManager *exConn) |
Protected Member Functions | |
| DtSignalMessageTransporter (DtCommunicationManager *exConn) | |
| virtual bool | init () |
| virtual void | signalInteractionCallback (const makVrfEvents::DtEvent &) |
| virtual void | sendSignalInteraction (const makVrfEvents::DtVrfSignalEvent &signalInteraction) |
Protected Attributes | |
| bool | myEnabled |
| DtMessageReceivedCallbackList | myMessageReceivedCallbacks |
| DtCommunicationManager * | myCommunicationManager |
| boost::signals2::scoped_connection | mySignalForVrfSignalEventConnection |
| DtClock | myClock |
Private Member Functions | |
| DtSignalMessageTransporter () | |
| DtSignalMessageTransporter (const DtSignalMessageTransporter &orig) | |
| DtSignalMessageTransporter & | operator= (const DtSignalMessageTransporter &orig) |
| typedef DtCallbackList<DtSignalMessageTransporterCallbackParams*> DtSignalMessageTransporter::DtMessageReceivedCallbackList |
|
private |
Not implemented.
|
private |
Not implemented.
|
protected |
Call create() instead of the constructor.
|
virtual |
|
private |
Not implemented.
|
protectedvirtual |
Virtual init called from create().
|
static |
Calls constructor and init() on the new instance before returning it. Caller is responsible for deleting returned instance.
|
inline |
accessor/mutator for enabled state
References myEnabled.
|
virtual |
accessor/mutator for enabled state
|
virtual |
|
virtual |
|
virtual |
Sends the message, with the specified parameters, onto the network using a signal interaction.
|
virtual |
Add/remove callback that will be invoked each time a message is received by this transporter. Callbacks will receive a DtSignalMessageTransporterCallbackParams pointer, which contains the message as well as the message parameters that go with the message.
|
virtual |
Add/remove callback that will be invoked each time a message is received by this transporter. Callbacks will receive a DtSignalMessageTransporterCallbackParams pointer, which contains the message as well as the message parameters that go with the message.
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
Send the fully initialized signal interaction.
|
protected |
|
protected |
|
protected |
|
protected |