VR-Forces 4.10 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
DtVrfMsgPrinter Class Reference
Inheritance diagram for DtVrfMsgPrinter:
Inheritance graph
[legend]

Public Member Functions

 DtVrfMsgPrinter (DtEventManager *, bool printDataInteractions)
 Constructor. More...
 
void receiveMessage (DtDataInteraction *dataInter)
 Overridden to print out VR-Forces data interactions. More...
 
virtual bool init ()
 Edit this function to register your own custom messages. More...
 
virtual void dataInteractionCallback (const DtEvent &)
 
virtual void processDataInteraction (DtDataInteraction *interaction)
 
virtual bool getContentFromNet (DtDataInteraction *dataInter, DtSimInterfaceContent *&content) const
 Create/set objects based on DtDataInteraction information. More...
 
- Public Member Functions inherited from DtVrfMessageInterface
 DtVrfMessageInterface (DtEventManager *eventManager, bool useDefaultInterfaceFactory=true)
 
virtual ~DtVrfMessageInterface ()
 destructor More...
 
virtual bool createMessageExecutive ()
 Creator functions. More...
 
virtual void createSplitMessageCollector ()
 Replaces mySplitMessageCollector with a new one. More...
 
virtual DtSplitMessageCollectorsplitMessageCollector ()
 
virtual const
DtSplitMessageCollector
splitMessageCollector () const
 
virtual bool deliverMessage (const DtSimInterfaceMessage &msg, bool overrideTimestampOrder=true)
 Send a message. More...
 
virtual bool receiveMessage (const DtSimInterfaceMessage &msg)
 
virtual bool createAndDeliverMessage (const DtSimulationAddress &recipient, const DtSimInterfaceContent &content, bool overrideTimestampOrder=true)
 
virtual bool getContentFromNet (unsigned nBufferSize, int nContentType, const char *pContentBuffer, DtSimInterfaceContent *&content) const
 
virtual bool setContentForNet (DtDataInteraction *dataInter, DtSimInterfaceContent *content) const
 
virtual void setSequence (DtU32 num)
 Get/Set the sequence number. More...
 
virtual DtU32 sequence () const
 
virtual void setSessionId (DtU32 num)
 Get/Set the session id. More...
 
virtual DtU32 sessionId () const
 
virtual void setVrfMessageVersionSupported (DtU32 num)
 Get/Set the vrf message version. More...
 
virtual DtU32 vrfMessageVersionSupported () const
 
virtual bool isMessageVrfVersionSupported (DtDataInteraction *) const
 Returns true if this data interaction passes the message version check. More...
 
virtual void addVrfMessageVersionValidCallback (DtIsValidVrfMessageVersionFcn fcn, void *usr)
 Register vrf message interface version valid. More...
 
virtual void removeVrfMessageVersionValidCallback (DtIsValidVrfMessageVersionFcn fcn, void *usr)
 
virtual bool isVrfMessageVersionTransparentMessageType (int messageType) const
 Returns true if the given message type is message version transparent (i.e. More...
 
virtual bool isSessionTransparentMessageType (int messageType)
 Returns true if the given message type is session transparent (i.e. More...
 
DtEventManagereventManager ()
 Get the exercise connection ptr. More...
 
virtual void addEvent (const DtEvent &)
 {@ Adds an event to the event manager More...
 
virtual void addEvent (const DtDetonationInteraction &)
 Convenience functions. More...
 
virtual void addEvent (const DtFireInteraction &)
 
virtual void addEvent (const DtAcknowledgeInteraction &)
 
virtual void addEvent (const DtStopFreezeInteraction &)
 
virtual void addEvent (const DtStartResumeInteraction &)
 
virtual void addEvent (const DtDataInteraction &)
 
virtual void addEvent (const DtSignalInteraction &)
 
virtual void addEvent (const DtCommentInteraction &)
 
virtual void addEvent (const DtSensorFieldOfViewControlInter &)
 
virtual void addevent (const DtSimInterfaceContent &)
 
virtual void addEvent (const DtDataInteractionWithTransportType &)
 
virtual void addEvent (const DtInfluenceInteraction &)
 
virtual void addEvent (const DtEndGestureInter &)
 
virtual void addEvent (const DtExecuteGestureInter &)
 
virtual void clearEventManager ()
 
virtual DtInterfaceContentFactoryfactory () const
 Get/Set the factory used for creating interface content msgs. More...
 
virtual void setFactory (DtInterfaceContentFactory *fact)
 
virtual
DtInterfaceMessageExecutive
messageExecutive () const
 Get the message executive ptr. More...
 
virtual const DtSimulationAddress & messageAddress () const
 Get the address that should be used as the sender for all messages originating from the backend. More...
 
virtual bool sendMessage (const DtSimInterfaceMessage &message, bool overrideTimestampOrder)
 Send a sim interface message. More...
 
virtual void addMessageCallback (int type, DtMessageCallbackFcn fcn, void *usrData)
 Add/Remove interface message callback functions. More...
 
virtual void removeMessageCallback (int type, DtMessageCallbackFcn fcn, void *usrData)
 
virtual bool sendSplitContent (const char *pContentBuffer, unsigned int nBufferSize, int nContentType, const DtSimulationAddress &sender, const DtSimulationAddress &recipient, DtSplitMessageHandle &msgHandleReturn, bool overrideTimestampOrder)
 Sends oversize message content as multiple DtSimInterfaceMessages with DtIfSplitContent. More...
 
virtual bool sendSplitContent (const char *pContentBuffer, unsigned int nBufferSize, int nContentType, const DtSimulationAddress &sender, const DtSimulationAddress &recipient, bool overrideTimestampOrder)
 Sends oversize message content as multiple DtSimInterfaceMessages with DtIfSplitContent. More...
 
virtual void processReassembledContent (const char *pContent, int nContentSize, int nContentType, const DtSimulationAddress &messageIdSender, int messageIdNumber, const DtSimulationAddress &recipient)
 Reconstitute a message based on previously split content. More...
 
virtual void setEventManager (DtEventManager *)
 Sets the event manager. More...
 
virtual void netMessageCallback (const DtEvent &)
 
virtual void simInterfaceContentMessageEvent (const DtEvent &c)
 
virtual bool receiveMessage (const DtSimInterfaceContent &content)
 Call this to receive a message internally – this will not go out over the network. More...
 
virtual DtExerciseConn * exerciseConnection () const
 Gets the exercise connection from the event manager (if it supports it) More...
 

Protected Member Functions

 DtVrfMsgPrinter ()
 Default contstructor; not implemented. More...
 
- Protected Member Functions inherited from DtVrfMessageInterface
virtual void removeConnections ()
 
virtual void initializeConnections ()
 
bool sendNormalMessage (const DtSimInterfaceMessage &message, bool overrideTimestampOrder)
 Send a message, called from sendMessage if message content does not exceed maximum size. More...
 

Protected Attributes

DtDefaultVrfObjectMessageFactory myVrfObjectMsgFact
 
DtDefaultCondExprFactory myCondExprFact
 
DtDefaultStatementFactory myStmtFact
 
DtDefaultSimReportFactory myReportFact
 
DtDefaultSimTaskFactory myTaskFact
 
DtDefaultSetDataRequestFactory mySetDataFact
 
DtDefaultSimCommandFactory mySimCommandFact
 
DtDefaultAdminContentFactory myAdminContentFact
 
bool myPrintDataInteractions
 
- Protected Attributes inherited from DtVrfMessageInterface
DtInterfaceContentFactorymyContentFactory
 
DtInterfaceMessageExecutivemyMessageExecutive
 
DtEventManagermyEventManager
 
bool myOwnsEventManager
 
bool myCreatedInterfaceFactory
 
DtU32 mySequenceNumber
 
DtU32 mySessionId
 
DtSplitMessageCollectormySplitMessageCollector
 
DtU32 myVrfMessageVersionSupported
 The vrf version is set (by default) from the values found in version.h. More...
 
DtList myCallbacks
 

Additional Inherited Members

- Static Protected Member Functions inherited from DtVrfMessageInterface
static bool matchPattern (const DtSimulationAddress &address, const DtSimulationAddress &pattern)
 Utility function that returns true if the address matches the given pattern. More...
 

Constructor & Destructor Documentation

DtVrfMsgPrinter::DtVrfMsgPrinter ( DtEventManager ,
bool  printDataInteractions 
)

Constructor.

DtVrfMsgPrinter::DtVrfMsgPrinter ( )
protected

Default contstructor; not implemented.

Member Function Documentation

void DtVrfMsgPrinter::receiveMessage ( DtDataInteraction dataInter)
virtual

Overridden to print out VR-Forces data interactions.

Reimplemented from DtVrfMessageInterface.

virtual bool DtVrfMsgPrinter::init ( )
virtual

Edit this function to register your own custom messages.

Reimplemented from DtVrfMessageInterface.

virtual void DtVrfMsgPrinter::dataInteractionCallback ( const DtEvent )
virtual
virtual void DtVrfMsgPrinter::processDataInteraction ( DtDataInteraction interaction)
virtual
virtual bool DtVrfMsgPrinter::getContentFromNet ( DtDataInteraction dataInter,
DtSimInterfaceContent *&  content 
) const
virtual

Create/set objects based on DtDataInteraction information.

Reimplemented from DtVrfMessageInterface.

Member Data Documentation

DtDefaultVrfObjectMessageFactory DtVrfMsgPrinter::myVrfObjectMsgFact
protected
DtDefaultCondExprFactory DtVrfMsgPrinter::myCondExprFact
protected
DtDefaultStatementFactory DtVrfMsgPrinter::myStmtFact
protected
DtDefaultSimReportFactory DtVrfMsgPrinter::myReportFact
protected
DtDefaultSimTaskFactory DtVrfMsgPrinter::myTaskFact
protected
DtDefaultSetDataRequestFactory DtVrfMsgPrinter::mySetDataFact
protected
DtDefaultSimCommandFactory DtVrfMsgPrinter::mySimCommandFact
protected
DtDefaultAdminContentFactory DtVrfMsgPrinter::myAdminContentFact
protected
bool DtVrfMsgPrinter::myPrintDataInteractions
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)