VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes
DtScriptedTaskVariableConverterFactory Class Reference

Factory that will maintain converters. More...

Public Member Functions

 DtScriptedTaskVariableConverterFactory ()
 Constructor – installs default converters.
virtual ~DtScriptedTaskVariableConverterFactory ()
 Destructor – deletes all converters.
virtual void addConverter (const std::string &variableType, DtScriptedTaskVariableConverter *)
virtual
DtScriptedTaskVariableConverter
converterFor (const std::string &variableType)

Protected Types

typedef std::map< std::string,
DtScriptedTaskVariableConverter * > 
Converters

Protected Attributes

Converters myConverters

Detailed Description

Factory that will maintain converters.

Creating this factory installs default converters for current variable types

Member Typedef Documentation

Constructor & Destructor Documentation

DtScriptedTaskVariableConverterFactory::DtScriptedTaskVariableConverterFactory ( )

Constructor – installs default converters.

virtual DtScriptedTaskVariableConverterFactory::~DtScriptedTaskVariableConverterFactory ( )
virtual

Destructor – deletes all converters.

Member Function Documentation

virtual void DtScriptedTaskVariableConverterFactory::addConverter ( const std::string &  variableType,
DtScriptedTaskVariableConverter  
)
virtual

Routines that can be used to add a class that will be called to convert objects to/from reader/writer variables. Each class will implement two methods:

Returns value to be used as default value of scripted variable std::string fromRwPtr(const DtReaderWriter* rw) const

Returns reader/writer variable that represents contents of scripted task variable. The variableName() of the scripted task variable should be used as the name of the reader/writer DtReaderWriter* toRwPtr(const DtScriptedTaskVariable&) const These methods will be called from the scripted task variable version of these methods.

Once added this class takes control of the converter memory

virtual DtScriptedTaskVariableConverter* DtScriptedTaskVariableConverterFactory::converterFor ( const std::string &  variableType)
virtual

Member Data Documentation

Converters DtScriptedTaskVariableConverterFactory::myConverters
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)