#include <PDXParser.h>
|
| PDXParser (WPXInputStream *input, WPXDocumentInterface *document) |
| Instantiate a parser for a document in Palm Database Format. More...
|
|
WPXDocumentInterface * | getDocument () const |
| Get the document generator used for this parsing run. More...
|
|
const char * | getName () const |
|
WPXInputStream * | getAppInfoRecord () const |
| Return a stream for the format's appInfo record, if it is present. More...
|
|
WPXInputStream * | getIndexRecord () const |
| Return a stream for the format's index record. More...
|
|
unsigned | getDataRecordCount () const |
| Return the number of data records in the document. More...
|
|
WPXInputStream * | getDataRecord (unsigned n) const |
| Return a stream for the n-th data record. More...
|
|
WPXInputStream * | getDataRecords () const |
| Return a stream for all data records. More...
|
|
WPXInputStream * | getDataRecords (unsigned first, unsigned last) const |
| Return a stream for data records in a given range. More...
|
|
libebook::PDXParser::PDXParser |
( |
const PDXParser & |
other | ) |
|
|
private |
libebook::PDXParser::~PDXParser |
( |
| ) |
|
|
pure virtual |
libebook::PDXParser::PDXParser |
( |
WPXInputStream * |
input, |
|
|
WPXDocumentInterface * |
document |
|
) |
| |
|
protected |
Instantiate a parser for a document in Palm Database Format.
- [in] input input stream
- [in] document output document generator
WPXInputStream * libebook::PDXParser::getAppInfoRecord |
( |
| ) |
const |
|
protected |
Return a stream for the format's appInfo record, if it is present.
A parser for a subformat might want to peek into the appInfo record in isSupported().
- Returns
- a newly allocated stream spanning the appInfo record or 0, if there is no appInfo record
WPXInputStream * libebook::PDXParser::getDataRecord |
( |
unsigned |
n | ) |
const |
|
protected |
unsigned libebook::PDXParser::getDataRecordCount |
( |
| ) |
const |
|
protected |
WPXInputStream * libebook::PDXParser::getDataRecords |
( |
| ) |
const |
|
protected |
WPXInputStream * libebook::PDXParser::getDataRecords |
( |
unsigned |
first, |
|
|
unsigned |
last |
|
) |
| const |
|
protected |
Return a stream for data records in a given range.
- [in] first the first data record to include
- [in] last the first data record not to include
- Returns
- a newly allocated stream spanning data records in a given range
WPXDocumentInterface * libebook::PDXParser::getDocument |
( |
| ) |
const |
|
protected |
Get the document generator used for this parsing run.
- Returns
- the output document generator
Referenced by libebook::ZTXTParser::closeDocument(), libebook::TDParser::closeDocument(), libebook::PDBParser::closeDocument(), libebook::PMLParser::closeDocument(), libebook::PDBParser::closeParagraph(), libebook::PDBParser::handleCharacters(), libebook::ZTXTParser::handleText(), libebook::ZTXTParser::openDocument(), libebook::PDBParser::openDocument(), libebook::TDParser::openDocument(), libebook::PMLParser::openDocument(), libebook::PDBParser::openParagraph(), libebook::PLKRParser::readDataRecords(), and libebook::PMLParser::readText().
WPXInputStream * libebook::PDXParser::getIndexRecord |
( |
| ) |
const |
|
protected |
const char * libebook::PDXParser::getName |
( |
| ) |
const |
|
protected |
WPXInputStream * libebook::PDXParser::getRecordStream |
( |
unsigned |
n | ) |
const |
|
private |
virtual bool libebook::PDXParser::isFormatSupported |
( |
unsigned |
type, |
|
|
unsigned |
creator |
|
) |
| |
|
privatepure virtual |
bool libebook::PDXParser::isSupported |
( |
| ) |
|
Test whether the input document is in supported format.
This function will typically only read the Palm Database Format header, but it might read the info block too.
- Returns
- true if the document is supported
bool libebook::PDXParser::parse |
( |
| ) |
|
Parse input and produce output to document.
- Returns
- true if the input has been parsed successfully.
virtual void libebook::PDXParser::readAppInfoRecord |
( |
WPXInputStream * |
record | ) |
|
|
privatepure virtual |
virtual void libebook::PDXParser::readDataRecord |
( |
WPXInputStream * |
record, |
|
|
bool |
last = false |
|
) |
| |
|
privatepure virtual |
void libebook::PDXParser::readDataRecords |
( |
| ) |
|
|
privatevirtual |
void libebook::PDXParser::readHeader |
( |
| ) |
|
|
private |
virtual void libebook::PDXParser::readIndexRecord |
( |
WPXInputStream * |
record | ) |
|
|
privatepure virtual |
virtual void libebook::PDXParser::readSortInfoRecord |
( |
WPXInputStream * |
record | ) |
|
|
privatepure virtual |
The documentation for this class was generated from the following files: