|
| Value () |
| Default ctor: ANY.
|
|
| Value (const std::string &value_r) |
| Ctor from string (WFN format; "*" represents ANY; "" represents NA)
|
|
| Value (const char *value_r) |
| Ctor from char* (WFN format; nullptr or "*" represent ANY; "" represents NA)
|
|
| Value (const std::string &encoded_r, FsFormatType) |
| Ctor from string (FS format, "*" represents ANY; "-" represents NA)
|
|
| Value (const std::string &encoded_r, UriFormatType) |
| Ctor from string (URI format, "" represents ANY; "-" represents NA)
|
|
Type | type () const |
| Return the Type of this Value.
|
|
bool | isANY () const |
| Whether value is ANY.
|
|
bool | isNA () const |
| Whether value is NA.
|
|
bool | isLogical () const |
| Whether it's a logical value (ANY|NA).
|
|
bool | isLogical (Type type_r) const |
|
bool | isString () const |
| Whether it's an attribute value string (not logical value).
|
|
bool | isString (Type type_r) const |
|
bool | isWildcardfree () const |
| An attribute value string without wildcards ([*?] at begin and/or end)
|
|
bool | isWildcarded () const |
| An attribute value string with wildcards ([*?] at begin and/or end)
|
|
std::string | asString () const |
| Default string representation [asWfn].
|
|
std::string | asWfn () const |
| String representation as in Well-Formed-Name (ANY:"*", NA:"").
|
|
std::string | asFs () const |
| String representation as in Formated-String (ANY:"*", NA:"-")
|
|
std::string | asUri () const |
| String representation as in URI (ANY:"", NA:"-")
|
|
SetCompare | compare (const Value &trg) const |
| Compare sets.
|
|
SetCompare | compare (const SetRelationMixin< Value > &trg) const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
bool | compare (const Value &trg, SetCompare cmp) const |
| Compare sets and match against SetCompare.
|
|
bool | compare (const SetRelationMixin< Value > &trg, SetCompare cmp) const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
bool | compare (const Value &trg, SetRelation rel) const |
| Compare sets and match against SetRelation.
|
|
bool | compare (const SetRelationMixin< Value > &trg, SetRelation rel) const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
WFN attribute value.
Valid WFN string values are not empty, contain alphanumeric chars, underscore, no whitespace, printable non-alphanumeric characters must be quoted by a backslash.
Unescaped asterisk and question mark are special characters and may occur at the beginning and or end of the string. The asterisk must not be used more than once in asequense. The question mark may be used more than once in a sequence.
A single asterisk must not be used as attribute value, nor a single quoted hyphen.
A single question mark may be used as value.
- See also
- http://cpe.mitre.org/ for more information on the Common Platform Enumeration.
Definition at line 158 of file CpeId.h.