19#include <zypp-core/base/Logger.h>
83 return (
secit->second).begin();
94 return (
secit->second).end();
105 return makeIterable( (
secit->second).begin(), (
secit->second).end() );
124 const std::string &key,
125 const std::string &value )
145 const std::string &
entry )
const
166 si !=
obj.sectionsEnd();
169 str <<
"[" << *
si <<
"]" << endl;
174 str <<
ei->first <<
" = " <<
ei->second << endl;
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
Parses a INI file and offers its structure as a dictionary.
section_const_iterator sectionsEnd() const
void read(const InputStream &is, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
Fill a dictionary from a InputStream containing a ini structured file.
bool hasSection(const std::string §ion) const
True if there is a section with that name.
void deleteSection(const std::string §ion)
add an entry
Iterable< section_const_iterator > sections() const
entry_const_iterator entriesBegin(const std::string §ion) const
Iterable< entry_const_iterator > entries(const std::string §ion) const
void insertEntry(const std::string §ion, const std::string &key, const std::string &value)
add an entry
void consume(const std::string §ion) override
Called when a section is found.
section_const_iterator sectionsBegin() const
bool hasEntry(const std::string §ion, const std::string &entry) const
True if an entry exists in the section.
IniDict()
Creates a mepty dictionary.
EntrySet _empty_map
empty map used to simulate iteration in non-existent sections
MapKVIteratorTraits< SectionSet >::Key_const_iterator section_const_iterator
EntrySet::const_iterator entry_const_iterator
entry_const_iterator entriesEnd(const std::string §ion) const
void parse(const InputStream &imput_r, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
Parse the stream.
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const ProductFileData &obj)
Easy-to use interface to the ZYPP dependency resolver.
MapKVIteratorTraits< TMap >::Key_const_iterator make_map_key_begin(const TMap &map_r)
Convenience to create the key iterator from container::begin()
MapKVIteratorTraits< TMap >::Key_const_iterator make_map_key_end(const TMap &map_r)
Convenience to create the key iterator from container::end()