libzypp 17.37.17
|
Reads through a repomd.xml file and collects type, location, checksum and other data about metadata files to be processed. More...
#include <zypp/parser/yum/RepomdFileReader.h>
Classes | |
class | Impl |
Public Types | |
using | ProcessResource = function<bool (OnMediaLocation &&, const std::string &)> |
Callback taking OnMediaLocation and the resource type string. |
Public Member Functions | |
RepomdFileReader (const Pathname &repomd_file, ProcessResource callback) | |
CTOR. | |
RepomdFileReader (const Pathname &repomd_file) | |
~RepomdFileReader () | |
DTOR. | |
const std::set< std::string > & | keywords () const |
repo keywords parsed on the fly | |
std::vector< std::pair< std::string, std::string > > | keyhints () const |
gpg key hits shipped in keywords (bsc#1184326) |
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 38 of file RepomdFileReader.h.
using zypp::parser::yum::RepomdFileReader::ProcessResource = function<bool (OnMediaLocation &&, const std::string &)> |
Callback taking OnMediaLocation and the resource type string.
Definition at line 42 of file RepomdFileReader.h.
zypp::parser::yum::RepomdFileReader::RepomdFileReader | ( | const Pathname & | repomd_file, |
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 196 of file RepomdFileReader.cc.
zypp::parser::yum::RepomdFileReader::RepomdFileReader | ( | const Pathname & | repomd_file | ) |
Definition at line 200 of file RepomdFileReader.cc.
zypp::parser::yum::RepomdFileReader::~RepomdFileReader | ( | ) |
DTOR.
Definition at line 204 of file RepomdFileReader.cc.
const std::set< std::string > & zypp::parser::yum::RepomdFileReader::keywords | ( | ) | const |
repo keywords parsed on the fly
Definition at line 207 of file RepomdFileReader.cc.
std::vector< std::pair< std::string, std::string > > zypp::parser::yum::RepomdFileReader::keyhints | ( | ) | const |
gpg key hits shipped in keywords (bsc#1184326)
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 210 of file RepomdFileReader.cc.
|
private |
Definition at line 68 of file RepomdFileReader.h.