class StringSelector
Defined at line 2082 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 ()
bool is_string_pattern ()
Defined at line 2114 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
::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 2135 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 2159 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
bool is_exact_match ()
Defined at line 2165 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
::std::string & exact_match ()
Defined at line 2167 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
const ::std::string & exact_match ()
Defined at line 2172 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
::fuchsia::diagnostics::StringSelector::Tag Which ()
Defined at line 2179 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 2194 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 2197 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
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_toffset,std::optional< ::fidl::HandleInformation>maybe_handle_info)
void Decode (::fidl::Decoder *_decoder,StringSelector *value,size_toffset)
zx_status_t Clone (StringSelector * result)
bool has_invalid_tag ()
Defined at line 2110 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
StringSelector & set_string_pattern (::std::string value)
StringSelector & set_exact_match (::std::string value)
StringSelector & SetUnknownData (fidl_xunion_tag_t ordinal, std::vector<uint8_t> bytes)
Enumerations
enum Tag : fidl_xunion_tag_t
| Name | Value | Comments |
|---|---|---|
| kUnknown | 0 | -- |
| kStringPattern | 1 |
0x1 |
| kExactMatch | 2 |
0x2 |
| Invalid | ::std::numeric_limits<::fidl_union_tag_t>::max() | -- |
Defined at line 2095 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h
Friends
class Equality