libzypp: zypp/parser/ServiceFileReader.h Source File

libzypp 17.36.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-core/ui/ProgressData>
19#include <zypp/Pathname.h>
20
22namespace zypp
23{
24
25 class ServiceInfo;
27 namespace parser
28 {
29
43 class ServiceFileReader
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
77 ~ServiceFileReader();
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
bool
zypp::ServiceInfo
Service data.
Definition ServiceInfo.h:37
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:47
zypp::parser::ServiceFileReader::Impl
Definition ServiceFileReader.cc:34
zypp::parser::ServiceFileReader
Read service data from a .service file.
Definition ServiceFileReader.h:44
zypp::parser::ServiceFileReader::operator<<
friend std::ostream & operator<<(std::ostream &str, const ServiceFileReader &obj)
Definition ServiceFileReader.cc:173
zypp::parser::ServiceFileReader::ProcessService
function< bool(const ServiceInfo &)> ProcessService
Callback definition.
Definition ServiceFileReader.h:55
zypp::parser::ServiceFileReader::ServiceFileReader
ServiceFileReader(const Pathname &serviceFile, const ProcessService &callback)
Constructor.
Definition ServiceFileReader.cc:162
zypp::parser::ServiceFileReader::~ServiceFileReader
~ServiceFileReader()
Dtor.
Definition ServiceFileReader.cc:170
str
String related utilities and Regular expression matching.
zypp::callback
Callbacks light.
Definition Callback.h:146
zypp::parser
Definition HistoryLogReader.cc:30
zypp::parser::operator<<
std::ostream & operator<<(std::ostream &str, const ProductFileData &obj)
Definition ProductFileReader.cc:107
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
Pathname.h
PtrTypes.h