YUMProductParser.h

Go to the documentation of this file.
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 {
00025 namespace parser
00026 {
00027 namespace yum
00028 {
00029 
00050 class YUMProductParser : public XMLNodeIterator<YUMProductData_Ptr>
00051 {
00052 public:
00053   YUMProductParser(std::istream &is, const std::string &baseUrl, parser::ParserProgress::Ptr progress = parser::ParserProgress::Ptr());
00054   YUMProductParser();
00055   YUMProductParser(YUMProductData_Ptr& entry);
00056   virtual ~YUMProductParser();
00057 
00058 private:
00059   virtual bool isInterested(const xmlNodePtr nodePtr);
00060   virtual YUMProductData_Ptr process(const xmlTextReaderPtr reader);
00061   LibXMLHelper _helper;
00062 };
00063 } // namespace yum
00064 } // namespace parser
00065 } // namespace zypp
00066 
00067 #endif

Generated on Tue Nov 28 16:49:30 2006 for zypp by  doxygen 1.5.0