libzypp
13.10.6
|
Basic SUSEtags parser. More...
#include <IniParser.h>
Public Member Functions | |
IniParser () | |
Default ctor. More... | |
virtual | ~IniParser () |
Dtor. More... | |
void | parse (const InputStream &imput_r, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc()) |
Parse the stream. More... | |
virtual void | beginParse () |
Called when start parsing. More... | |
virtual void | consume (const std::string §ion) |
Called when a section is found. More... | |
virtual void | consume (const std::string §ion, const std::string &key, const std::string &value) |
Called when a key value is found. More... | |
virtual void | endParse () |
Called when the parse is done. More... | |
const std::string & | inputname () const |
Name of the current InputStream. More... | |
Private Attributes | |
std::string | _inputname |
std::string | _current_section |
int | _line_nr |
Basic SUSEtags parser.
Will replace parser/tagfile/ and parser/taggedfile/ stuff.
Definition at line 38 of file IniParser.h.
zypp::parser::IniParser::IniParser | ( | ) |
Default ctor.
Definition at line 38 of file IniParser.cc.
|
virtual |
Dtor.
Definition at line 47 of file IniParser.cc.
void zypp::parser::IniParser::parse | ( | const InputStream & | imput_r, |
const ProgressData::ReceiverFnc & | progress = ProgressData::ReceiverFnc() |
||
) |
Parse the stream.
ParseException | on errors. Invoke consume for each tag. consume might throw other exceptions as well. |
Definition at line 67 of file IniParser.cc.
|
virtual |
Called when start parsing.
Definition at line 50 of file IniParser.cc.
|
virtual |
Called when a section is found.
Reimplemented in zypp::parser::IniDict.
Definition at line 56 of file IniParser.cc.
|
virtual |
Called when a key value is found.
Reimplemented in zypp::parser::IniDict.
Definition at line 53 of file IniParser.cc.
|
virtual |
Called when the parse is done.
Definition at line 59 of file IniParser.cc.
|
inline |
Name of the current InputStream.
Definition at line 63 of file IniParser.h.
|
private |
Definition at line 69 of file IniParser.h.
|
private |
Definition at line 70 of file IniParser.h.
|
private |
Definition at line 71 of file IniParser.h.