class StringSelector
Defined at line 1310 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/natural_types.h
StringSelector is an union defining different ways to describe a pattern to match
strings against.
Public Methods
void StringSelector (StringSelector && other)
StringSelector & operator= (StringSelector && other)
void StringSelector (const StringSelector & other)
StringSelector & operator= (const StringSelector & other)
bool operator== (const StringSelector & other)
bool operator!= (const StringSelector & other)
bool IsUnknown ()
::fuchsia_diagnostics::StringSelector::Tag Which ()
StringSelector WithStringPattern (::std::string val)
const ::fidl::internal::UnionMemberView<1, Storage_> string_pattern ()
::fidl::internal::UnionMemberView<1, Storage_> string_pattern ()
StringSelector & string_pattern (::std::string value)
This is a provided string that defines a pattern to
match against. The parser treats asterisks (*), colons (:) and backslashes
(
\
) as special characters.
If you wish to match against literal asterisks (*), they must be escaped.
If you wish to match against literal backslashes (
\
), they must be escaped.
If you wish to match against literal colons (:), they must be escaped.
eg: abc will match any string with the exact name "abc".
eg: a
\
* will match any string with the exact name "a*".
eg: a
\
* will match any that starts with exactly "a\".
eg: a* will match any string that starts with "a".
eg: a*b will match any string that starts with a and ends with b.
eg: a*b*c will match any string that starts with a and ends with c, with `b`
in the middle.
In addition, the "**" literal is treated as a special sequence that may match
multiple levels in a component selector only. See |ComponentSelector| for
details.
StringSelector WithExactMatch (::std::string val)
const ::fidl::internal::UnionMemberView<2, Storage_> exact_match ()
::fidl::internal::UnionMemberView<2, Storage_> exact_match ()
StringSelector & exact_match (::std::string value)
Sets the union to hold the exact_match member.
void StringSelector (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Enumerations
enum Tag
| Name | Value |
|---|---|
| kStringPattern | 1 |
| kExactMatch | 2 |
| _do_not_handle_this__write_a_default_case_instead | ::std::numeric_limits<::fidl_union_tag_t>::max() |
TODO: share union tag types between wire
&
natural.
Defined at line 1320 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/natural_types.h
Friends
class NaturalUnionCodingTraits