class Host
Defined at line 1580 of file fidling/gen/sdk/fidl/fuchsia.weave/fuchsia.weave/hlcpp/fuchsia/weave/cpp/fidl.h
Representation of a host either in the form of a hostname or IP address.
Public Members
static const fidl_type_t * FidlType
Public Methods
void Host ()
void ~Host ()
void Host (Host && )
Host & operator= (Host && )
Host WithHostname (::std::string && )
Host WithIpAddress (::fuchsia::net::IpAddress && )
::std::unique_ptr<Host> New ()
void Encode (::fidl::Encoder * encoder, size_t offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, Host * value, size_t offset)
zx_status_t Clone (Host * result)
bool has_invalid_tag ()
Defined at line 1607 of file fidling/gen/sdk/fidl/fuchsia.weave/fuchsia.weave/hlcpp/fuchsia/weave/cpp/fidl.h
bool is_hostname ()
Defined at line 1611 of file fidling/gen/sdk/fidl/fuchsia.weave/fuchsia.weave/hlcpp/fuchsia/weave/cpp/fidl.h
::std::string & hostname ()
Defined at line 1613 of file fidling/gen/sdk/fidl/fuchsia.weave/fuchsia.weave/hlcpp/fuchsia/weave/cpp/fidl.h
const ::std::string & hostname ()
Defined at line 1618 of file fidling/gen/sdk/fidl/fuchsia.weave/fuchsia.weave/hlcpp/fuchsia/weave/cpp/fidl.h
bool is_ip_address ()
Defined at line 1624 of file fidling/gen/sdk/fidl/fuchsia.weave/fuchsia.weave/hlcpp/fuchsia/weave/cpp/fidl.h
::fuchsia::net::IpAddress & ip_address ()
Defined at line 1626 of file fidling/gen/sdk/fidl/fuchsia.weave/fuchsia.weave/hlcpp/fuchsia/weave/cpp/fidl.h
const ::fuchsia::net::IpAddress & ip_address ()
Defined at line 1631 of file fidling/gen/sdk/fidl/fuchsia.weave/fuchsia.weave/hlcpp/fuchsia/weave/cpp/fidl.h
::fuchsia::weave::Host::Tag Which ()
Defined at line 1637 of file fidling/gen/sdk/fidl/fuchsia.weave/fuchsia.weave/hlcpp/fuchsia/weave/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 1645 of file fidling/gen/sdk/fidl/fuchsia.weave/fuchsia.weave/hlcpp/fuchsia/weave/cpp/fidl.h
Host & set_hostname (::std::string value)
Host & set_ip_address (::fuchsia::net::IpAddress value)
Enumerations
enum Tag
| Name | Value |
|---|---|
| kHostname | 1 |
| kIpAddress | 2 |
| Invalid | ::std::numeric_limits<::fidl_union_tag_t>::max() |
Defined at line 1593 of file fidling/gen/sdk/fidl/fuchsia.weave/fuchsia.weave/hlcpp/fuchsia/weave/cpp/fidl.h
Friends
class Equality