libzypp  13.10.6
ServiceFileReader.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_REPO_SERVICEFILEREADER_H
13 #define ZYPP_REPO_SERVICEFILEREADER_H
14 
15 #include <iosfwd>
16 
17 #include "zypp/base/PtrTypes.h"
18 #include "zypp/ProgressData.h"
19 #include "zypp/Pathname.h"
20 
22 namespace zypp
23 {
24 
25  class ServiceInfo;
27  namespace parser
28  {
29 
44  {
45  friend std::ostream & operator<<( std::ostream & str, const ServiceFileReader & obj );
46  public:
47 
55  typedef function< bool( const ServiceInfo & )> ProcessService;
56 
58  class Impl;
59 
60  public:
71  ServiceFileReader( const Pathname & serviceFile,
72  const ProcessService & callback);
73 
78  };
80 
82  std::ostream & operator<<( std::ostream & str, const ServiceFileReader & obj );
83 
85  } // namespace parser
88 } // namespace zypp
90 #endif // ZYPP_REPO_SERVICEFILEREADER_H
Read service data from a .service file.
ServiceFileReader(const Pathname &serviceFile, const ProcessService &callback)
Constructor.
friend std::ostream & operator<<(std::ostream &str, const ServiceFileReader &obj)
std::ostream & operator<<(std::ostream &str, const IniDict &obj)
Definition: IniDict.cc:143
function< bool(const ServiceInfo &)> ProcessService
Callback definition.