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

The visualizer attribute factory takes class name + string value pairs and creates a visualizer attribute.

Inheritance diagram for makVrv::DtVisualizerAttributeFactory:
Inheritance graph
[legend]

Classes

class  Creator
 
class  CreatorInterface
 

Public Member Functions

virtual ~DtVisualizerAttributeFactory ()
 
virtual DtVisualizerAttributecreate (const std::string &className)
 
virtual DtVisualizerAttributecreate (const std::string &className, const DtUnicode &value)
 
virtual void registerClass (CreatorInterface *creator)
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static
DtVisualizerAttributeFactory
instance (DtDe &)
 
static void registerInstance (DtDe &, DtVisualizerAttributeFactory *)
 

Protected Types

typedef boost::unordered_map
< std::string,
CreatorInterface * > 
CreatorMap
 

Protected Member Functions

 DtVisualizerAttributeFactory (DtDe &)
 

Protected Attributes

CreatorMap myCreators
 
Creator
< DtVisualizerAttributeString
myDefaultCreator
 
DtDemyDe
 

Member Typedef Documentation

typedef boost::unordered_map<std::string, CreatorInterface*> makVrv::DtVisualizerAttributeFactory::CreatorMap
protected

Constructor & Destructor Documentation

virtual makVrv::DtVisualizerAttributeFactory::~DtVisualizerAttributeFactory ( )
virtual

Destructor.

makVrv::DtVisualizerAttributeFactory::DtVisualizerAttributeFactory ( DtDe )
protected

Member Function Documentation

static DtVisualizerAttributeFactory& makVrv::DtVisualizerAttributeFactory::instance ( DtDe )
static

Get an instance of the factory.

static void makVrv::DtVisualizerAttributeFactory::registerInstance ( DtDe ,
DtVisualizerAttributeFactory  
)
static

Register a new instance of the factory. This only needs to be called to replace the default factory.

virtual DtVisualizerAttribute* makVrv::DtVisualizerAttributeFactory::create ( const std::string &  className)
virtual

Create an attribute from its class name with default value.

virtual DtVisualizerAttribute* makVrv::DtVisualizerAttributeFactory::create ( const std::string &  className,
const DtUnicode value 
)
virtual

Create an attribute from its class name and the string representation of its value.

virtual void makVrv::DtVisualizerAttributeFactory::registerClass ( CreatorInterface creator)
virtual

Register a visualizer attribute type with the factory Transfers ownership of the creator object.

Member Data Documentation

CreatorMap makVrv::DtVisualizerAttributeFactory::myCreators
protected
Creator<DtVisualizerAttributeString> makVrv::DtVisualizerAttributeFactory::myDefaultCreator
protected
DtDe& makVrv::DtVisualizerAttributeFactory::myDe
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)