libzypp  17.25.0
zypp::parser::yum::RepomdFileReader Class Reference

Reads through a repomd.xml file and collects type, location, checksum and other data about metadata files to be processed. More...

#include <RepomdFileReader.h>

Inheritance diagram for zypp::parser::yum::RepomdFileReader:

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
 

Detailed Description

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.

Member Typedef Documentation

◆ ProcessResource

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.

Constructor & Destructor Documentation

◆ RepomdFileReader()

zypp::parser::yum::RepomdFileReader::RepomdFileReader ( const Pathname repomd_file,
const ProcessResource callback 
)

CTOR.

Creates also xml::Reader and starts reading.

Parameters
repomd_fileis the repomd.xml file you want to read
callbackis a function.
See also
RepomdFileReader::ProcessResource

Definition at line 179 of file RepomdFileReader.cc.

◆ ~RepomdFileReader()

zypp::parser::yum::RepomdFileReader::~RepomdFileReader ( )

DTOR.

Definition at line 183 of file RepomdFileReader.cc.

Member Data Documentation

◆ _pimpl

RW_pointer<Impl,rw_pointer::Scoped<Impl> > zypp::parser::yum::RepomdFileReader::_pimpl
private

Definition at line 56 of file RepomdFileReader.h.


The documentation for this class was generated from the following files: