libzypp 17.37.17
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-core/ui/ProgressData>
19#include <zypp/Pathname.h>
20
22namespace 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 using ProcessService = function<bool (const ServiceInfo &)>;
56
58 class Impl;
59
60 public:
71 ServiceFileReader( const Pathname & serviceFile,
72 const ProcessService & callback);
73
78 };
79
80
82 std::ostream & operator<<( std::ostream & str, const ServiceFileReader & obj );
83
85 } // namespace parser
88} // namespace zypp
90#endif // ZYPP_REPO_SERVICEFILEREADER_H
Service data.
Definition ServiceInfo.h:37
Read service data from a .service file.
friend std::ostream & operator<<(std::ostream &str, const ServiceFileReader &obj)
function< bool(const ServiceInfo &)> ProcessService
Callback definition.
ServiceFileReader(const Pathname &serviceFile, const ProcessService &callback)
Constructor.
String related utilities and Regular expression matching.
Callbacks light.
Definition Callback.h:146
std::ostream & operator<<(std::ostream &str, const ProductFileData &obj)
Easy-to use interface to the ZYPP dependency resolver.