Remove obsolete ResStatus bits.
[platform/upstream/libzypp.git] / zypp / PackageKeyword.h
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/PackageKeyword.h
10  *
11 */
12 #ifndef ZYPP_PACKAGEKEYWORD_H
13 #define ZYPP_PACKAGEKEYWORD_H
14
15 #include "zypp/IdStringType.h"
16
17 ///////////////////////////////////////////////////////////////////
18 namespace zypp
19 { /////////////////////////////////////////////////////////////////
20
21   ///////////////////////////////////////////////////////////////////
22   //
23   //    CLASS NAME : PackageKeyword
24   //
25   /** Package keywords.
26    * \see \ref IdStringType
27    */
28   class PackageKeyword : public IdStringType<PackageKeyword>
29   {
30     public:
31       /** Default ctor: empty keyword */
32       PackageKeyword() {}
33
34       /** Ctor taking keyword as string. */
35       explicit PackageKeyword( sat::detail::IdType id_r )  : _str( id_r ) {}
36       explicit PackageKeyword( const IdString & idstr_r )  : _str( idstr_r ) {}
37       explicit PackageKeyword( const std::string & str_r ) : _str( str_r ) {}
38       explicit PackageKeyword( const char * cstr_r )       : _str( cstr_r ) {}
39
40     private:
41       friend class IdStringType<PackageKeyword>;
42       IdString _str;
43    };
44   ///////////////////////////////////////////////////////////////////
45
46   /////////////////////////////////////////////////////////////////
47 } // namespace zypp
48 ///////////////////////////////////////////////////////////////////
49 #endif // ZYPP_PACKAGEKEYWORD_H