libzypp
16.22.5
|
Reads through a repomd.xml file and collects type, location, checksum and other data about metadata files to be processed. More...
#include <RepomdFileReader.h>
Classes | |
class | Impl |
Public Types | |
typedef function< bool(const OnMediaLocation &, const repo::yum::ResourceType &)> | ProcessResource |
Callbacl taking OnMediaLocation and repo::yum::ResourceType. More... | |
typedef function< bool(const OnMediaLocation &, const repo::yum::ResourceType &, const std::string &)> | ProcessResource2 |
Alternate callback also receiving the ResourceType as string. More... | |
Public Member Functions | |
RepomdFileReader (const Pathname &repomd_file, const ProcessResource &callback) | |
CTOR. More... | |
RepomdFileReader (const Pathname &repomd_file, const ProcessResource2 &callback) | |
~RepomdFileReader () | |
DTOR. More... | |
Private Attributes | |
RW_pointer< Impl, rw_pointer::Scoped< Impl > > | _pimpl |
Reads through a repomd.xml file and collects type, location, checksum and other data about metadata files to be processed.
After each file entry is read, a OnMediaLocation and repo::yum::ResourceType are prepared and passed to the _callback.
Depending on the _callback type provided on construction, ResourceType may additionally be passed as a plain string. This form allows handling custom resource types (e.g. ones with embedded locale tag).
Definition at line 46 of file RepomdFileReader.h.
typedef function< bool( const OnMediaLocation &, const repo::yum::ResourceType & )> zypp::parser::yum::RepomdFileReader::ProcessResource |
Callbacl taking OnMediaLocation and repo::yum::ResourceType.
Definition at line 50 of file RepomdFileReader.h.
typedef function< bool( const OnMediaLocation &, const repo::yum::ResourceType &, const std::string & )> zypp::parser::yum::RepomdFileReader::ProcessResource2 |
Alternate callback also receiving the ResourceType as string.
Definition at line 53 of file RepomdFileReader.h.
zypp::parser::yum::RepomdFileReader::RepomdFileReader | ( | const Pathname & | repomd_file, |
const ProcessResource & | callback | ||
) |
CTOR.
Creates also xml::Reader and starts reading.
repomd_file | is the repomd.xml file you want to read |
callback | is a function. |
Definition at line 193 of file RepomdFileReader.cc.
zypp::parser::yum::RepomdFileReader::RepomdFileReader | ( | const Pathname & | repomd_file, |
const ProcessResource2 & | callback | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 197 of file RepomdFileReader.cc.
zypp::parser::yum::RepomdFileReader::~RepomdFileReader | ( | ) |
DTOR.
Definition at line 201 of file RepomdFileReader.cc.
|
private |
Definition at line 71 of file RepomdFileReader.h.