libzypp  10.5.0
PackageKeyword.h
Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_PACKAGEKEYWORD_H
00013 #define ZYPP_PACKAGEKEYWORD_H
00014 
00015 #include "zypp/IdStringType.h"
00016 
00018 namespace zypp
00019 { 
00020 
00022   //
00023   //    CLASS NAME : PackageKeyword
00024   //
00028   class PackageKeyword : public IdStringType<PackageKeyword>
00029   {
00030     public:
00032       PackageKeyword() {}
00033 
00035       explicit PackageKeyword( sat::detail::IdType id_r )  : _str( id_r ) {}
00036       explicit PackageKeyword( const IdString & idstr_r )  : _str( idstr_r ) {}
00037       explicit PackageKeyword( const std::string & str_r ) : _str( str_r ) {}
00038       explicit PackageKeyword( const char * cstr_r )       : _str( cstr_r ) {}
00039 
00040     private:
00041       friend class IdStringType<PackageKeyword>;
00042       IdString _str;
00043    };
00045 
00047 } // namespace zypp
00049 #endif // ZYPP_PACKAGEKEYWORD_H