YUMPatternParser.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00015 #ifndef YUMPatternParser_h
00016 #define YUMPatternParser_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 
00052 class YUMPatternParser : public XMLNodeIterator<YUMPatternData_Ptr>
00053 {
00054 public:
00055   YUMPatternParser(std::istream &is, const std::string &baseUrl, parser::ParserProgress::Ptr progress = parser::ParserProgress::Ptr() );
00056   YUMPatternParser();
00057   YUMPatternParser(YUMPatternData_Ptr& entry);
00058   virtual ~YUMPatternParser();
00059 
00060 private:
00061   virtual bool isInterested(const xmlNodePtr nodePtr);
00062   virtual YUMPatternData_Ptr process(const xmlTextReaderPtr reader);
00063 
00064   LibXMLHelper _helper;
00065 };
00066 } // namespace yum
00067 } // namespace parser
00068 } // namespace zypp
00069 
00070 #endif

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