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

Public Types

typedef std::map< int,
DtMessageCallbackList
DtIntCallbackMap

Public Member Functions

 DtIntMessageExecutive ()
 default constructor
virtual ~DtIntMessageExecutive ()
 destructor
virtual void addMessageCallback (int type, DtMessageCallbackFcn fcn, void *usrData)
 Add/Remove a function to be called when a particular message type is received.
virtual void removeMessageCallback (int type, DtMessageCallbackFcn fcn, void *usrData)
virtual void processMessage (const DtSimMessage &msg) const
 Call the callbacks registered for the Radio message's type.
virtual int numCallbacks (int type) const
 Get the number of callbacks registered for a radio message type.
virtual int messageType (const DtSimMessage &message) const =0
 Returns the string to be used as index onto the message exec list.
- Public Member Functions inherited from DtMessageExecutive
 DtMessageExecutive ()
 default constructor
virtual ~DtMessageExecutive ()
 destructor
virtual void addSimMessageCallback (DtMessageCallbackFcn fcn, void *usrData)
 Add/Remove DtSimMessage callback functions.
virtual void removeSimMessageCallback (DtMessageCallbackFcn fcn, void *usrData)
virtual int numSimCallbacks () const
 Get the number of sim message callbacks registered.

Protected Member Functions

 DtIntMessageExecutive (const DtIntMessageExecutive &orig)
 copy constructor not implemented
DtIntMessageExecutiveoperator= (const DtIntMessageExecutive &orig)
 assignment operator not implemented
- Protected Member Functions inherited from DtMessageExecutive
 DtMessageExecutive (const DtMessageExecutive &orig)
 copy constructor not implemented
DtMessageExecutiveoperator= (const DtMessageExecutive &orig)
 assignment operator not implemented

Protected Attributes

DtIntCallbackMap myIntCallbackMap
- Protected Attributes inherited from DtMessageExecutive
std::vector
< DtMessageCallbackInfo
mySimMessageCallbackList

Additional Inherited Members

- Static Public Member Functions inherited from DtMessageExecutive
static unsigned generateMessageId ()
 advances theSplitId and returns the value
static unsigned maximumSignalDataSize ()
 returns the maximum number of bytes that can be sent in a signal interaction's data field.
static DtTime timeoutCheckInterval ()
static void setTimeoutCheckInterval (DtTime nSecs)
static DtTime timeoutDuration ()
static void setTimeoutDuration (DtTime nSecs)
static int maximumContentSize ()
 returns the maximum number of bytes that can be added to a data interaction, and not overrun the maximum packet buffer size in VR-Link.
static void setMaximumContentSize (int sz)
 returns the maximum number of bytes that can be added to a data interaction, and not overrun the maximum packet buffer size in VR-Link.
- Static Protected Attributes inherited from DtMessageExecutive
static int theMaximumContentSize
static unsigned theMaxSignalDataSize
static unsigned theSplitId
static DtTime theTimeoutCheckInterval
static DtTime theTimeoutDuration

Member Typedef Documentation

Constructor & Destructor Documentation

DtIntMessageExecutive::DtIntMessageExecutive ( )

default constructor

virtual DtIntMessageExecutive::~DtIntMessageExecutive ( )
virtual

destructor

DtIntMessageExecutive::DtIntMessageExecutive ( const DtIntMessageExecutive orig)
protected

copy constructor not implemented

Member Function Documentation

virtual void DtIntMessageExecutive::addMessageCallback ( int  type,
DtMessageCallbackFcn  fcn,
void *  usrData 
)
virtual

Add/Remove a function to be called when a particular message type is received.

virtual void DtIntMessageExecutive::removeMessageCallback ( int  type,
DtMessageCallbackFcn  fcn,
void *  usrData 
)
virtual
virtual void DtIntMessageExecutive::processMessage ( const DtSimMessage msg) const
virtual

Call the callbacks registered for the Radio message's type.

Reimplemented from DtMessageExecutive.

virtual int DtIntMessageExecutive::numCallbacks ( int  type) const
virtual

Get the number of callbacks registered for a radio message type.

virtual int DtIntMessageExecutive::messageType ( const DtSimMessage message) const
pure virtual

Returns the string to be used as index onto the message exec list.

For example, to create a TaskMessageExecutive, this function could upcast the simMsg to a task msg, and then return the task()->type().

Implemented in DtInterfaceMessageExecutive.

DtIntMessageExecutive& DtIntMessageExecutive::operator= ( const DtIntMessageExecutive orig)
protected

assignment operator not implemented

Member Data Documentation

DtIntCallbackMap DtIntMessageExecutive::myIntCallbackMap
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)