13#ifndef IOX2_PORT_NAME_HPP
14#define IOX2_PORT_NAME_HPP
40 auto
to_string() const ->
iox2::bb::StaticString<IOX2_PORT_NAME_LENGTH>;
48 iox2_port_name_ptr m_ptr =
nullptr;
66 static auto create(const
char* value) ->
iox2::bb::Expected<
PortName, bb::SemanticStringError>;
69 auto
to_string() const ->
iox2::bb::StaticString<IOX2_PORT_NAME_LENGTH>;
74 explicit
PortName(iox2_port_name_h handle);
76 static auto create_impl(const
char* value,
size_t value_len)
77 ->
iox2::bb::Expected<
PortName, bb::SemanticStringError>;
79 iox2_port_name_h m_handle =
nullptr;
Non-owning view of a [PortName].
PortNameView(PortNameView &&) noexcept=default
static auto from_native_ptr(iox2_port_name_ptr m_ptr) -> PortNameView
Creates a [PortNameView] from a native [iox2_port_name_ptr].
auto to_string() const -> iox2::bb::StaticString< IOX2_PORT_NAME_LENGTH >
Returns a [iox2::bb::StaticString] containing the [PortName].
auto to_owned() const -> PortName
Creates a copy of the corresponding [PortName] and returns it.
auto native_ptr() const -> iox2_port_name_ptr
Returns the native [iox2_port_name_ptr].
Represent the name for a [Port].
PortName(PortName &&) noexcept