12 #ifndef ZYPP_PARSER_INIPARSER_H
13 #define ZYPP_PARSER_INIPARSER_H
56 virtual void consume(
const std::string §ion );
58 virtual void consume(
const std::string §ion,
const std::string &key,
const std::string &value );
81 #endif // ZYPP_PARSER_INIPARSER_H
void parse(const InputStream &imput_r, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
Parse the stream.
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
std::string _current_section
virtual ~IniParser()
Dtor.
virtual void beginParse()
Called when start parsing.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
virtual void endParse()
Called when the parse is done.
const std::string & inputname() const
Name of the current InputStream.
virtual void consume(const std::string §ion)
Called when a section is found.