VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes | Private Member Functions
DtSimCommandExecutorFactory Class Reference

Factory for creating DtSimCommandExecutor instances.

Inheritance diagram for DtSimCommandExecutorFactory:
Inheritance graph
[legend]

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

Member Typedef Documentation

Constructor & Destructor Documentation

DtSimCommandExecutorFactory::DtSimCommandExecutorFactory ( )

default constructor

virtual DtSimCommandExecutorFactory::~DtSimCommandExecutorFactory ( )
virtual

destructor

DtSimCommandExecutorFactory::DtSimCommandExecutorFactory ( const DtSimCommandExecutorFactory orig)
private

copy constructor - not implemented

Member Function Documentation

virtual void DtSimCommandExecutorFactory::addCreatorFcn ( const DtSimCommandMessageType 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 ( const DtSimCommandMessageType type,
DtSimCommandExecutorCreatorFcn  fcn 
)
virtual

Remove an entry from the factory.

virtual void DtSimCommandExecutorFactory::registerDefaultCreatorFcn ( DtSimCommandExecutorCreatorFcn  fcn)
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 DtSimCommandExecutor* DtSimCommandExecutorFactory::createSimCommandExecutor ( const DtSimCommandMessageType type,
DtSimulationServices simManager 
) const
virtual

Create a new instance of an executor and return it.

static DtSimCommandExecutorFactory* DtSimCommandExecutorFactory::create ( )
static
DtSimCommandExecutorFactory& DtSimCommandExecutorFactory::operator= ( const DtSimCommandExecutorFactory orig)
private

assignment operator - not implemented

Member Data Documentation

DtCreatorMap DtSimCommandExecutorFactory::myCreatorMap
protected
DtSimCommandExecutorCreatorFcn DtSimCommandExecutorFactory::myDefaultCreator
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)