71 explicit CpeId(
const std::string & cpe_r );
76 explicit CpeId(
const char * cpe_r )
77 :
CpeId( std::string( cpe_r ? cpe_r :
"" ) )
83 CpeId(
const std::string & cpe_r, NoThrowType );
90 explicit operator bool()
const;
101 std::string
asFs()
const;
108 std::string
asUri()
const;
115 std::string
asWfn()
const;
186 explicit Value(
const std::string & value_r );
191 explicit Value(
const char * value_r )
192 :
Value( std::string( value_r ? value_r :
"*" ) )
198 Value(
const std::string & encoded_r, FsFormatType );
203 Value(
const std::string & encoded_r, UriFormatType );
215 typedef base::EnumClass<ETypeDef>
Type;
220 if ( !
_value )
return Type::ANY;
221 if (
_value->empty() )
return Type::NA;
222 return(
isWildcarded() ? Type::wildcarded : Type::wildcardfree );
238 {
return( type_r == Type::ANY || type_r == Type::NA ); }
245 {
return( type_r == Type::wildcardfree || type_r == Type::wildcarded ); }
265 std::string
asWfn()
const;
272 std::string
asFs()
const;
279 std::string
asUri()
const;
303 #endif // ZYPP_CPEID_H