VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
DtSimCommandDistributor Class Reference

Contains the DtSimCommandDistributor class declaration. More...

Public Types

typedef DtCallbackList< const
DtSimCommand & > 
DtSimCommandCallbackList
typedef
DtSimCommandCallbackList::DtCallbackFunctionType 
DtSimCommandCallbackFcn
typedef std::map
< DtSimCommandMessageType,
DtSimCommandCallbackList
DtSimCallbackListMap

Public Member Functions

 DtSimCommandDistributor ()
 default constructor
virtual ~DtSimCommandDistributor ()
 destructor
void addCallback (DtSimCommandMessageType cmdType, DtSimCommandCallbackFcn fcn, void *usrData)
 Adds a new callback for the specified command type.
void removeCallback (DtSimCommandMessageType cmdType, DtSimCommandCallbackFcn fcn, void *usrData)
 Removes the specified callback for the given command type.
void invokeCallbacks (const DtSimCommand &simCmd)
 Invokes all the callbacks registered for the command type of the given sim command.

Protected Member Functions

 DtSimCommandDistributor (const DtSimCommandDistributor &orig)
 copy constructor not implemented
DtSimCommandDistributoroperator= (const DtSimCommandDistributor &orig)
 assignment operator not implemented

Protected Attributes

DtSimCallbackListMap mySimCommandCallbacks

Detailed Description

Contains the DtSimCommandDistributor class declaration.

DtSimCommandDistributor manages callbacks on sim commands. Sim commands are usually processed once by a registered DtSimCommandExecutor, but the DtSimCommandDistributor allows sim components to do their own processing based on sim commands as well.

Member Typedef Documentation

Constructor & Destructor Documentation

DtSimCommandDistributor::DtSimCommandDistributor ( )

default constructor

virtual DtSimCommandDistributor::~DtSimCommandDistributor ( )
virtual

destructor

DtSimCommandDistributor::DtSimCommandDistributor ( const DtSimCommandDistributor orig)
protected

copy constructor not implemented

Member Function Documentation

void DtSimCommandDistributor::addCallback ( DtSimCommandMessageType  cmdType,
DtSimCommandCallbackFcn  fcn,
void *  usrData 
)

Adds a new callback for the specified command type.

void DtSimCommandDistributor::removeCallback ( DtSimCommandMessageType  cmdType,
DtSimCommandCallbackFcn  fcn,
void *  usrData 
)

Removes the specified callback for the given command type.

void DtSimCommandDistributor::invokeCallbacks ( const DtSimCommand simCmd)

Invokes all the callbacks registered for the command type of the given sim command.

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

assignment operator not implemented

Member Data Documentation

DtSimCallbackListMap DtSimCommandDistributor::mySimCommandCallbacks
protected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)