#include <PDBParser.h>
Public Member Functions | |
virtual | ~PDBParser ()=0 |
bool | parse () |
Parse input and produce output to document. |
Protected Member Functions | |
PDBParser (librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *document, unsigned type, unsigned creator) | |
Instantiate a parser for a document in Palm Database Format. | |
librevenge::RVNGTextInterface * | getDocument () const |
Get the document generator used for this parsing run. | |
const char * | getName () const |
librevenge::RVNGInputStream * | getAppInfoRecord () const |
Return a stream for the format's appInfo record, if it is present. | |
librevenge::RVNGInputStream * | getIndexRecord () const |
Return a stream for the format's index record. | |
unsigned | getDataRecordCount () const |
Return the number of data records in the document. | |
librevenge::RVNGInputStream * | getDataRecord (unsigned n) const |
Return a stream for the n-th data record. | |
librevenge::RVNGInputStream * | getDataRecords () const |
Return a stream for all data records. | |
librevenge::RVNGInputStream * | getDataRecords (unsigned first, unsigned last) const |
Return a stream for data records in a given range. |
Private Member Functions | |
PDBParser (const PDBParser &other) | |
PDBParser & | operator= (const PDBParser &other) |
virtual void | readAppInfoRecord (librevenge::RVNGInputStream *record)=0 |
virtual void | readSortInfoRecord (librevenge::RVNGInputStream *record)=0 |
virtual void | readIndexRecord (librevenge::RVNGInputStream *record)=0 |
virtual void | readDataRecord (librevenge::RVNGInputStream *record, bool last=false)=0 |
virtual void | readDataRecords () |
void | readHeader () |
librevenge::RVNGInputStream * | getRecordStream (unsigned n) const |
Private Attributes | |
std::unique_ptr< PDBParserImpl > | m_impl |
|
private |
Referenced by libebook::MobiPocketParser::MobiPocketParser(), operator=(), libebook::PalmDocParser::PalmDocParser(), PDBParser(), libebook::PeanutPressParser::PeanutPressParser(), libebook::PluckerParser::PluckerParser(), libebook::TealDocParser::TealDocParser(), and libebook::ZTXTParser::ZTXTParser().
|
pure virtual |
|
protected |
Instantiate a parser for a document in Palm Database Format.
|
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().
|
protected |
Return a stream for the n-th data record.
Referenced by libebook::PluckerParser::readDataRecords(), libebook::PeanutPressParser::readImages(), and libebook::PeanutPressParser::readText().
|
protected |
Return the number of data records in the document.
Referenced by libebook::PluckerParser::readDataRecords(), libebook::PeanutPressParser::readImages(), and libebook::TealDocParser::readIndexRecord().
|
protected |
Return a stream for all data records.
Referenced by libebook::ZTXTParser::readDataRecords(), and libebook::PeanutPressParser::readText().
|
protected |
Return a stream for data records in a given range.
|
protected |
Get the document generator used for this parsing run.
Referenced by libebook::PalmDocParser::closeDocument(), libebook::PeanutPressParser::closeDocument(), libebook::TealDocParser::closeDocument(), libebook::ZTXTParser::closeDocument(), libebook::PalmDocParser::closeParagraph(), libebook::PalmDocParser::handleCharacters(), libebook::ZTXTParser::handleText(), libebook::PalmDocParser::openDocument(), libebook::PeanutPressParser::openDocument(), libebook::TealDocParser::openDocument(), libebook::ZTXTParser::openDocument(), libebook::PalmDocParser::openParagraph(), libebook::PluckerParser::readDataRecords(), and libebook::PeanutPressParser::readText().
|
protected |
Return a stream for the format's index record.
A parser for a subformat might want to peek into the index record in isSupported().
Referenced by libebook::PeanutPressParser::PeanutPressParser(), and libebook::PluckerParser::PluckerParser().
|
protected |
|
private |
Referenced by getDataRecord(), getIndexRecord(), parse(), and readDataRecords().
bool libebook::PDBParser::parse | ( | ) |
Parse input and produce output to document.
|
privatepure virtual |
|
privatepure virtual |
Implemented in libebook::MobiPocketParser, libebook::PalmDocParser, libebook::PeanutPressParser, libebook::PluckerParser, libebook::TealDocParser, and libebook::ZTXTParser.
Referenced by readDataRecords().
|
privatevirtual |
Reimplemented in libebook::PeanutPressParser, libebook::PluckerParser, and libebook::ZTXTParser.
Referenced by parse().
|
private |
Referenced by PDBParser().
|
privatepure virtual |
Implemented in libebook::MobiPocketParser, libebook::PalmDocParser, libebook::PeanutPressParser, libebook::PluckerParser, libebook::TealDocParser, and libebook::ZTXTParser.
Referenced by parse().
|
privatepure virtual |
|
private |
Referenced by getDataRecordCount(), getDataRecords(), getDataRecords(), getDocument(), getName(), getRecordStream(), parse(), PDBParser(), readDataRecords(), and readHeader().