VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes | Private Member Functions
DtSimCommandExecutorFactory Class Reference

Factory for creating DtSimCommandExecutor instances. More...

Inheritance diagram for DtSimCommandExecutorFactory:
Inheritance graph
[legend]

List of all members.

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 DtSimCommandExecutorcreateSimCommandExecutor (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
DtSimCommandExecutorFactoryoperator= (const DtSimCommandExecutorFactory &orig)
 assignment operator - not implemented

Detailed Description

Factory for creating DtSimCommandExecutor instances.


Member Typedef Documentation


Constructor & Destructor Documentation

default constructor

destructor

copy constructor - not implemented


Member Function Documentation

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.

DtSimCommandExecutorFactory& DtSimCommandExecutorFactory::operator= ( const DtSimCommandExecutorFactory orig) [private]

assignment operator - not implemented


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)