00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00015 #ifndef YUMProductParser_h 00016 #define YUMProductParser_h 00017 00018 #include "zypp/parser/yum/YUMParserData.h" 00019 #include "zypp/parser/XMLNodeIterator.h" 00020 #include "zypp/parser/LibXMLHelper.h" 00021 #include <list> 00022 00023 namespace zypp { 00024 namespace parser { 00025 namespace yum { 00026 00047 class YUMProductParser : public XMLNodeIterator<YUMProductData_Ptr> 00048 { 00049 public: 00050 YUMProductParser(std::istream &is, const std::string &baseUrl); 00051 YUMProductParser(); 00052 YUMProductParser(YUMProductData_Ptr& entry); 00053 virtual ~YUMProductParser(); 00054 00055 private: 00056 virtual bool isInterested(const xmlNodePtr nodePtr); 00057 virtual YUMProductData_Ptr process(const xmlTextReaderPtr reader); 00058 LibXMLHelper _helper; 00059 }; 00060 } // namespace yum 00061 } // namespace parser 00062 } // namespace zypp 00063 00064 #endif