#include <IniParser.h>
Inheritance diagram for zypp::parser::IniParser:

Public Member Functions | |
| IniParser () | |
| Default ctor. | |
| virtual | ~IniParser () |
| Dtor. | |
| void | parse (const InputStream &imput_r) |
| Parse the stream. | |
| virtual void | beginParse () |
| Called when start parsing. | |
| virtual void | consume (const std::string §ion) |
| Called when a section is found. | |
| virtual void | consume (const std::string §ion, const std::string &key, const std::string &value) |
| Called when a key value is found. | |
| virtual void | endParse () |
| Called when the parse is done. | |
| const std::string & | inputname () const |
| Name of the current InputStream. | |
Private Attributes | |
| std::string | _inputname |
| std::string | _current_section |
| int | _line_nr |
Will replace parser/tagfile/ and parser/taggedfile/ stuff.
Definition at line 37 of file IniParser.h.
|
|
Default ctor.
Definition at line 35 of file IniParser.cc. |
|
|
Dtor.
Definition at line 44 of file IniParser.cc. |
|
|
Parse the stream.
Definition at line 64 of file IniParser.cc. References _current_section, _inputname, beginParse(), consume(), zypp::str::ltrim(), MIL, zypp::InputStream::name(), zypp::iostr::EachLine::next(), zypp::str::rtrim(), and zypp::str::trim(). Referenced by zypp::parser::IniDict::read(). |
|
|
Called when start parsing.
Definition at line 47 of file IniParser.cc. Referenced by parse(). |
|
|
Called when a section is found.
Reimplemented in zypp::parser::IniDict. Definition at line 53 of file IniParser.cc. Referenced by parse(). |
|
||||||||||||||||
|
Called when a key value is found.
Reimplemented in zypp::parser::IniDict. Definition at line 50 of file IniParser.cc. |
|
|
Called when the parse is done.
Definition at line 56 of file IniParser.cc. |
|
|
Name of the current InputStream.
Definition at line 62 of file IniParser.h. References _inputname. |
|
|
Definition at line 68 of file IniParser.h. Referenced by inputname(), and parse(). |
|
|
Definition at line 69 of file IniParser.h. Referenced by parse(). |
|
|
Definition at line 70 of file IniParser.h. |
1.4.6