libzypp  13.10.6
WebpinResultFileReader.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_PARSER_WEBPINRESULTFILEREADER_H
13 #define ZYPP_PARSER_WEBPINRESULTFILEREADER_H
14 
15 #include <iosfwd>
16 
17 #include "zypp/base/PtrTypes.h"
18 #include "zypp/ProgressData.h"
19 #include "zypp/Pathname.h"
20 #include "zypp/ws/WebpinResult.h"
21 
23 namespace zypp
24 {
25 
26  namespace parser
27  {
28 
29  namespace ws
30  {
31 
47  {
48  friend std::ostream & operator<<( std::ostream & str, const WebpinResultFileReader & obj );
49  public:
50 
58  typedef function< bool( const zypp::ws::WebpinResult & )> ProcessWebpinResult;
59 
60  public:
72  WebpinResultFileReader( const Pathname &result_file,
73  const ProcessWebpinResult & callback/*,
74  const ProgressData::ReceiverFnc &progress = ProgressData::ReceiverFnc()*/);
75 
80  private:
81  class Impl;
83  };
85 
87  std::ostream & operator<<( std::ostream & str, const WebpinResultFileReader & obj );
88 
89  } //namespace ws
91  } // namespace parser
94 } // namespace zypp
96 #endif // ZYPP_PARSER_WEBPINRESULTFILEREADER_H
std::ostream & operator<<(std::ostream &str, const WebpinResultFileReader &obj)
function< bool(const zypp::ws::WebpinResult &)> ProcessWebpinResult
Callback definition.
WebpinResultFileReader(const Pathname &result_file, const ProcessWebpinResult &callback)
Constructor.
Read packages and repository search result data from from webpin web search results.
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl
Wrapper for const correct access via Smart pointer types.
Definition: PtrTypes.h:265
friend std::ostream & operator<<(std::ostream &str, const WebpinResultFileReader &obj)