libzypp
17.24.1
|
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(OnMediaLocation &&, const std::string &)> | ProcessResource |
Callback taking OnMediaLocation and the resource type string. More... | |
Public Member Functions | |
RepomdFileReader (const Pathname &repomd_file, const ProcessResource &callback) | |
CTOR. More... | |
~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, an OnMediaLocation and the resource type string are prepared and passed to the _callback.
Definition at line 36 of file RepomdFileReader.h.
typedef function< bool( OnMediaLocation &&, const std::string & )> zypp::parser::yum::RepomdFileReader::ProcessResource |
Callback taking OnMediaLocation and the resource type string.
Definition at line 40 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 179 of file RepomdFileReader.cc.
zypp::parser::yum::RepomdFileReader::~RepomdFileReader | ( | ) |
DTOR.
Definition at line 183 of file RepomdFileReader.cc.
|
private |
Definition at line 56 of file RepomdFileReader.h.