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

Entries Iterators | |
Iterate trough ini file entries in a section for ( IniDict::entry_const_iterator it = dict.entriesBegin("updates"); it != dict.entriesEnd("updates"); ++it ) { MIL << (*it).first << endl; } | |
| entry_const_iterator | entriesBegin (const std::string §ion) const |
| entry_const_iterator | entriesEnd (const std::string §ion) const |
| IniDict (const InputStream &is) | |
| Creates a dictionary from a InputStream containing a ini structured file. | |
| IniDict () | |
| Creates a mepty dictionary. | |
| ~IniDict () | |
| Dtor. | |
| void | read (const InputStream &is) |
| Fill a dictionary from a InputStream containing a ini structured file. | |
| void | insertEntry (const std::string §ion, const std::string &key, const std::string &value) |
| add an entry | |
| void | deleteSection (const std::string §ion) |
| add an entry | |
| bool | hasSection (const std::string §ion) const |
| True if there is a section with that name. | |
| bool | hasEntry (const std::string §ion, const std::string &entry) const |
| True if an entry exists in the section. | |
| 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. | |
| SectionSet | _dict |
| EntrySet | _empty_map |
| empty map used to simulate iteration in non existant sections | |
Public Types | |
| typedef std::map< std::string, std::string > | EntrySet |
| typedef std::map< std::string, EntrySet > | SectionSet |
| typedef MapKVIteratorTraits< SectionSet >::Key_const_iterator | section_const_iterator |
| typedef EntrySet::const_iterator | entry_const_iterator |
Public Member Functions | |
Section Iterators | |
Iterate trough ini file sections for ( IniDict::section_const_iterator it = dict.sectionsBegin(); it != dict.sectionsEnd(); ++it ) { MIL << (*it) << endl; } | |
| section_const_iterator | sectionsBegin () const |
| section_const_iterator | sectionsEnd () const |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const IniDict &obj) |
Definition at line 40 of file IniDict.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Creates a dictionary from a InputStream containing a ini structured file.
Definition at line 36 of file IniDict.cc. References read(). |
|
|
Creates a mepty dictionary.
Definition at line 41 of file IniDict.cc. |
|
|
Dtor.
Definition at line 55 of file IniDict.cc. |
|
|
Definition at line 94 of file IniDict.cc. References _dict, and zypp::make_map_key_begin(). Referenced by zypp::ZConfig::Impl::Impl(), and zypp::parser::operator<<(). |
|
|
Definition at line 99 of file IniDict.cc. References _dict, and zypp::make_map_key_end(). Referenced by zypp::ZConfig::Impl::Impl(), and zypp::parser::operator<<(). |
|
|
Definition at line 71 of file IniDict.cc. References _dict, and _empty_map. Referenced by zypp::ZConfig::Impl::Impl(), and zypp::parser::operator<<(). |
|
|
Definition at line 82 of file IniDict.cc. References _dict, and _empty_map. Referenced by zypp::ZConfig::Impl::Impl(), and zypp::parser::operator<<(). |
|
|
Fill a dictionary from a InputStream containing a ini structured file.
Definition at line 45 of file IniDict.cc. References zypp::parser::IniParser::parse(). Referenced by zypp::ZConfig::Impl::Impl(), and IniDict(). |
|
||||||||||||||||
|
add an entry
Definition at line 104 of file IniDict.cc. References consume(). |
|
|
add an entry
Definition at line 111 of file IniDict.cc. References _dict. |
|
|
True if there is a section with that name.
Definition at line 116 of file IniDict.cc. References _dict. |
|
||||||||||||
|
True if an entry exists in the section.
Definition at line 124 of file IniDict.cc. References _dict. |
|
|
Called when a section is found.
Reimplemented from zypp::parser::IniParser. Definition at line 58 of file IniDict.cc. Referenced by insertEntry(). |
|
||||||||||||||||
|
Called when a key value is found.
Reimplemented from zypp::parser::IniParser. Definition at line 63 of file IniDict.cc. References _dict. |
|
||||||||||||
|
Stream output Definition at line 143 of file IniDict.cc. |
|
|
Definition at line 148 of file IniDict.h. Referenced by consume(), deleteSection(), entriesBegin(), entriesEnd(), hasEntry(), hasSection(), sectionsBegin(), and sectionsEnd(). |
|
|
empty map used to simulate iteration in non existant sections
Definition at line 154 of file IniDict.h. Referenced by entriesBegin(), and entriesEnd(). |
1.4.6