|
OpenTop 1.3 | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||
SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD |
#include "ot/sax/XMLReaderFactory.h"
This class contains a static function for creating an XMLReader: CreateXMLReader(). This function delegates the create request to the registered XMLReaderFactory instance thereby enabling the application to register a factory object and, in doing so, control the kind of XMLReader produced.
If an instance of XMLReaderFactory is not registered by the application, an instance is created automatically the first time CreateXMLReader() or GetInstance() is called.
RefPtr<XMLReader> rpReader = XMLReaderFactory::CreateXMLReader();
Method Summary | |
static RefPtr< XMLReader > |
CreateXMLReader() Static function to create an instance of an XMLReader. |
protected virtual RefPtr< XMLReader > |
doCreate() const Creates an instance of XMLReader. |
static RefPtr< XMLReaderFactory > |
GetInstance() Returns the currently registered XMLReaderFactory. |
static void |
SetInstance(XMLReaderFactory* pFactory) Allows an application to register a custom XMLReaderFactory object which will be used to create instances of XMLReader. |
Methods inherited from class ot::ManagedObject |
addRef, getRefCount, onFinalRelease, operator=, release |
Method Detail |
static RefPtr< XMLReader > CreateXMLReader()
protected virtual RefPtr< XMLReader > doCreate() const
static RefPtr< XMLReaderFactory > GetInstance()
static void SetInstance(XMLReaderFactory* pFactory)
A typical application may do the following:-
XMLReaderFactory::SetInstance(new MyXMLReaderFactory);
pFactory
-
|
OpenTop 1.3 | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||
SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD |