VR-Forces 5.0.3 Developer's Guide
 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.

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.

Public Types

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

Public Member Functions

 DtSimCommandDistributor ()
 
virtual ~DtSimCommandDistributor ()
 
void addCallback (DtSimCommandMessageType cmdType, DtSimCommandCallbackFcn fcn, void *usrData)
 
void removeCallback (DtSimCommandMessageType cmdType, DtSimCommandCallbackFcn fcn, void *usrData)
 
void invokeCallbacks (const DtSimCommand &simCmd)
 

Protected Member Functions

 DtSimCommandDistributor (const DtSimCommandDistributor &orig)
 
DtSimCommandDistributoroperator= (const DtSimCommandDistributor &orig)
 

Protected Attributes

tbb::spin_rw_mutex mySimCommandCallbacksMutex
 
DtSimCallbackListMap mySimCommandCallbacks
 

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

tbb::spin_rw_mutex DtSimCommandDistributor::mySimCommandCallbacksMutex
protected
DtSimCallbackListMap DtSimCommandDistributor::mySimCommandCallbacks
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)