13#ifndef IOX2_SERVICE_NAME_HPP
14#define IOX2_SERVICE_NAME_HPP
33 auto to_string() const ->
iox2::bb::StaticString<IOX2_SERVICE_NAME_LENGTH>;
48 template <
ServiceType, typename, typename, typename, typename>
54 iox2_service_name_ptr m_ptr =
nullptr;
70 static auto create(const
char* value) ->
iox2::bb::Expected<
ServiceName, bb::SemanticStringError>;
73 auto
to_string() const ->
iox2::bb::StaticString<IOX2_SERVICE_NAME_LENGTH>;
78 static auto create_impl(const
char* value,
size_t value_len)
82 iox2_service_name_h m_handle =
nullptr;
Represents the port factory of a [Service] with [MessagingPattern::Blackboard].
Represents the port factory of a [Service] with [MessagingPattern::Event].
Non-owning view of a [ServiceName].
auto operator=(const ServiceNameView &) -> ServiceNameView &=default
ServiceNameView(const ServiceNameView &)=default
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].
ServiceName(ServiceName &&) noexcept