VR-Forces 4.7 Class Documentation
 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. More...

Inheritance diagram for DtSimCommandExecutorFactory:
Inheritance graph
[legend]

Public Member Functions

 DtSimCommandExecutorFactory ()
 default constructor
virtual ~DtSimCommandExecutorFactory ()
 destructor
virtual void addCreatorFcn (const DtSimCommandMessageType &type, DtSimCommandExecutorCreatorFcn fcn)
 Add a creator function to the factory.
virtual void removeCreatorFcn (const DtSimCommandMessageType &type, DtSimCommandExecutorCreatorFcn fcn)
 Remove an entry from the factory.
virtual void registerDefaultCreatorFcn (DtSimCommandExecutorCreatorFcn fcn)
 Sets the default executor creator function which will be used when no specific creator function has been registered.
virtual DtSimCommandExecutorcreateSimCommandExecutor (const DtSimCommandMessageType &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
< DtSimCommandMessageType,
DtSimCommandExecutorCreatorFcn
DtCreatorMap

Protected Attributes

DtCreatorMap myCreatorMap
DtSimCommandExecutorCreatorFcn myDefaultCreator

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

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,
DtSimManager 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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)