![]() |
VR-Forces 4.10 Class Documentation
|
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 More... | |
| virtual | ~DtSimCommandDistributor () |
| destructor More... | |
| void | addCallback (DtSimCommandMessageType cmdType, DtSimCommandCallbackFcn fcn, void *usrData) |
| Adds a new callback for the specified command type. More... | |
| void | removeCallback (DtSimCommandMessageType cmdType, DtSimCommandCallbackFcn fcn, void *usrData) |
| Removes the specified callback for the given command type. More... | |
| void | invokeCallbacks (const DtSimCommand &simCmd) |
| Invokes all the callbacks registered for the command type of the given sim command. More... | |
Protected Member Functions | |
| DtSimCommandDistributor (const DtSimCommandDistributor &orig) | |
| copy constructor not implemented More... | |
| DtSimCommandDistributor & | operator= (const DtSimCommandDistributor &orig) |
| assignment operator not implemented More... | |
Protected Attributes | |
| DtSimCallbackListMap | mySimCommandCallbacks |
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.
| typedef DtSimCommandCallbackList::DtCallbackFunctionType DtSimCommandDistributor::DtSimCommandCallbackFcn |
| typedef std::map<DtSimCommandMessageType, DtSimCommandCallbackList> DtSimCommandDistributor::DtSimCallbackListMap |
| DtSimCommandDistributor::DtSimCommandDistributor | ( | ) |
default constructor
|
virtual |
destructor
|
protected |
copy constructor not implemented
| 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.
|
protected |
assignment operator not implemented
|
protected |