class StringSelector
Defined at line 2045 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
StringSelector is an union defining different ways to describe a pattern to match
strings against.
Public Members
static const fidl_type_t * FidlType
Public Methods
void StringSelector ()
void ~StringSelector ()
void StringSelector (StringSelector && )
StringSelector & operator= (StringSelector && )
StringSelector WithStringPattern (::std::string && )
StringSelector WithExactMatch (::std::string && )
::std::unique_ptr<StringSelector> New ()
void Encode (::fidl::Encoder * encoder, size_t offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, StringSelector * value, size_t offset)
zx_status_t Clone (StringSelector * result)
bool has_invalid_tag ()
Defined at line 2073 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
bool is_string_pattern ()
Defined at line 2077 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
StringSelector & set_string_pattern (::std::string value)
::std::string & string_pattern ()
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.
Defined at line 2098 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
const ::std::string & string_pattern ()
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.
Defined at line 2122 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
bool is_exact_match ()
Defined at line 2128 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
::std::string & exact_match ()
Defined at line 2130 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
const ::std::string & exact_match ()
Defined at line 2135 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
StringSelector & set_exact_match (::std::string value)
StringSelector & SetUnknownData (fidl_xunion_tag_t ordinal, std::vector<uint8_t> bytes)
::fuchsia::diagnostics::StringSelector::Tag Which ()
Defined at line 2142 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
fidl_xunion_tag_t Ordinal ()
You probably want to use Which() method instead of Ordinal(). Use Ordinal() only when you need
access to the raw integral ordinal value.
Defined at line 2157 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
const std::vector<uint8_t> * UnknownBytes ()
Defined at line 2160 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
Enumerations
enum Tag
| Name | Value |
|---|---|
| kUnknown | 0 |
| kStringPattern | 1 |
| kExactMatch | 2 |
| Invalid | ::std::numeric_limits<::fidl_union_tag_t>::max() |
Defined at line 2058 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
Friends
class Equality