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

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

List of all members.

Classes

class  Creator
 Template attribute creator, provided for convenience. More...
class  CreatorInterface
 Creator interface for visualizer attributes to register with this factory. More...

Public Member Functions

virtual ~DtVisualizerAttributeFactory ()
 Destructor.
virtual DtVisualizerAttributecreate (const std::string &className)
 Create an attribute from its class name with default value.
virtual DtVisualizerAttributecreate (const std::string &className, const DtUnicode &value)
 Create an attribute from its class name and the string representation of its value.
virtual void registerClass (CreatorInterface *creator)
 Register a visualizer attribute type with the factory Transfers ownership of the creator object.

Static Public Member Functions

static
DtVisualizerAttributeFactory
instance (DtDe &)
 Get an instance of the factory.
static void registerInstance (DtDe &, DtVisualizerAttributeFactory *)
 Register a new instance of the factory.

Protected Types

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

Protected Member Functions

 DtVisualizerAttributeFactory (DtDe &)

Protected Attributes

CreatorMap myCreators
Creator
< DtVisualizerAttributeString
myDefaultCreator
DtDemyDe

Detailed Description

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


Member Typedef Documentation

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

Constructor & Destructor Documentation

Destructor.


Member Function Documentation

Get an instance of the factory.

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.

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


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)