![]() |
VR-Forces 4.10 Class Documentation
|
Factory for creating ReaderWriter objects dynamically based on a type string. More...

Public Member Functions | |
| DtVrfReaderWriterFactory () | |
| void | addDefaultRwCreators () |
| Non-virtual since it is called by the constructor. More... | |
Public Member Functions inherited from DtVrfutilReaderWriterFactory | |
| DtVrfutilReaderWriterFactory (bool registerDefaults=true) | |
| void | addDefaultRwCreators () |
| Non-virtual since it is called by the constructor. More... | |
Public Member Functions inherited from DtReaderWriterFactory | |
| DtReaderWriterFactory (bool registerDefaults=true) | |
| virtual const std::set < DtString > & | xmlTypes () const |
| Returns all the xml types. More... | |
| virtual DtString | mapXmlToRwType (const DtString &xmlType) const |
| Maps the xml type to reader/writer type. More... | |
| virtual DtString | mapRwToXmlType (const DtString &rwType) const |
| Maps the reader/writer type to xml type. More... | |
| virtual DtReaderWriter * | createItem (const DtString &type, const DtString &name, DtReaderWriterRegistry *parentRegistry) const |
| Creates a new RW type based on the type string provided, with the specified name and parent registry. More... | |
| virtual bool | copyReaderWriter (const DtReaderWriter *sourceRw, DtReaderWriter *destRw) const |
| Uses the operator= method on the RW objects to assign sourceRw to destRw. More... | |
| virtual bool | compareReaderWriter (const DtReaderWriter *sourceRw, const DtReaderWriter *destRw) const |
| Uses the operator== method on the RW objects to check for equality. More... | |
| virtual DtReaderWriter * | cloneReaderWriter (const DtString &name, const DtReaderWriter *sourceRw, DtReaderWriterRegistry *parentRegistry) const |
| Creates a clone of the RW object to create a clone of the specified object. More... | |
| void | addDefaultRwCreators () |
| Non-virtual since it is called by the constructor. More... | |
| template<typename T_RWType > | |
| void | registerType (const DtString &rwTypeString) |
| Registers a new RW type with the factory. More... | |
| template<typename T_RWType > | |
| void | registerNumericType (const DtString &rwTypeString) |
| Registers a new RW numeric type with the factory. More... | |
| template<typename T_RWType > | |
| void | registerTypeWithoutSerialization (const DtString &rwTypeString) |
| Registers type without buffer serialization. More... | |
| const DtRwFunctionMap & | functionMap () const |
| bool | typeRegistered (const DtString &rwTypeString) const |
| Returns true if the specific type is registered. More... | |
| virtual int | getSize (const DtReaderWriter *) const |
| virtual char * | encode (const DtReaderWriter *, char *) const |
| Encodes the variable bindings into the supplied buffer. More... | |
| virtual const char * | decode (DtReaderWriter *, const char *) |
| Decodes the variable bindings from the specified buffer. More... | |
Static Public Member Functions | |
| static DtReaderWriterFactory * | create () |
Static Public Member Functions inherited from DtVrfutilReaderWriterFactory | |
| static DtReaderWriterFactory * | create () |
Additional Inherited Members | |
Public Types inherited from DtReaderWriterFactory | |
| typedef DtReaderWriter *(* | DtRWCreatorFcn )(const DtString &name, DtReaderWriterRegistry *parentRegistry) |
| typedef void(* | DtRWCopyFcn )(const DtReaderWriter *source, DtReaderWriter *dest) |
| typedef int(* | DtRwGetSizeFcn )(const DtReaderWriter *source) |
| typedef bool(* | DtRwCompareFcn )(const DtReaderWriter *lhs, const DtReaderWriter *rhs) |
| typedef char *(* | DtRwEncodeFcn )(const DtReaderWriter *source, char *) |
| typedef const char *(* | DtRwDecodeFcn )(DtReaderWriter *source, const char *) |
| typedef std::map< DtString, DtRwFunctions > | DtRwFunctionMap |
Protected Types inherited from DtReaderWriterFactory | |
| typedef std::map< DtString, DtString > | StringMap |
Protected Member Functions inherited from DtReaderWriterFactory | |
| virtual void | mapRwToXml (const DtString &rwType, const DtString &xmlType) |
| Maps rw to xml type. If xml type already exists mapping is ignored. More... | |
Static Protected Member Functions inherited from DtReaderWriterFactory | |
| template<typename T_RWType > | |
| static DtReaderWriter * | createRWType (const DtString &name, DtReaderWriterRegistry *parentRegistry) |
| Templated utility function that acts as a creator for the specified reader writer type. More... | |
| template<typename T_RWType > | |
| static void | copyRwType (const DtReaderWriter *sourceRw, DtReaderWriter *destRw) |
| Templated utility function that copies values from one RW to another. More... | |
| template<typename T_RWType > | |
| static void | copyNumericRwType (const DtReaderWriter *sourceRw, DtReaderWriter *destRw) |
| Templated utility function that copies numeric values from one RW to another. More... | |
| template<typename T_RWType > | |
| static bool | compareRwType (const DtReaderWriter *sourceRw, const DtReaderWriter *destRw) |
| Templated utility function that copies values from one RW to another. More... | |
| template<typename T_RWType > | |
| static int | getRwSize (const DtReaderWriter *sourceRw) |
| Templated utility function that gets the size of the reader/writer item. More... | |
| template<typename T_RWType > | |
| static char * | encodeRwType (const DtReaderWriter *sourceRw, char *buf) |
| Templated utility function that encodes the reader/writer item. More... | |
| template<typename T_RWType > | |
| static const char * | decodeRwType (DtReaderWriter *sourceRw, const char *buf) |
| Templated utility function that decodes the reader/writer item. More... | |
Protected Attributes inherited from DtReaderWriterFactory | |
| DtRwFunctionMap | myRwFunctionMap |
| StringMap | myRwToXmlType |
| StringMap | myXmlToRwType |
| std::set< DtString > | myXmlTypes |
Factory for creating ReaderWriter objects dynamically based on a type string.
Overridden to register types defined in vrfobjparam, which cannot be registered in the base factory.
| DtVrfReaderWriterFactory::DtVrfReaderWriterFactory | ( | ) |
| void DtVrfReaderWriterFactory::addDefaultRwCreators | ( | ) |
Non-virtual since it is called by the constructor.
Registers all the default VRF RW object types with the factory.
|
static |