zypp::parser::RepoindexFileReader::Impl Class Reference

Inheritance diagram for zypp::parser::RepoindexFileReader::Impl:
[legend]

List of all members.

Public Member Functions

 Impl (const Pathname &repoindex_file, const ProcessResource &callback)
 CTOR.
bool consumeNode (Reader &reader_r)
 Callback provided to the XML parser.

Private Attributes

ProcessResource _callback
 Function for processing collected data.
string _target_distro

Detailed Description

Definition at line 43 of file RepoindexFileReader.cc.


Constructor & Destructor Documentation

zypp::parser::RepoindexFileReader::Impl::Impl ( const Pathname &  repoindex_file,
const ProcessResource callback 
)

CTOR.

See also:
RepoindexFileReader::RepoindexFileReader(Pathname,ProcessResource)

Definition at line 66 of file RepoindexFileReader.cc.

References consumeNode(), zypp::xml::Reader::foreachNode(), and MIL.


Member Function Documentation

bool zypp::parser::RepoindexFileReader::Impl::consumeNode ( Reader reader_r  ) 

Callback provided to the XML parser.

Todo:
FIXME this hardcodes the "/repo/" fragment - should not be if we want it to be usable by others!

Definition at line 88 of file RepoindexFileReader.cc.

References _, _callback, zypp::xml::XmlString::asString(), DBG, zypp::str::form(), zypp::xml::XmlString::get(), zypp::repo::RepoInfoBase::setAlias(), zypp::RepoInfo::setBaseUrl(), zypp::repo::RepoInfoBase::setName(), zypp::RepoInfo::setPath(), zypp::RepoInfo::setTargetDistribution(), and zypp::RepoInfo::setType().

Referenced by Impl().


Member Data Documentation

Function for processing collected data.

Passed-in through constructor.

Definition at line 61 of file RepoindexFileReader.cc.

Referenced by consumeNode().

Definition at line 62 of file RepoindexFileReader.cc.


The documentation for this class was generated from the following file:
Generated on Fri Mar 2 09:46:15 2012 for libzypp by  doxygen 1.6.3