![]() |
VR-Forces Developer's Guide
|
Factory for creating DtSimCommandExecutor instances.

Public Member Functions | |
| DtSimCommandExecutorFactory () | |
| virtual | ~DtSimCommandExecutorFactory () |
| virtual void | addCreatorFcn (const DtSimCommandMessageType &type, DtSimCommandExecutorCreatorFcn fcn) |
| virtual void | removeCreatorFcn (const DtSimCommandMessageType &type, DtSimCommandExecutorCreatorFcn fcn) |
| virtual void | registerDefaultCreatorFcn (DtSimCommandExecutorCreatorFcn fcn) |
| virtual DtSimCommandExecutor * | createSimCommandExecutor (const DtSimCommandMessageType &type, DtSimulationServices *simManager) const |
Static Public Member Functions | |
| static DtSimCommandExecutorFactory * | create () |
Protected Types | |
| typedef std::map < DtSimCommandMessageType, DtSimCommandExecutorCreatorFcn > | DtCreatorMap |
Protected Attributes | |
| DtCreatorMap | myCreatorMap |
| DtSimCommandExecutorCreatorFcn | myDefaultCreator |
Private Member Functions | |
| DtSimCommandExecutorFactory (const DtSimCommandExecutorFactory &orig) | |
| DtSimCommandExecutorFactory & | operator= (const DtSimCommandExecutorFactory &orig) |
|
protected |
| DtSimCommandExecutorFactory::DtSimCommandExecutorFactory | ( | ) |
default constructor
|
virtual |
destructor
|
private |
copy constructor - not implemented
|
virtual |
Add a creator function to the factory. Any previous entry with the same type will be replaced. Executors should be registered with the same type integer that is used for the DtSimCommand in the DtSimCommandFactory.
|
virtual |
Remove an entry from the factory.
|
virtual |
Sets the default executor creator function which will be used when no specific creator function has been registered. Unless otherwise set, the default creator will create a DtSimCommandDistributionExecutor.
|
virtual |
Create a new instance of an executor and return it.
|
static |
|
private |
assignment operator - not implemented
|
protected |
|
protected |