zypp::parser::yum::ProductFileReader::Impl Class Reference

Inheritance diagram for zypp::parser::yum::ProductFileReader::Impl:
[legend]

List of all members.

Public Member Functions

 Impl (const Pathname &products_file, const ProcessProduct &callback)
bool consumeNode (xml::Reader &reader_r)
 Callback provided to the XML reader.
data::Product_Ptr handoutProduct ()
 Creates a new data::Product_Ptr, swaps its contents with _product and returns it.

Private Attributes

ProcessProduct _callback
 Callback for processing product metadata.
data::Product_Ptr _product
 Pointer to the zypp::data::Product object for storing the product metada.


Detailed Description

Definition at line 36 of file ProductFileReader.cc.


Constructor & Destructor Documentation

zypp::parser::yum::ProductFileReader::Impl::Impl ( const Pathname &  products_file,
const ProcessProduct callback 
)

Definition at line 73 of file ProductFileReader.cc.

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


Member Function Documentation

bool zypp::parser::yum::ProductFileReader::Impl::consumeNode ( xml::Reader reader_r  ) 

Callback provided to the XML reader.

Parameters:
the xml reader object reading the file
Returns:
true to tell the reader to continue, false to tell it to stop
See also:
PrimaryFileReader::consumeNode(xml::Reader)

Definition at line 97 of file ProductFileReader.cc.

References _callback, _product, zypp::Exception::asString(), zypp::ui::asString(), zypp::xml::XmlString::asString(), handoutProduct(), zypp::ZConfig::instance(), zypp::xml::Reader::nodeText(), and WAR.

Referenced by Impl().

data::Product_Ptr zypp::parser::yum::ProductFileReader::Impl::handoutProduct (  ) 

Creates a new data::Product_Ptr, swaps its contents with _product and returns it.

Used to hand-out the data object to its consumer (a ProcessProduct function) after it has been read.

Definition at line 264 of file ProductFileReader.cc.

References _product.

Referenced by consumeNode().


Member Data Documentation

ProcessProduct zypp::parser::yum::ProductFileReader::Impl::_callback [private]

Callback for processing product metadata.

Definition at line 63 of file ProductFileReader.cc.

Referenced by consumeNode().

data::Product_Ptr zypp::parser::yum::ProductFileReader::Impl::_product [private]

Pointer to the zypp::data::Product object for storing the product metada.

Definition at line 69 of file ProductFileReader.cc.

Referenced by consumeNode(), and handoutProduct().


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 19:23:24 2007 for libzypp by  doxygen 1.5.3