This class searches and loads catalog.xml
file and creates HRCParser, StyledHRDMapper, TextHRDMapper and TextParser instances with information, loaded from specified sources.
If no path were passed to it's constructor, it uses the next search order to find 'catalog.xml' file:
Public Member Functions | |
ParserFactory () | |
ParserFactory Constructor. | |
ParserFactory (const String *catalogPath) | |
ParserFactory Constructor with explicit catalog path. | |
const String * | enumerateHRDClasses (int idx) |
Enumerates all declared hrd classes. | |
const String * | enumerateHRDInstances (const String &classID, int idx) |
Enumerates all declared hrd instances of specified class. | |
const String * | getHRDescription (const String &classID, const String &nameID) |
Returns description of HRD instance, pointed by classID and nameID parameters. | |
HRCParser * | getHRCParser () |
Creates and loads HRCParser instance from catalog.xml file. | |
TextParser * | createTextParser () |
Creates TextParser instance. | |
StyledHRDMapper * | createStyledMapper (const String *classID, const String *nameID) |
Creates RegionMapper instance and loads specified hrd files into it. | |
TextHRDMapper * | createTextMapper (const String *nameID) |
Creates RegionMapper instance and loads specified hrd files into it. | |
ErrorHandler * | getErrorHandler () |
Returns currently used global error handler. | |
Static Public Member Functions | |
static const char * | getVersion () |
|
ParserFactory Constructor. Searches for catalog.xml in the set of predefined locations
|
|
ParserFactory Constructor with explicit catalog path.
|
|
Creates and loads HRCParser instance from catalog.xml file. This method can detect directory entries, and sequentally load their contents into created HRCParser instance. In other cases it uses InputSource::newInstance() method to create input data stream. Only one HRCParser instance is created for each ParserFactory instance. |
|
Creates RegionMapper instance and loads specified hrd files into it.
|
|
Creates RegionMapper instance and loads specified hrd files into it. It uses 'text' class by default.
|
|
Returns currently used global error handler. If no error handler were installed, returns null. |