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       _source(source_r)
00055       {
00056         _category = source_r.baseSource() ? "base" : "add-on";
00057       }
00058 
00059       std::string YUMProductImpl::category() const
00060       {
00061         return _category;
00062       }
00063 
00064       Label YUMProductImpl::vendor() const
00065       {
00066         return _vendor;
00067       }
00068 
00069       TranslatedText YUMProductImpl::summary() const
00070       {
00071         return _summary;
00072       }
00073 
00074       TranslatedText YUMProductImpl::description() const
00075       {
00076         return _description;
00077       }
00078 
00079       Source_Ref YUMProductImpl::source() const
00080       {
00081         return _source;
00082       }
00083 
00084       std::list<std::string> YUMProductImpl::flags() const
00085       {
00086         return ProductImplIf::flags();
00087       }
00088 
00089       TranslatedText YUMProductImpl::shortName() const
00090       {
00091         return _short_name;
00092       }
00093 
00094       std::string YUMProductImpl::distributionName() const
00095       {
00096         return ProductImplIf::distributionName();
00097       }
00098 
00099       Edition YUMProductImpl::distributionEdition() const
00100       {
00101         return ProductImplIf::distributionEdition();
00102       }
00103 
00105     } // namespace yum
00108   } // namespace source
00111 } // namespace zypp

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