![]() |
VR-Forces 5.0.3 Developer's Guide
|
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.

Public Member Functions | |
| DtVrfReaderWriterFactory () | |
| void | addDefaultRwCreators () |
Public Member Functions inherited from DtVrfutilReaderWriterFactory | |
| DtVrfutilReaderWriterFactory (bool registerDefaults=true) | |
| void | addDefaultRwCreators () |
Public Member Functions inherited from DtReaderWriterFactory | |
| DtReaderWriterFactory (bool registerDefaults=true) | |
| virtual const std::set < DtString > & | xmlTypes () const |
| virtual DtString | mapXmlToRwType (const DtString &xmlType) const |
| virtual DtString | mapRwToXmlType (const DtString &rwType) const |
| virtual DtReaderWriter * | createItem (const DtString &type, const DtString &name, DtReaderWriterRegistry *parentRegistry) const |
| virtual bool | copyReaderWriter (const DtReaderWriter *sourceRw, DtReaderWriter *destRw) const |
| virtual bool | compareReaderWriter (const DtReaderWriter *sourceRw, const DtReaderWriter *destRw) const |
| virtual DtReaderWriter * | cloneReaderWriter (const DtString &name, const DtReaderWriter *sourceRw, DtReaderWriterRegistry *parentRegistry) const |
| void | addDefaultRwCreators () |
| template<typename T_RWType > | |
| void | registerType (const DtString &rwTypeString) |
| template<typename T_RWType > | |
| void | registerNumericType (const DtString &rwTypeString) |
| template<typename T_RWType > | |
| void | registerTypeWithoutSerialization (const DtString &rwTypeString) |
| const DtRwFunctionMap & | functionMap () const |
| bool | typeRegistered (const DtString &rwTypeString) const |
| virtual int | getSize (const DtReaderWriter *) const |
| virtual char * | encode (const DtReaderWriter *, char *) const |
| virtual const char * | decode (DtReaderWriter *, const char *) |
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) |
Static Protected Member Functions inherited from DtReaderWriterFactory | |
| template<typename T_RWType > | |
| static DtReaderWriter * | createRWType (const DtString &name, DtReaderWriterRegistry *parentRegistry) |
| template<typename T_RWType > | |
| static void | copyRwType (const DtReaderWriter *sourceRw, DtReaderWriter *destRw) |
| template<typename T_RWType > | |
| static void | copyNumericRwType (const DtReaderWriter *sourceRw, DtReaderWriter *destRw) |
| template<typename T_RWType > | |
| static bool | compareRwType (const DtReaderWriter *sourceRw, const DtReaderWriter *destRw) |
| template<typename T_RWType > | |
| static int | getRwSize (const DtReaderWriter *sourceRw) |
| template<typename T_RWType > | |
| static char * | encodeRwType (const DtReaderWriter *sourceRw, char *buf) |
| template<typename T_RWType > | |
| static const char * | decodeRwType (DtReaderWriter *sourceRw, const char *buf) |
Protected Attributes inherited from DtReaderWriterFactory | |
| DtRwFunctionMap | myRwFunctionMap |
| StringMap | myRwToXmlType |
| StringMap | myXmlToRwType |
| std::set< DtString > | myXmlTypes |
| 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 |