libept
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ept::debtags::DebDBParser Class Reference

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 (FILE *input, const std::string &pathname)
 
const std::string & fileName () const throw ()
 
bool nextRecord (Record &rec)
 

Protected Member Functions

int eatSpacesAndEmptyLines ()
 
std::string getFieldName ()
 
void eatFieldSep ()
 
void appendFieldBody (std::string &body)
 

Protected Attributes

FILE * in
 
std::string pathname
 
bool isBOL
 
bool isEOF
 

Detailed Description

Parse Debian records from a parser input.

Member Typedef Documentation

◆ Record

typedef std::map<std::string, std::string> ept::debtags::DebDBParser::Record

Constructor & Destructor Documentation

◆ DebDBParser()

ept::debtags::DebDBParser::DebDBParser ( FILE *  input,
const std::string &  pathname 
)

Member Function Documentation

◆ appendFieldBody()

void ept::debtags::DebDBParser::appendFieldBody ( std::string &  body)
protected

References in, isBOL, isEOF, and pathname.

Referenced by nextRecord().

◆ eatFieldSep()

void ept::debtags::DebDBParser::eatFieldSep ( )
protected

References in, isEOF, and pathname.

Referenced by nextRecord().

◆ eatSpacesAndEmptyLines()

int ept::debtags::DebDBParser::eatSpacesAndEmptyLines ( )
protected

References in, isBOL, isEOF, pathname, and res.

Referenced by DebDBParser(), and nextRecord().

◆ fileName()

const std::string& ept::debtags::DebDBParser::fileName ( ) const
throw (
)
inline

References nextRecord(), and pathname.

Referenced by ept::debtags::Vocabulary::read().

◆ getFieldName()

std::string ept::debtags::DebDBParser::getFieldName ( )
protected

References in, isBOL, isEOF, pathname, and res.

Referenced by nextRecord().

◆ nextRecord()

bool ept::debtags::DebDBParser::nextRecord ( Record rec)

Member Data Documentation

◆ in

FILE* ept::debtags::DebDBParser::in
protected

◆ isBOL

bool ept::debtags::DebDBParser::isBOL
protected

◆ isEOF

bool ept::debtags::DebDBParser::isEOF
protected

◆ pathname

std::string ept::debtags::DebDBParser::pathname
protected

The documentation for this class was generated from the following files: