YUMProductImpl.cc

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002  |                          ____ _   __ __ ___                          |
00003  |                         |__  / \ / / . \ . \                         |
00004  |                           / / \ V /|  _/  _/                         |
00005  |                          / /__ | | | | | |                           |
00006  |                         /_____||_| |_| |_|                           |
00007  |                                                                      |
00008  \---------------------------------------------------------------------*/
00013 #include "zypp/source/yum/YUMProductImpl.h"
00014 #include "zypp/source/yum/YUMSourceImpl.h"
00015 #include <zypp/CapFactory.h>
00016 #include "zypp/parser/yum/YUMParserData.h"
00017 #include <zypp/parser/yum/YUMParser.h>
00018 #include "zypp/Package.h"
00019 #include "zypp/Script.h"
00020 #include "zypp/Message.h"
00021 #include "zypp/base/Logger.h"
00022 
00023 
00024 using namespace std;
00025 using namespace zypp::detail;
00026 using namespace zypp::parser::yum;
00027 
00029 namespace zypp
00030 { 
00031 
00032   namespace source
00033   { 
00034 
00035     namespace yum
00036     { 
00037 
00039       //
00040       //        CLASS NAME : YUMProductImpl
00041       //
00043 
00047       YUMProductImpl::YUMProductImpl(
00048                                       Source_Ref source_r,
00049                                       const zypp::parser::yum::YUMProductData & parsed
00050                                       )
00051       : _category(parsed.type),
00052       _vendor(parsed.vendor),
00053       _short_name(parsed.short_name),
00054       _distribution_name(parsed.distribution_name),
00055       _distribution_edition(Edition(parsed.distribution_edition)),
00056       _source(source_r)
00057       {
00058       }
00059 
00060       std::string YUMProductImpl::category() const
00061       {
00062         return _category;
00063       }
00064 
00065       Label YUMProductImpl::vendor() const
00066       {
00067         return _vendor;
00068       }
00069 
00070       TranslatedText YUMProductImpl::summary() const
00071       {
00072         return _summary;
00073       }
00074 
00075       TranslatedText YUMProductImpl::description() const
00076       {
00077         return _description;
00078       }
00079 
00080       Source_Ref YUMProductImpl::source() const
00081       {
00082         return _source;
00083       }
00084 
00085       std::list<std::string> YUMProductImpl::flags() const
00086       {
00087         return ProductImplIf::flags();
00088       }
00089 
00090       TranslatedText YUMProductImpl::shortName() const
00091       {
00092         return _short_name;
00093       }
00094 
00095       std::string YUMProductImpl::distributionName() const
00096       {
00097         return _distribution_name;
00098       }
00099 
00100       Edition YUMProductImpl::distributionEdition() const
00101       {
00102         return _distribution_edition;
00103       }
00104 
00106     } // namespace yum
00109   } // namespace source
00112 } // namespace zypp

Generated on Thu Apr 24 02:24:56 2008 for zypp by  doxygen 1.4.6