![]() |
VR-Forces 4.1 Class Documentation
|
This class manages encoding and decoding of messages to and from an external comms effects server. More...
Classes | |
| struct | _tSplitContentEntry |
Public Types | |
| typedef struct DtExternalCommsMessageTransporter::_tSplitContentEntry | SplitContentEntry |
| typedef std::map < DtSplitMessageKey, std::map < unsigned, SplitContentEntry > > | SplitContentMap |
| typedef DtCallbackList< const DtExternalCommsProcessMessageData & > | DtProcessMessageCallbackList |
| typedef DtCallbackList< const DtExternalCommsTimeoutData & > | DtTimeoutCallbackList |
| typedef std::pair < DtExternalCommsMessageParams, DtVrfObjectMessageConstPtr > | DtExternalCommsMessageCallbackParams |
| typedef DtCallbackList< const DtExternalCommsMessageCallbackParams & > | DtNewMessageCallbackList |
| typedef DtCallbackList< const DtExternalCommsReadyToSendData & > | DtReadyToSendCallbackList |
Public Member Functions | |
| virtual | ~DtExternalCommsMessageTransporter () |
| virtual void | clearSplitContent () |
| erase buffers held in split content map | |
| virtual bool | processSplitContent (const DtExternalCommsMessageParams ¶ms, const DtSignalMessageHeader &msgHdr, const char *pContent) |
| virtual void | processSplitContentTimeout (const DtSplitMessageKey &key) |
| virtual bool | processVrfObjectMessageReceived (const DtExternalCommsMessageParams ¶ms, const char *pVrfObjectMessageBuffer) |
| virtual bool | reassembleVrfObjectMessage (const DtExternalCommsMessageParams ¶ms, const DtSignalMessageHeader &msgHdr) |
| virtual void | removeSplitContent (const DtSplitMessageKey &key) |
| virtual void | sendInteraction (const DtExternalCommsMessageParams ¶ms, const DtSignalMessageHeader &msgHdr, const char *pContent) |
| virtual void | sendMessage (const DtExternalCommsMessageParams ¶ms, DtVrfObjectMessage *message) |
| Sends a new signal PDU with the proper external comms header, and the specified message as contents. | |
| virtual void | addProcessMessageCallback (DtProcessMessageCallbackList::DtCallbackFunctionType fcn, void *usr) |
| Add/remove callbacks for receipt of an external comms "Process Message" commands. | |
| virtual void | removeProcessMessageCallback (DtProcessMessageCallbackList::DtCallbackFunctionType fcn, void *usr) |
| Add/remove callbacks for receipt of an external comms "Process Message" commands. | |
| virtual void | addTimeoutCallback (DtTimeoutCallbackList::DtCallbackFunctionType fcn, void *usr) |
| Add/remove callbacks for the receipt of an external comms "Timeout" command. | |
| virtual void | removeTimeoutCallback (DtTimeoutCallbackList::DtCallbackFunctionType fcn, void *usr) |
| Add/remove callbacks for the receipt of an external comms "Timeout" command. | |
| virtual void | addReadyToSendCallback (DtReadyToSendCallbackList::DtCallbackFunctionType fcn, void *usr) |
| Callback invoked whenever a Ready To Send Signal message is received by the transporter. | |
| virtual void | removeReadyToSendCallback (DtReadyToSendCallbackList::DtCallbackFunctionType fcn, void *usr) |
| Callback invoked whenever a Ready To Send Signal message is received by the transporter. | |
| virtual void | addNewMessageCallback (DtNewMessageCallbackList::DtCallbackFunctionType fcn, void *usr) |
| Callback invoked each time a new external comms signal message is read from the network. | |
| virtual void | removeNewMessageCallback (DtNewMessageCallbackList::DtCallbackFunctionType fcn, void *usr) |
| Callback invoked each time a new external comms signal message is read from the network. | |
| bool | enabled () const |
| accessor/mutator for enabled state | |
| virtual void | setEnabled (bool bEnabled) |
| accessor/mutator for enabled state | |
Static Public Member Functions | |
| static DtExternalCommsMessageTransporter * | create (DtExerciseConn *exConn) |
| Use this as constructor. | |
| static void | splitContentTimeoutCbk (const DtSplitMessageKey &key, void *pUsr) |
Protected Member Functions | |
| DtExternalCommsMessageTransporter (DtExerciseConn *exConn) | |
| Call create() instead of the constructor. | |
| virtual bool | init () |
| Virtual init called from create(). | |
| virtual DtString | entityIdToString (const DtEntityIdentifier &id) const |
| virtual void | processDataInteraction (DtDataInteraction *interaction) |
| If the interaction is one of the external comms interaction types, calls the corresponding processExternalCommsxxx methods. | |
| virtual void | processExternalCommsProcessMessage (DtDataInteraction *processMessageInteraction) |
| virtual void | processExternalCommsTimout (DtDataInteraction *timeoutInteraction) |
| virtual void | processExternalCommsReadyToSend (DtDataInteraction *readyToSendInteraction) |
| virtual void | processSignalInteraction (DtSignalInteraction *inter) |
| virtual void | sendSignalInteraction (DtSignalInteraction &signalInteraction) |
| Send the fully initialized signal interaction. | |
Static Protected Member Functions | |
| static void | dataInteractionCallback (DtDataInteraction *interaction, void *usr) |
| static void | signalInteractionCallback (DtSignalInteraction *inter, void *usr) |
Private Member Functions | |
| DtExternalCommsMessageTransporter () | |
| Not Implemented. | |
| DtExternalCommsMessageTransporter (const DtExternalCommsMessageTransporter &orig) | |
| Not Implemented. | |
| DtExternalCommsMessageTransporter & | operator= (const DtExternalCommsMessageTransporter &orig) |
| Not Implemented. | |
This class manages encoding and decoding of messages to and from an external comms effects server.
| typedef struct DtExternalCommsMessageTransporter::_tSplitContentEntry DtExternalCommsMessageTransporter::SplitContentEntry |
| typedef std::map<DtSplitMessageKey, std::map<unsigned, SplitContentEntry> > DtExternalCommsMessageTransporter::SplitContentMap |
| typedef DtCallbackList<const DtExternalCommsProcessMessageData&> DtExternalCommsMessageTransporter::DtProcessMessageCallbackList |
| typedef DtCallbackList<const DtExternalCommsTimeoutData&> DtExternalCommsMessageTransporter::DtTimeoutCallbackList |
| typedef std::pair<DtExternalCommsMessageParams, DtVrfObjectMessageConstPtr> DtExternalCommsMessageTransporter::DtExternalCommsMessageCallbackParams |
| typedef DtCallbackList<const DtExternalCommsMessageCallbackParams&> DtExternalCommsMessageTransporter::DtNewMessageCallbackList |
| typedef DtCallbackList<const DtExternalCommsReadyToSendData&> DtExternalCommsMessageTransporter::DtReadyToSendCallbackList |
|
private |
Not Implemented.
|
private |
Not Implemented.
|
protected |
Call create() instead of the constructor.
|
virtual |
|
private |
Not Implemented.
|
protectedvirtual |
Virtual init called from create().
|
static |
Use this as constructor.
Calls the constructor, and then init() on the newly created instance before returning it.
|
virtual |
Add/remove callbacks for receipt of an external comms "Process Message" commands.
This command indicates that comms server has approved a message to be sent to a particular receiver.
|
virtual |
Add/remove callbacks for receipt of an external comms "Process Message" commands.
This command indicates that comms server has approved a message to be sent to a particular receiver.
|
virtual |
Add/remove callbacks for the receipt of an external comms "Timeout" command.
This command indicates that the comms server is done with this message and no more Process Message commands will be received on this message id.
|
virtual |
Add/remove callbacks for the receipt of an external comms "Timeout" command.
This command indicates that the comms server is done with this message and no more Process Message commands will be received on this message id.
|
virtual |
Callback invoked whenever a Ready To Send Signal message is received by the transporter.
Data contains the entity and radio index for which this ready to send signal applies.
|
virtual |
Callback invoked whenever a Ready To Send Signal message is received by the transporter.
Data contains the entity and radio index for which this ready to send signal applies.
|
virtual |
Callback invoked each time a new external comms signal message is read from the network.
|
virtual |
Callback invoked each time a new external comms signal message is read from the network.
|
virtual |
erase buffers held in split content map
|
inline |
accessor/mutator for enabled state
References myEnabled.
|
virtual |
accessor/mutator for enabled state
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Sends a new signal PDU with the proper external comms header, and the specified message as contents.
|
static |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
If the interaction is one of the external comms interaction types, calls the corresponding processExternalCommsxxx methods.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
protectedvirtual |
Send the fully initialized signal interaction.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |