12 #ifndef ZYPP_PARSER_SUSETAGS_CONTENTFILEREADER_H
13 #define ZYPP_PARSER_SUSETAGS_CONTENTFILEREADER_H
84 const std::string & msg_r = std::string(),
85 const std::string & line_r =
"-" )
const;
103 #endif // ZYPP_PARSER_SUSETAGS_CONTENTFILEREADER_H
ContentFileReader implementation.
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
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.
virtual void userRequestedAbort(unsigned lineNo_r)
Called when user(callback) request to abort.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
RepoIndexConsumer _repoIndexConsumer
Parse repoindex part from a content file.
virtual void beginParse()
Called when start parsing.
void setRepoIndexConsumer(const RepoIndexConsumer &fnc_r)
Consumer to call when repo index was parsed.
ContentFileReader()
Default ctor.
Wrapper for const correct access via Smart pointer types.
virtual void endParse()
Called when the parse is done.
function< void(const RepoIndex_Ptr &)> RepoIndexConsumer
virtual ~ContentFileReader()
Dtor.
virtual void parse(const InputStream &imput_r, const ProgressData::ReceiverFnc &fnc_r=ProgressData::ReceiverFnc())
Parse the stream.