Parse Debian records from a parser input. More...
#include <debdbparser.h>
Public Types | |
| typedef std::map< std::string, std::string > | Record |
Public Member Functions | |
| DebDBParser (tagcoll::input::Input &input) | |
| const std::string & | fileName () const throw () |
| int | lineNumber () const throw () |
| bool | nextRecord (Record &rec) |
Protected Member Functions | |
| int | eatSpacesAndEmptyLines () |
| std::string | getFieldName () |
| void | eatFieldSep () |
| void | appendFieldBody (std::string &body) |
Protected Attributes | |
| tagcoll::input::Input & | in |
| bool | isBOL |
| bool | isEOF |
Parse Debian records from a parser input.
| typedef std::map<std::string, std::string> ept::debtags::DebDBParser::Record |
| ept::debtags::DebDBParser::DebDBParser | ( | tagcoll::input::Input & | input | ) |
| void ept::debtags::DebDBParser::appendFieldBody | ( | std::string & | body | ) | [protected] |
References in, isBOL, and isEOF.
Referenced by nextRecord().
| void ept::debtags::DebDBParser::eatFieldSep | ( | ) | [protected] |
Referenced by nextRecord().
| int ept::debtags::DebDBParser::eatSpacesAndEmptyLines | ( | ) | [protected] |
References in, isBOL, and isEOF.
Referenced by nextRecord().
| const std::string& ept::debtags::DebDBParser::fileName | ( | ) | const throw () [inline] |
References in.
| std::string ept::debtags::DebDBParser::getFieldName | ( | ) | [protected] |
References in, isBOL, and isEOF.
Referenced by nextRecord().
| int ept::debtags::DebDBParser::lineNumber | ( | ) | const throw () [inline] |
References in.
| bool ept::debtags::DebDBParser::nextRecord | ( | Record & | rec | ) |
References appendFieldBody(), eatFieldSep(), eatSpacesAndEmptyLines(), getFieldName(), isBOL, and isEOF.
Referenced by ept::debtags::Vocabulary::read().
tagcoll::input::Input& ept::debtags::DebDBParser::in [protected] |
Referenced by appendFieldBody(), eatFieldSep(), eatSpacesAndEmptyLines(), fileName(), getFieldName(), and lineNumber().
bool ept::debtags::DebDBParser::isBOL [protected] |
Referenced by appendFieldBody(), eatSpacesAndEmptyLines(), getFieldName(), and nextRecord().
bool ept::debtags::DebDBParser::isEOF [protected] |
Referenced by appendFieldBody(), eatFieldSep(), eatSpacesAndEmptyLines(), getFieldName(), and nextRecord().
1.7.1