DataVariantFactory Class Reference
[Services]

#include <DataVariantFactory.h>

List of all members.

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 ()


Detailed Description

Definition at line 24 of file DataVariantFactory.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Parameters:
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.
Returns:
A pointer to the wrapper.
See also:
DataVariant::DataVariant()

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.

Parameters:
pDocument A pointer to the XML document to read the object from.
version The version number of the XML file being read.
Returns:
A pointer to the wrapper.
See also:
DataVariant::DataVariant()


Software Development Kit - Opticks 4.9.0 Build 16218