00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00014 #ifndef YUMOtherParser_h 00015 #define YUMOtherParser_h 00016 00017 00018 #include <zypp/parser/yum/YUMParserData.h> 00019 #include <zypp/parser/XMLNodeIterator.h> 00020 #include <zypp/parser/LibXMLHelper.h> 00021 #include <list> 00022 #include <zypp/Arch.h> 00023 00024 namespace zypp { 00025 namespace parser { 00026 namespace yum { 00027 00048 class YUMOtherParser : public XMLNodeIterator<YUMOtherData_Ptr> 00049 { 00050 public: 00056 YUMOtherParser(std::istream &is, const std::string &baseUrl); 00057 00058 YUMOtherParser(); 00059 YUMOtherParser(YUMOtherData_Ptr& entry); 00060 00064 virtual ~YUMOtherParser(); 00065 00066 private: 00072 virtual bool isInterested(const xmlNodePtr nodePtr); 00073 00079 virtual YUMOtherData_Ptr process(const xmlTextReaderPtr reader); 00080 00084 LibXMLHelper _helper; 00085 Arch _zypp_architecture; 00086 }; 00087 } // namespace yum 00088 } // namespace parser 00089 } // namespace zypp 00090 00091 #endif