Inheritance diagram for HRCParser:
Defines basic operations of loading and accessing HRC information.
Public Member Functions | |
virtual void | setErrorHandler (ErrorHandler *eh)=0 |
Error Handler, used to inform application about different error conditions. | |
virtual void | loadSource (InputSource *is)=0 |
Loads HRC from specified InputSource stream. | |
virtual FileType * | enumerateFileTypes (int index)=0 |
Enumerates sequentially all prototypes. | |
virtual FileType * | getFileType (const String *name)=0 |
virtual FileType * | chooseFileType (const String *fileName, const String *firstLine, int typeNo=0)=0 |
Searches and returns the best type for specified file. | |
virtual int | getRegionCount ()=0 |
Total number of declared regions. | |
virtual const Region * | getRegion (int id)=0 |
Returns region by internal id. | |
virtual const Region * | getRegion (const String *name)=0 |
Returns region by name. | |
virtual const String * | getVersion ()=0 |
HRC base version. |
|
Error Handler, used to inform application about different error conditions.
|
|
Loads HRC from specified InputSource stream. Referred HRC file can contain prototypes and real types definitions. If it contains just prototype definition, real type load must be performed before using with loadType() method
|
|
Enumerates sequentially all prototypes.
|
|
|
|
Searches and returns the best type for specified file. This method uses fileName and firstLine parameters to perform selection of the best HRC type from database.
|
|
Returns region by name.
|
|
HRC base version. Usually this is the 'version' attribute of 'hrc' element of the first loaded HRC file. |