12#ifndef ZYPP_PARSER_SUSETAGS_CONTENTFILEREADER_H
13#define ZYPP_PARSER_SUSETAGS_CONTENTFILEREADER_H
17#include <zypp/base/PtrTypes.h>
18#include <zypp/base/NonCopyable.h>
19#include <zypp/base/Function.h>
20#include <zypp-core/base/InputStream>
22#include <zypp-core/ui/ProgressData>
84 const std::string & msg_r = std::string(),
85 const std::string & line_r =
"-" )
const;
RepoManager implementation.
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
Parse repoindex part from a content file.
virtual void userRequestedAbort(unsigned lineNo_r)
Called when user(callback) request to abort.
virtual void parse(const InputStream &imput_r, const ProgressData::ReceiverFnc &fnc_r=ProgressData::ReceiverFnc())
Parse the stream.
void setRepoIndexConsumer(const RepoIndexConsumer &fnc_r)
Consumer to call when repo index was parsed.
ContentFileReader()
Default ctor.
virtual void endParse()
Called when the parse is done.
std::string errPrefix(unsigned lineNo_r, const std::string &msg_r=std::string(), const std::string &line_r="-") const
Prefix exception message with line information.
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl
function< void(const RepoIndex_Ptr &)> RepoIndexConsumer
virtual ~ContentFileReader()
Dtor.
RepoIndexConsumer _repoIndexConsumer
virtual void beginParse()
Called when start parsing.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Easy-to use interface to the ZYPP dependency resolver.
Wrapper for const correct access via Smart pointer types.
#define DEFINE_PTR_TYPE(NAME)
Forward declaration of Ptr types.