#include <PDBParser.h>
|
| PDBParser (librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *document, unsigned type, unsigned creator) |
| Instantiate a parser for a document in Palm Database Format. More...
|
|
librevenge::RVNGTextInterface * | getDocument () const |
| Get the document generator used for this parsing run. More...
|
|
const char * | getName () const |
|
librevenge::RVNGInputStream * | getAppInfoRecord () const |
| Return a stream for the format's appInfo record, if it is present. More...
|
|
librevenge::RVNGInputStream * | 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...
|
|
librevenge::RVNGInputStream * | getDataRecord (unsigned n) const |
| Return a stream for the n-th data record. More...
|
|
librevenge::RVNGInputStream * | getDataRecords () const |
| Return a stream for all data records. More...
|
|
librevenge::RVNGInputStream * | getDataRecords (unsigned first, unsigned last) const |
| Return a stream for data records in a given range. More...
|
|
libebook::PDBParser::PDBParser |
( |
const PDBParser & |
other | ) |
|
|
private |
libebook::PDBParser::~PDBParser |
( |
| ) |
|
|
pure virtual |
libebook::PDBParser::PDBParser |
( |
librevenge::RVNGInputStream * |
input, |
|
|
librevenge::RVNGTextInterface * |
document, |
|
|
unsigned |
type, |
|
|
unsigned |
creator |
|
) |
| |
|
protected |
Instantiate a parser for a document in Palm Database Format.
- [in] input input stream
- [in] document output document generator
- [in] type the document type
- [in] creator the document creator
librevenge::RVNGInputStream * libebook::PDBParser::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
librevenge::RVNGInputStream * libebook::PDBParser::getDataRecord |
( |
unsigned |
n | ) |
const |
|
protected |
unsigned libebook::PDBParser::getDataRecordCount |
( |
| ) |
const |
|
protected |
librevenge::RVNGInputStream * libebook::PDBParser::getDataRecords |
( |
| ) |
const |
|
protected |
librevenge::RVNGInputStream * libebook::PDBParser::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
librevenge::RVNGTextInterface * libebook::PDBParser::getDocument |
( |
| ) |
const |
|
protected |
Get the document generator used for this parsing run.
- Returns
- the output document generator
Referenced by libebook::ZTXTParser::closeDocument(), libebook::TealDocParser::closeDocument(), libebook::PalmDocParser::closeDocument(), libebook::PeanutPressParser::closeDocument(), libebook::PalmDocParser::closeParagraph(), libebook::PalmDocParser::handleCharacters(), libebook::ZTXTParser::handleText(), libebook::ZTXTParser::openDocument(), libebook::PalmDocParser::openDocument(), libebook::TealDocParser::openDocument(), libebook::PeanutPressParser::openDocument(), libebook::PalmDocParser::openParagraph(), libebook::PluckerParser::readDataRecords(), and libebook::PeanutPressParser::readText().
librevenge::RVNGInputStream * libebook::PDBParser::getIndexRecord |
( |
| ) |
const |
|
protected |
const char * libebook::PDBParser::getName |
( |
| ) |
const |
|
protected |
librevenge::RVNGInputStream * libebook::PDBParser::getRecordStream |
( |
unsigned |
n | ) |
const |
|
private |
bool libebook::PDBParser::parse |
( |
| ) |
|
Parse input and produce output to document.
- Returns
- true if the input has been parsed successfully.
virtual void libebook::PDBParser::readAppInfoRecord |
( |
librevenge::RVNGInputStream * |
record | ) |
|
|
privatepure virtual |
virtual void libebook::PDBParser::readDataRecord |
( |
librevenge::RVNGInputStream * |
record, |
|
|
bool |
last = false |
|
) |
| |
|
privatepure virtual |
void libebook::PDBParser::readDataRecords |
( |
| ) |
|
|
privatevirtual |
void libebook::PDBParser::readHeader |
( |
| ) |
|
|
private |
virtual void libebook::PDBParser::readIndexRecord |
( |
librevenge::RVNGInputStream * |
record | ) |
|
|
privatepure virtual |
virtual void libebook::PDBParser::readSortInfoRecord |
( |
librevenge::RVNGInputStream * |
record | ) |
|
|
privatepure virtual |
The documentation for this class was generated from the following files: