![]() |
VR-Forces 4.0.4 Class Documentation
|
Factory for creating DtSimCommandExecutor instances. More...

Public Member Functions | |
| DtSimCommandExecutorFactory () | |
| default constructor | |
| virtual | ~DtSimCommandExecutorFactory () |
| destructor | |
| virtual void | addCreatorFcn (int type, DtSimCommandExecutorCreatorFcn fcn) |
| Add a creator function to the factory. | |
| virtual void | removeCreatorFcn (int type, DtSimCommandExecutorCreatorFcn fcn) |
| Remove an entry from the factory. | |
| virtual DtSimCommandExecutor * | createSimCommandExecutor (int type, DtSimManager *simManager) const |
| Create a new instance of an executor and return it. | |
Static Public Member Functions | |
| static DtSimCommandExecutorFactory * | create () |
Protected Types | |
| typedef std::map< int, DtSimCommandExecutorCreatorFcn > | DtCreatorMap |
Protected Attributes | |
| DtCreatorMap | myCreatorMap |
Private Member Functions | |
| DtSimCommandExecutorFactory (const DtSimCommandExecutorFactory &orig) | |
| copy constructor - not implemented | |
| DtSimCommandExecutorFactory & | operator= (const DtSimCommandExecutorFactory &orig) |
| assignment operator - not implemented | |
Factory for creating DtSimCommandExecutor instances.
typedef std::map<int, DtSimCommandExecutorCreatorFcn> DtSimCommandExecutorFactory::DtCreatorMap [protected] |
default constructor
| virtual DtSimCommandExecutorFactory::~DtSimCommandExecutorFactory | ( | ) | [virtual] |
destructor
| DtSimCommandExecutorFactory::DtSimCommandExecutorFactory | ( | const DtSimCommandExecutorFactory & | orig | ) | [private] |
copy constructor - not implemented
| virtual void DtSimCommandExecutorFactory::addCreatorFcn | ( | int | type, |
| DtSimCommandExecutorCreatorFcn | fcn | ||
| ) | [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 void DtSimCommandExecutorFactory::removeCreatorFcn | ( | int | type, |
| DtSimCommandExecutorCreatorFcn | fcn | ||
| ) | [virtual] |
Remove an entry from the factory.
| virtual DtSimCommandExecutor* DtSimCommandExecutorFactory::createSimCommandExecutor | ( | int | type, |
| DtSimManager * | simManager | ||
| ) | const [virtual] |
Create a new instance of an executor and return it.
| static DtSimCommandExecutorFactory* DtSimCommandExecutorFactory::create | ( | ) | [static] |
Reimplemented in DtDefaultSimCommandExecutorFactory.
| DtSimCommandExecutorFactory& DtSimCommandExecutorFactory::operator= | ( | const DtSimCommandExecutorFactory & | orig | ) | [private] |
assignment operator - not implemented