libzypp  17.7.0
zypp::parser::yum::RepomdFileReader::Impl Class Reference
Inheritance diagram for zypp::parser::yum::RepomdFileReader::Impl:

Public Types

enum  Tag {
  tag_NONE, tag_Repomd, tag_Data, tag_Location,
  tag_CheckSum, tag_Timestamp, tag_OpenCheckSum
}
 Enumeration of repomd.xml tags. More...
 

Public Member Functions

 Impl (const Pathname &repomd_file, const ProcessResource2 &callback)
 Ctro taking a ProcessResource2 callback. More...
 
 Impl (const Pathname &repomd_file, const ProcessResource &callback)
 
bool consumeNode (Reader &reader_r)
 Callback provided to the XML parser. More...
 

Private Attributes

ProcessResource2 _callback
 Function for processing collected data. More...
 
Tag _tag
 Used to remember currently processed tag. More...
 
std::string _typeStr
 Type of metadata file (string) More...
 
repo::yum::ResourceType _type
 Type of metadata file as enum of well known repoinded.xml entries. More...
 
OnMediaLocation _location
 Location of metadata file. More...
 

Detailed Description

Definition at line 43 of file RepomdFileReader.cc.

Member Enumeration Documentation

◆ Tag

Enumeration of repomd.xml tags.

See also
_tag
Enumerator
tag_NONE 
tag_Repomd 
tag_Data 
tag_Location 
tag_CheckSum 
tag_Timestamp 
tag_OpenCheckSum 

Definition at line 51 of file RepomdFileReader.cc.

Constructor & Destructor Documentation

◆ Impl() [1/2]

zypp::parser::yum::RepomdFileReader::Impl::Impl ( const Pathname repomd_file,
const ProcessResource2 callback 
)
inline

Ctro taking a ProcessResource2 callback.

Definition at line 64 of file RepomdFileReader.cc.

◆ Impl() [2/2]

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

Definition at line 74 of file RepomdFileReader.cc.

Member Function Documentation

◆ consumeNode()

bool zypp::parser::yum::RepomdFileReader::Impl::consumeNode ( Reader reader_r)

Callback provided to the XML parser.

Todo:
xpath: /repomd/open-checksum (?)

Definition at line 113 of file RepomdFileReader.cc.

Member Data Documentation

◆ _callback

ProcessResource2 zypp::parser::yum::RepomdFileReader::Impl::_callback
private

Function for processing collected data.

Passed-in through constructor.

Definition at line 86 of file RepomdFileReader.cc.

◆ _tag

Tag zypp::parser::yum::RepomdFileReader::Impl::_tag
private

Used to remember currently processed tag.

Definition at line 89 of file RepomdFileReader.cc.

◆ _typeStr

std::string zypp::parser::yum::RepomdFileReader::Impl::_typeStr
private

Type of metadata file (string)

Definition at line 92 of file RepomdFileReader.cc.

◆ _type

repo::yum::ResourceType zypp::parser::yum::RepomdFileReader::Impl::_type
private

Type of metadata file as enum of well known repoinded.xml entries.

Definition at line 95 of file RepomdFileReader.cc.

◆ _location

OnMediaLocation zypp::parser::yum::RepomdFileReader::Impl::_location
private

Location of metadata file.

Definition at line 98 of file RepomdFileReader.cc.


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