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. | |
Definition at line 36 of file ProductFileReader.cc.
| 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.
| bool zypp::parser::yum::ProductFileReader::Impl::consumeNode | ( | xml::Reader & | reader_r | ) |
Callback provided to the XML reader.
| the | xml reader object reading the file |
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().
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().
1.5.3