libzypp  17.25.0
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
zypp::parser::ServiceFileReader::ServiceFileReader
ServiceFileReader(const Pathname &serviceFile, const ProcessService &callback)
Constructor.
Definition: ServiceFileReader.cc:158
zypp::parser::ServiceFileReader::operator<<
friend std::ostream & operator<<(std::ostream &str, const ServiceFileReader &obj)
Definition: ServiceFileReader.cc:169
zypp::parser::ServiceFileReader::~ServiceFileReader
~ServiceFileReader()
Dtor.
Definition: ServiceFileReader.cc:166
zypp::ServiceInfo
Service data.
Definition: ServiceInfo.h:36
PtrTypes.h
Pathname.h
bool
zypp::parser::ServiceFileReader::Impl
Definition: ServiceFileReader.cc:33
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1
zypp::parser::ServiceFileReader
Read service data from a .service file.
Definition: ServiceFileReader.h:43
zypp::parser::ServiceFileReader::ProcessService
function< bool(const ServiceInfo &)> ProcessService
Callback definition.
Definition: ServiceFileReader.h:55
zypp::parser::operator<<
std::ostream & operator<<(std::ostream &str, const IniDict &obj)
Definition: IniDict.cc:159
ProgressData.h
zypp::filesystem::Pathname
Pathname.
Definition: Pathname.h:44
str
String related utilities and Regular expression matching.