VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtVrfTDLMsgPrinter Class Reference
Inheritance diagram for DtVrfTDLMsgPrinter:
Inheritance graph
[legend]

Public Member Functions

 DtVrfTDLMsgPrinter (DtExerciseConn *exConn, bool printDataInteractions)
 Constructor.
virtual bool receiveMessage (DtVrfTDLMessage *dataInter)
 Overridden to print out VR-Forces data interactions.
- Public Member Functions inherited from DtVrfTDLMessageInterface
 DtVrfTDLMessageInterface (DtExerciseConn *exConn, bool useDefaultInterfaceFactory=true)
 Constructor.
virtual ~DtVrfTDLMessageInterface ()
 destructor
virtual bool init ()
 Creates all the other pieces.
virtual bool createAndDeliverMessage (const DtSimulationAddress &recipient, const DtVrfTDLMessage &content, bool overrideTimestampOrder=true)
 If there is a recipient in the message it is supplanted by the recipient in the createAndDeliverMessage call.
virtual const DtSimulationAddress & messageAddress () const
 Get the address that should be used as the sender for all messages originating from the backend.
virtual bool sendMessage (DtVrfTDLMessage &message)
 Send a sim interface message.
virtual DtExerciseConn * exerciseConn ()
 Get the exercise connection ptr.
virtual void clearExerciseConn ()
 Sets the exercise conn to NULL.
virtual void setSequence (DtU32 num)
 Get/Set the sequence number.
virtual DtU32 sequence () const
virtual void addVrfTDLMessageCallback (DtVrfTDLMessageCallbackFcn fcn, void *usr)
 Adds/removes callbacks to be notified when a VRF TDL message is received. Does not matter the type – it will be triggered for all messages.
virtual void removeVrfTDLMessageCallback (DtVrfTDLMessageCallbackFcn fcn, void *usr)
virtual void setTransportTypeReliable (int contentType)
 Sets the transport type for the given content type to be \iable.
virtual void setTransportTypeBestEffort (int contentType)
 Sets the transport type for the given content type to be best-effort.
virtual void updateTransportTypeForMsg (const DtVrfTDLMessage &message)
 Update the transportation type to be used based on the given message.
virtual DtVrfTDLMessageFactoryfactory () const
 Get/Set the factory used for creating interface content msgs.
virtual void setFactory (DtVrfTDLMessageFactory *fact)

Protected Member Functions

 DtVrfTDLMsgPrinter ()
 Default contstructor; not implemented.
virtual bool getContentFromNet (DtDataInteraction *dataInter, DtVrfTDLMessage *&content) const
 Create/set objects based on DtDataInteraction information.
- Protected Member Functions inherited from DtVrfTDLMessageInterface
virtual bool setContentForNet (DtDataInteraction *dataInter, DtVrfTDLMessage &content) const
virtual void receiveMessage (DtDataInteraction *dataInter)
 Process a received data interaction from the network.
virtual bool matchPattern (const DtSimulationAddress &address, const DtSimulationAddress &pattern) const
virtual bool getContentFromNet (unsigned nBufferSize, const char *pContentBuffer, DtVrfTDLMessage *&content) const
virtual void invokeCallbacks (DtVrfTDLMessage *)
 Invokes callbacks for a particular VRF TDL message.

Protected Attributes

bool myPrintDataInteractions
- Protected Attributes inherited from DtVrfTDLMessageInterface
DtExerciseConn * myExerciseConnection
DtU32 mySequenceNumber
bool myAllowReliableDataInteractions
bool myUseReliableTransport
DtVrfTDLMessageFactorymyFactory
bool myCreatedInterfaceFactory
CallbackData myCallbacks
DtVrfTDLMessagemyVrfTDLMessageTranslator
std::set< intmyContentTypesToSendReliable
 Set of content types to be sent via reliable transport.

Additional Inherited Members

- Static Public Member Functions inherited from DtVrfTDLMessageInterface
static chardataInteractionChooser (DtExerciseConn *exConn, const DtInteraction &inter)
- Protected Types inherited from DtVrfTDLMessageInterface
typedef std::vector< std::pair
< DtVrfTDLMessageCallbackFcn,
void * > > 
CallbackData
- Static Protected Member Functions inherited from DtVrfTDLMessageInterface
static void netMessageCallback (DtDataInteraction *dataInter, void *usr)

Constructor & Destructor Documentation

DtVrfTDLMsgPrinter::DtVrfTDLMsgPrinter ( DtExerciseConn *  exConn,
bool  printDataInteractions 
)

Constructor.

DtVrfTDLMsgPrinter::DtVrfTDLMsgPrinter ( )
protected

Default contstructor; not implemented.

Member Function Documentation

virtual bool DtVrfTDLMsgPrinter::receiveMessage ( DtVrfTDLMessage dataInter)
virtual

Overridden to print out VR-Forces data interactions.

Reimplemented from DtVrfTDLMessageInterface.

virtual bool DtVrfTDLMsgPrinter::getContentFromNet ( DtDataInteraction *  dataInter,
DtVrfTDLMessage *&  content 
) const
protectedvirtual

Create/set objects based on DtDataInteraction information.

Reimplemented from DtVrfTDLMessageInterface.

Member Data Documentation

bool DtVrfTDLMsgPrinter::myPrintDataInteractions
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)