YUMPatternImpl.cc

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00013 #include "zypp/source/yum/YUMPatternImpl.h"
00014 #include "zypp/CapFactory.h"
00015 
00016 using namespace std;
00017 using namespace zypp::detail;
00018 using namespace zypp::parser::yum;
00019 
00021 namespace zypp
00022 { 
00023 
00024 namespace source
00025 { 
00026 namespace yum
00027 {
00029 //
00030 //        CLASS NAME : YUMPatternImpl
00031 //
00033 
00036 YUMPatternImpl::YUMPatternImpl(
00037   Source_Ref source_r,
00038   const zypp::parser::yum::YUMPatternData & parsed
00039 )
00040     : _user_visible(parsed.userVisible == "true")
00041     , _summary(parsed.summary)
00042     , _description(parsed.description)
00043     , _default(parsed.default_ == "true")
00044     , _category(parsed.category)
00045     , _icon(parsed.icon)
00046     , _script(parsed.script)
00047     , _source(source_r)
00048 { }
00049 
00051 bool YUMPatternImpl::userVisible() const
00052 {
00053   return _user_visible;
00054 }
00055 
00056 TranslatedText YUMPatternImpl::summary() const
00057 {
00058   return _summary;
00059 }
00060 
00061 TranslatedText YUMPatternImpl::description() const
00062 {
00063   return _description;
00064 }
00065 
00066 Source_Ref YUMPatternImpl::source() const
00067 {
00068   return _source;
00069 }
00070 
00072 bool YUMPatternImpl::isDefault() const
00073 {
00074   return _default;
00075 }
00077 TranslatedText YUMPatternImpl::category() const
00078 {
00079   return _category;
00080 }
00082 Pathname YUMPatternImpl::icon() const
00083 {
00084   return _icon;
00085 }
00087 Pathname YUMPatternImpl::script() const
00088 {
00089   return _script;
00090 }
00091 
00092 
00093 } // namespace yum
00095 } // namespace source
00098 } // namespace zypp

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