12 #ifndef ZYPP_PARSER_INIDICT_H 13 #define ZYPP_PARSER_INIDICT_H 20 #include <zypp-core/base/InputStream> 23 #include <zypp-core/parser/IniParser> 45 using EntrySet = std::map<std::string, std::string>;
124 void insertEntry(
const std::string §ion,
125 const std::string &key,
126 const std::string &value );
134 void deleteSection(
const std::string §ion );
140 bool hasSection(
const std::string §ion )
const;
150 bool hasEntry(
const std::string §ion,
151 const std::string &entry )
const;
155 void consume(
const std::string §ion )
override;
157 void consume(
const std::string §ion,
158 const std::string &key,
159 const std::string &value )
override;
163 std::ostream & dumpAsIniOn( std::ostream &
str )
const;
189 #endif // ZYPP_PARSER_INIDICT_H std::map< std::string, std::string > EntrySet
EntrySet _empty_map
empty map used to simulate iteration in non-existent sections
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
String related utilities and Regular expression matching.
std::map< std::string, EntrySet > SectionSet
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
std::ostream & dumpOn(std::ostream &str, const IniDict &obj)
relates: IniDict Dump as single ini-file.
transform_iterator< GetPairFirst< typename MapType::value_type >, typename MapType::const_iterator > Key_const_iterator
The key iterator type.
Parses a INI file and offers its structure as a dictionary.
std::map< std::string, std::string > read(const Pathname &_path)
Read sysconfig file path_r and return (key,valye) pairs.
EntrySet::const_iterator entry_const_iterator
MapKVIteratorTraits< SectionSet >::Key_const_iterator section_const_iterator
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & dumpAsIniOn(std::ostream &str) const
Dump the collected iniMap as ini-file.
std::ostream & operator<<(std::ostream &str, const ProductFileData &obj)
relates: ProductFileData Stream output