Factory that will maintain converters. Creating this factory installs default converters for current variable types.
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
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