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 | Protected Types | Protected Attributes
DtScriptedTaskVariableConverterFactory Class Reference

Factory that will maintain converters. Creating this factory installs default converters for current variable types.

Public Member Functions

 DtScriptedTaskVariableConverterFactory ()
 
virtual ~DtScriptedTaskVariableConverterFactory ()
 
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
 

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

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

Member Data Documentation

Converters DtScriptedTaskVariableConverterFactory::myConverters
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)