Does not inherit
#include <rwsf/XmlBinding/XmlBindingFactory.h>
Class rwsf::XmlBindingFactory<T> is a template class that creates and registers factory methods to be used in the generated classes, allowing the creation or retrieval of an object within an object, regardless of type.
The generated methods are createObject() and createMember(), which are included in all generated datatype classes.
This class is implemented as a singleton and is accessible with its getInstance() method.
typedef T (*XmlBindingFactoryMethod)();
XmlBindingFactory()
Default constructor. It is not recommended that you use this constructor directly. To create an instance of the class, use the getInstance() method.
static XmlBindingFactory<T>*
getInstance();
Returns a pointer to the FactoryMethod. If the instance does not exist, creates and returns a new instance.
T createObject(const rwsf::XmlName& name);
Looks up the registered FactoryMethod and calls it to return an instance of the type. If no factory method exists for creating the type, throws a rwsf::XmlParseException.
void registerObject(const rwsf::XmlName& name, XmlBindingFactoryMethod method);
Registers the FactoryMethod to create this object as the key - value pair name - method.
©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.