class ExposeDirectory
Defined at line 5565 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
Declares a directory exposed to a component's containing realm, such as a
directory exposed by the component or one of its children at runtime.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
bool has_source ()
Defined at line 5579 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
::fuchsia::component::decl::Ref * mutable_source ()
(Required) The provider of the capability relative to the component
itself. Must be `self` or `child`, or `void`. If set to `void`, then the
target must expose, offer, or use the capability with `OPTIONAL` or
`TRANSITIONAL` availability.
Defined at line 5587 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
void clear_source ()
Defined at line 5595 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
bool has_source_name ()
Defined at line 5609 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
::std::string * mutable_source_name ()
(Required) Name identifying the directory, by which it was presented to
this component.
Defined at line 5615 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
void clear_source_name ()
Defined at line 5623 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
bool has_target ()
Defined at line 5637 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
::fuchsia::component::decl::Ref * mutable_target ()
(Required) The destination to which the directory is exposed: either the
component's realm or the framework.
Defined at line 5643 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
void clear_target ()
Defined at line 5651 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
bool has_target_name ()
Defined at line 5664 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
::std::string * mutable_target_name ()
(Required) The name by which the capability is being exposed.
Defined at line 5669 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
void clear_target_name ()
Defined at line 5677 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
const ::fuchsia::io::Operations & rights ()
(Optional) The maximum rights that can be set by a component using this
directory. If unset, the rights are inherited from `source`.
Defined at line 5687 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
bool has_rights ()
Defined at line 5691 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
::fuchsia::io::Operations * mutable_rights ()
(Optional) The maximum rights that can be set by a component using this
directory. If unset, the rights are inherited from `source`.
Defined at line 5697 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
void clear_rights ()
Defined at line 5705 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
bool has_subdir ()
Defined at line 5719 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
::std::string * mutable_subdir ()
(Optional) The subdirectory of this directory to expose instead of the
root.
Defined at line 5725 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
void clear_subdir ()
Defined at line 5733 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
const ::fuchsia::component::decl::Availability & availability ()
(Optional, defaults to `REQUIRED`) The availability of this capability.
See [`Availability`].
Defined at line 5743 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
bool has_availability ()
Defined at line 5747 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
::fuchsia::component::decl::Availability * mutable_availability ()
(Optional, defaults to `REQUIRED`) The availability of this capability.
See [`Availability`].
Defined at line 5753 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
void clear_availability ()
Defined at line 5761 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
bool has_source_dictionary ()
Defined at line 5781 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
::std::string * mutable_source_dictionary ()
(Optional) Path in a dictionary offered by `ref` which contains `source_name`.
If this field is absent, `source_name` identifies a capability directly routed
by `source`. If set, `source_name` identifies a capability nested inside a
dictionary. The name of the top-level dictionary is given by the first path
segment of `source_dictionary`, and `source` is expected to route a
dictionary capability with this name. The rest of the path (possibly empty)
represents the path to a dictionary nested in the top-level dictionary which
is expected to contain `source_name`.
Defined at line 5793 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
void clear_source_dictionary ()
Defined at line 5801 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
ExposeDirectory & set_source (::fuchsia::component::decl::Ref _value)
ExposeDirectory & set_source_name (::std::string _value)
ExposeDirectory & set_target (::fuchsia::component::decl::Ref _value)
ExposeDirectory & set_target_name (::std::string _value)
ExposeDirectory & set_rights (::fuchsia::io::Operations _value)
ExposeDirectory & set_subdir (::std::string _value)
ExposeDirectory & set_availability (::fuchsia::component::decl::Availability _value)
ExposeDirectory & set_source_dictionary (::std::string _value)
void ExposeDirectory ()
void ExposeDirectory (ExposeDirectory && other)
const ::fuchsia::component::decl::Ref & source ()
(Required) The provider of the capability relative to the component
itself. Must be `self` or `child`, or `void`. If set to `void`, then the
target must expose, offer, or use the capability with `OPTIONAL` or
`TRANSITIONAL` availability.
Defined at line 5575 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
const ::std::string & source_name ()
(Required) Name identifying the directory, by which it was presented to
this component.
Defined at line 5605 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
const ::fuchsia::component::decl::Ref & target ()
(Required) The destination to which the directory is exposed: either the
component's realm or the framework.
Defined at line 5633 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
const ::std::string & target_name ()
(Required) The name by which the capability is being exposed.
Defined at line 5660 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
const ::std::string & subdir ()
(Optional) The subdirectory of this directory to expose instead of the
root.
Defined at line 5715 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
const ::std::string & source_dictionary ()
(Optional) Path in a dictionary offered by `ref` which contains `source_name`.
If this field is absent, `source_name` identifies a capability directly routed
by `source`. If set, `source_name` identifies a capability nested inside a
dictionary. The name of the top-level dictionary is given by the first path
segment of `source_dictionary`, and `source` is expected to route a
dictionary capability with this name. The rest of the path (possibly empty)
represents the path to a dictionary nested in the top-level dictionary which
is expected to contain `source_name`.
Defined at line 5777 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h
void ~ExposeDirectory ()
ExposeDirectory & operator= (ExposeDirectory && other)
::std::unique_ptr<ExposeDirectory> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, ExposeDirectory * _value, size_t _offset)
zx_status_t Clone (ExposeDirectory * _result)