libzypp 17.31.23
|
Reads through a repomd.xml file and collects type, location, checksum and other data about metadata files to be processed. More...
#include <parser/yum/RepomdFileReader.h>
Classes | |
class | Impl |
Public Types | |
typedef function< bool(OnMediaLocation &&, const std::string &)> | ProcessResource |
Callback taking OnMediaLocation and the resource type string. | |
Public Member Functions | |
RepomdFileReader (const Pathname &repomd_file, const 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.
typedef function< bool( OnMediaLocation &&, const std::string & )> zypp::parser::yum::RepomdFileReader::ProcessResource |
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, |
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 195 of file RepomdFileReader.cc.
zypp::parser::yum::RepomdFileReader::RepomdFileReader | ( | const Pathname & | repomd_file | ) |
Definition at line 199 of file RepomdFileReader.cc.
zypp::parser::yum::RepomdFileReader::~RepomdFileReader | ( | ) |
DTOR.
Definition at line 203 of file RepomdFileReader.cc.
const std::set< std::string > & zypp::parser::yum::RepomdFileReader::keywords | ( | ) | const |
repo keywords parsed on the fly
Definition at line 206 of file RepomdFileReader.cc.
Quick parsing keywords and 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 209 of file RepomdFileReader.cc.
|
private |
Definition at line 68 of file RepomdFileReader.h.