13#ifndef IOX2_NODE_NAME_HPP
14#define IOX2_NODE_NAME_HPP
24 iox2_unique_node_id_ptr,
25 const char* executable,
28 iox2_callback_context) -> iox2_callback_progression_e;
42 auto to_string() const ->
iox2::bb::StaticString<IOX2_NODE_NAME_LENGTH>;
53 iox2_unique_node_id_ptr,
54 const
char* executable,
57 iox2_callback_context) -> iox2_callback_progression_e;
60 iox2_node_name_ptr m_ptr =
nullptr;
78 static auto create(const
char* value) ->
iox2::bb::Expected<
NodeName, bb::SemanticStringError>;
81 auto
to_string() const ->
iox2::bb::StaticString<IOX2_NODE_NAME_LENGTH>;
87 explicit
NodeName(iox2_node_name_h handle);
89 static auto create_impl(const
char* value,
size_t value_len)
90 ->
iox2::bb::Expected<
NodeName, bb::SemanticStringError>;
92 iox2_node_name_h m_handle =
nullptr;
Non-owning view of a [NodeName].
NodeNameView(const NodeNameView &)=default
auto to_owned() const -> NodeName
Creates a copy of the corresponding [NodeName] and returns it.
NodeNameView(NodeNameView &&)=default
friend auto internal::list_callback(iox2_node_state_e, iox2_unique_node_id_ptr, const char *executable, iox2_node_name_ptr, iox2_config_ptr, iox2_callback_context) -> iox2_callback_progression_e
auto operator=(const NodeNameView &) -> NodeNameView &=default
auto operator=(NodeNameView &&) -> NodeNameView &=default
auto to_string() const -> iox2::bb::StaticString< IOX2_NODE_NAME_LENGTH >
Returns a [iox2::bb::StaticString] containing the [NodeName].
Represent the name for a [Node].
NodeName(NodeName &&) noexcept
auto list_callback(iox2_node_state_e node_state, iox2_unique_node_id_ptr node_id_ptr, const char *executable, iox2_node_name_ptr node_name, iox2_config_ptr config, iox2_callback_context context) -> iox2_callback_progression_e