00001
00002
00003
00004
00005
00006
00007
00008
00012 #ifndef ZYPP_SOURCE_SUSETAGS_PRODUCTMETADATAPARSER_H
00013 #define ZYPP_SOURCE_SUSETAGS_PRODUCTMETADATAPARSER_H
00014
00015 #include <iosfwd>
00016 #include <set>
00017 #include <map>
00018 #include <list>
00019
00020 #include "zypp/parser/tagfile/ParseException.h"
00021
00022 #include "zypp/CheckSum.h"
00023 #include "zypp/Pathname.h"
00024 #include "zypp/Product.h"
00025 #include "zypp/source/susetags/SuseTagsProductImpl.h"
00027 namespace zypp
00028 {
00029
00030 namespace source
00031 {
00032
00033 namespace susetags
00034 {
00035
00037
00038
00039
00041 struct ProductMetadataParser
00042 {
00043 Product::Ptr result;
00044 detail::ResImplTraits<SuseTagsProductImpl>::Ptr prodImpl;
00045 ProductMetadataParser();
00046 virtual ~ProductMetadataParser()
00047 {}
00048
00049
00050
00051
00052
00053 void parse( const Pathname & file_r, Source_Ref source_r);
00054
00055
00056
00057
00058 void parseLine( const std::string &key, const std::string &modif, const std::string &value, std::map< std::string, std::list<std::string> > &container);
00059
00060 void parseLine( const std::string &key, const std::string &lang, const std::string &value, TranslatedText &container);
00061
00062
00063
00064 void parseLine( const std::string &key,const std::string &modif, const std::string &value, std::map< std::string, std::string > &container);
00065
00066
00067
00068 void parseLine( const std::string &key, const std::string &value, std::list<std::string> &container);
00069
00070
00071
00072 void parseDependencies( const std::string &key, const std::string &value, zypp::Dependencies & deps, zypp::Dep deptag );
00073
00074
00075 void parseFileCheckSum( const std::string &key, const std::string &value, std::map<std::string, CheckSum> &container);
00076
00077
00078 bool volatile_content;
00079
00080 };
00082
00084 }
00087 }
00090 }
00092
00093 #endif // ZYPP_SOURCE_SUSETAGS_PRODUCTMETADATAPARSER_H