#include <DataVariantFactory.h>
Public Member Functions | |
| virtual DataValueWrapper * | createWrapper (const void *pObject, const std::string &className, bool strict=true)=0 |
| virtual DataValueWrapper * | createWrapper (DOMNode *pDocument, int version)=0 |
Protected Member Functions | |
| virtual | ~DataVariantFactory () |
Definition at line 24 of file DataVariantFactory.h.
| virtual DataVariantFactory::~DataVariantFactory | ( | ) | [protected, virtual] |
This will be cleaned up during application close.
Plug-ins do not need to destroy it.
Definition at line 71 of file DataVariantFactory.h.
| virtual DataValueWrapper* DataVariantFactory::createWrapper | ( | const void * | pObject, | |
| const std::string & | className, | |||
| bool | strict = true | |||
| ) | [pure virtual] |
Creates a DataValueWrapper object for use in a DataVariant.
This method is not intended for direct use in client code.
| pObject | A pointer to an object to wrap. This object will be passed to copy constructor of the new object. If it is NULL, the default constructor will be used. | |
| className | A string containing the class name of the object to be wrapped. The supported types are documented under DataVariant. The format of the type string can be either that used by type_id or that used by TypeConverter. | |
| strict | If true, a verification error message will be generated if a wrapper of the given className cannot be constructed. If false, no verification error message will be generated. |
| virtual DataValueWrapper* DataVariantFactory::createWrapper | ( | DOMNode * | pDocument, | |
| int | version | |||
| ) | [pure virtual] |
Creates a DataValueWrapper object for use in a DataVariant.
This method is not intended for direct use in client code.
| pDocument | A pointer to the XML document to read the object from. | |
| version | The version number of the XML file being read. |