![]() |
VR-Forces 4.6.1 Class Documentation
|
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 |
Factory that will maintain converters.
Creating this factory installs default converters for current variable types
|
protected |
| DtScriptedTaskVariableConverterFactory::DtScriptedTaskVariableConverterFactory | ( | ) |
Constructor – installs default converters.
|
virtual |
Destructor – deletes all converters.
|
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 |
|
protected |