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
makVrf::DtStateComponentFactory Class Reference

The state component factory contains creators for all the state components that can have double buffered data. When the instance is referenced, if no instance exists a new instance is created. To replace a state component creator reuse the Type of a current state component.

Public Member Functions

 DtStateComponentFactory ()
 
virtual ~DtStateComponentFactory ()
 
virtual
DtStateComponent::StateComponentType 
addStateComponentCreator (const char *stateComponent, DtStateComponent::StateComponentType, DtStateComponentCreatorInterface *)
 
virtual DtStateComponentcreateStateComponent (DtStateComponent::StateComponentType, DtStateData *) const
 
virtual DtStateComponentcreateStateComponent (const std::string &name, DtStateData *) const
 
virtual void registerLegionComponents (Legion::SimulationDatabase *db)
 
virtual void addAdditionalTableColumns (Legion::SimulationDatabase *db)
 
virtual bool hasCreator (DtStateComponent::StateComponentType) const
 
virtual
DtStateComponent::StateComponentType 
stateComponentTypeWithCreator (const std::string &creator) const
 
virtual bool autoCreateForRemoteObject (DtStateComponent::StateComponentType) const
 

Static Public Member Functions

static DtStateComponentFactoryinstance ()
 

Protected Types

typedef std::map
< DtStateComponent::StateComponentType,
DtStateComponentCreatorInterface * > 
StateComponentCreatorMap
 
typedef std::map< std::string,
DtStateComponentCreatorInterface * > 
StateComponentCreatorByNameMap
 

Protected Attributes

StateComponentCreatorMap myStateComponentCreatorMap
 
StateComponentCreatorByNameMap myStateComponentCreatorByNameMap
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrf::DtStateComponentFactory::DtStateComponentFactory ( )

CTOR.

virtual makVrf::DtStateComponentFactory::~DtStateComponentFactory ( )
virtual

DTOR.

Member Function Documentation

static DtStateComponentFactory* makVrf::DtStateComponentFactory::instance ( )
static

Returns the static instance of this factory.

virtual DtStateComponent::StateComponentType makVrf::DtStateComponentFactory::addStateComponentCreator ( const char stateComponent,
DtStateComponent::StateComponentType  ,
DtStateComponentCreatorInterface  
)
virtual

Add/replace an existing creator. This class will take ownership of the creators. The StateComponentType returned will be a new type that has the high word of the unique creator id and the low word of the actual component type.

virtual DtStateComponent* makVrf::DtStateComponentFactory::createStateComponent ( DtStateComponent::StateComponentType  ,
DtStateData  
) const
virtual

Creates a state component given the type. If no state component of that type exists returns NULL. The state component type coming in is assumed to be the full type of CREATOR_TYPE | COMPONENT_TYPE. If just CREATOR_TYPE is passed in this method will fail.

virtual DtStateComponent* makVrf::DtStateComponentFactory::createStateComponent ( const std::string &  name,
DtStateData  
) const
virtual

Creates a state component given the type. If no state component of that type exists returns NULL.

virtual void makVrf::DtStateComponentFactory::registerLegionComponents ( Legion::SimulationDatabase *  db)
virtual

Asks all the current creators to register their legion specific components.

virtual void makVrf::DtStateComponentFactory::addAdditionalTableColumns ( Legion::SimulationDatabase *  db)
virtual

Asks all the current creators to register additional columns with existing legion components they may represent.

virtual bool makVrf::DtStateComponentFactory::hasCreator ( DtStateComponent::StateComponentType  ) const
virtual

Returns true if this creator exists.

virtual DtStateComponent::StateComponentType makVrf::DtStateComponentFactory::stateComponentTypeWithCreator ( const std::string &  creator) const
virtual
virtual bool makVrf::DtStateComponentFactory::autoCreateForRemoteObject ( DtStateComponent::StateComponentType  ) const
virtual

Returns true if this component should be automatically created for a reflected object (vs. letting the reflected object determine if it should be created). Default is true.

Member Data Documentation

StateComponentCreatorMap makVrf::DtStateComponentFactory::myStateComponentCreatorMap
protected
StateComponentCreatorByNameMap makVrf::DtStateComponentFactory::myStateComponentCreatorByNameMap
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)