12#ifndef ZYPP_CORE_PARSER_INIPARSER_H
13#define ZYPP_CORE_PARSER_INIPARSER_H
19#include <zypp-core/base/PtrTypes.h>
20#include <zypp-core/base/NonCopyable.h>
21#include <zypp-core/base/InputStream>
22#include <zypp-core/ui/ProgressData>
59 virtual void consume(
const std::string §ion );
61 virtual void consume(
const std::string §ion,
const std::string &key,
const std::string &value );
74 virtual void garbageLine(
const std::string §ion,
const std::string &line );
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
virtual void garbageLine(const std::string §ion, const std::string &line)
Called whenever a garbage line is found.
virtual ~IniParser()
Dtor.
virtual void beginParse()
Called when start parsing.
const std::string & inputname() const
Name of the current InputStream.
std::string _current_section
virtual void consume(const std::string §ion)
Called when a section is found.
virtual void endParse()
Called when the parse is done.
void parse(const InputStream &imput_r, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
Parse the stream.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Easy-to use interface to the ZYPP dependency resolver.