13#ifndef IOX2_SERVICE_NAME_HPP
14#define IOX2_SERVICE_NAME_HPP
48 template <
ServiceType, typename, typename, typename, typename>
54 iox2_service_name_ptr m_ptr =
nullptr;
78 static auto create_impl(const
char* value,
size_t value_len)
82 iox2_service_name_h m_handle =
nullptr;
auto operator=(const ServiceNameView &) -> ServiceNameView &=default
friend class PortFactoryEvent
friend class PortFactoryPublishSubscribe
ServiceNameView(const ServiceNameView &)=default
friend class PortFactoryRequestResponse
ServiceNameView(ServiceNameView &&)=default
auto operator=(ServiceNameView &&) -> ServiceNameView &=default
auto to_owned() const -> ServiceName
Creates a copy of the corresponding [ServiceName] and returns it.
~ServiceNameView()=default
auto to_string() const -> iox2::bb::StaticString< IOX2_SERVICE_NAME_LENGTH >
Returns a [iox2::bb::StaticString] containing the [ServiceName].
friend class PortFactoryBlackboard
static auto create(const char *value) -> iox2::bb::Expected< ServiceName, bb::SemanticStringError >
Creates a new [ServiceName]. The name is not allowed to be empty.
friend class ServiceNameView
ServiceName(ServiceName &&) noexcept
auto as_view() const -> ServiceNameView
Creates a [ServiceNameView].
auto to_string() const -> iox2::bb::StaticString< IOX2_SERVICE_NAME_LENGTH >
Returns a [iox2::bb::StaticString] containing the [ServiceName].