libzypp: zypp/parser/yum/RepomdFileReader.h Source File

libzypp 17.25.10

RepomdFileReader.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef zypp_source_yum_RepomdFileReader_H
13 #define zypp_source_yum_RepomdFileReader_H
14
15 #include <zypp/base/PtrTypes.h>
16 #include <zypp/base/NonCopyable.h>
17 #include <zypp/base/Function.h>
18
19 #include <zypp/OnMediaLocation.h>
20
21 namespace zypp
22 {
23 namespace parser
24 {
25 namespace yum
26 {
27
28
36 class RepomdFileReader : private base::NonCopyable
37 {
38 public:
40 typedef function< bool( OnMediaLocation &&, const std::string & )> ProcessResource;
41
50 RepomdFileReader( const Pathname & repomd_file, const ProcessResource & callback );
51
53 ~RepomdFileReader();
54
55 private:
56 class Impl;
57 RW_pointer<Impl,rw_pointer::Scoped<Impl> > _pimpl;
58 };
59
60
61 } // namespace yum
62 } // namespace parser
63 } // namespace zypp
64
65 #endif // zypp_source_yum_RepomdFileReader_H
Function.h
NonCopyable.h
OnMediaLocation.h
PtrTypes.h
zypp::OnMediaLocation
Describes a resource file located on a medium.
Definition: OnMediaLocation.h:39
zypp::filesystem::Pathname
Pathname.
Definition: Pathname.h:45
zypp::parser::yum::RepomdFileReader::Impl
Definition: RepomdFileReader.cc:43
zypp::parser::yum::RepomdFileReader
Reads through a repomd.xml file and collects type, location, checksum and other data about metadata f...
Definition: RepomdFileReader.h:37
zypp::parser::yum::RepomdFileReader::ProcessResource
function< bool(OnMediaLocation &&, const std::string &)> ProcessResource
Callback taking OnMediaLocation and the resource type string.
Definition: RepomdFileReader.h:40
zypp::parser::yum::RepomdFileReader::_pimpl
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl
Definition: RepomdFileReader.h:56
zypp::parser::yum::RepomdFileReader::~RepomdFileReader
~RepomdFileReader()
DTOR.
Definition: RepomdFileReader.cc:183
zypp::parser::yum::RepomdFileReader::RepomdFileReader
RepomdFileReader(const Pathname &repomd_file, const ProcessResource &callback)
CTOR.
Definition: RepomdFileReader.cc:179
zypp::base::NonCopyable
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Definition: NonCopyable.h:26
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
zypp::RW_pointer
Wrapper for const correct access via Smart pointer types.
Definition: PtrTypes.h:286