13#ifndef IOX2_PORT_NAME_HPP
14#define IOX2_PORT_NAME_HPP
48 iox2_port_name_ptr m_ptr =
nullptr;
74 explicit
PortName(iox2_port_name_h handle);
76 static auto create_impl(const
char* value,
size_t value_len)
79 iox2_port_name_h m_handle =
nullptr;
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].
static auto create(const char *value) -> iox2::bb::Expected< PortName, bb::SemanticStringError >
friend class PortNameView
PortName(PortName &&) noexcept
auto to_string() const -> iox2::bb::StaticString< IOX2_PORT_NAME_LENGTH >
Returns a [iox2::bb::StaticString] containing the [PortName].
auto as_view() const -> PortNameView
Creates a [PortNameView].