1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/PackageKeyword.h
12 #ifndef ZYPP_PACKAGEKEYWORD_H
13 #define ZYPP_PACKAGEKEYWORD_H
15 #include "zypp/IdStringType.h"
17 ///////////////////////////////////////////////////////////////////
19 { /////////////////////////////////////////////////////////////////
21 ///////////////////////////////////////////////////////////////////
23 // CLASS NAME : PackageKeyword
26 * \see \ref IdStringType
28 class PackageKeyword : public IdStringType<PackageKeyword>
31 /** Default ctor: empty keyword */
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 ) {}
41 friend class IdStringType<PackageKeyword>;
44 ///////////////////////////////////////////////////////////////////
46 /////////////////////////////////////////////////////////////////
48 ///////////////////////////////////////////////////////////////////
49 #endif // ZYPP_PACKAGEKEYWORD_H