Does not inherit
#include rwsf/xmlbinding/XmlBindingFactory.h
Class rwsf::XmlBindingFactory 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.
XmlBindingFactory< T > * getInstance();
Returns a pointer to the singleton XmlBindingFactory instance. 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.
© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.