|
iceoryx2
C++ Bindings
|
Builder to create new [MessagingPattern::PublishSubscribe] based [Service]s.
More...
#include <service_builder_publish_subscribe.hpp>
Public Member Functions | |
| auto | payload_alignment (const uint64_t value) -> decltype(auto) |
| auto | enable_safe_overflow (const bool value) -> decltype(auto) |
| auto | subscriber_max_borrowed_samples (const uint64_t value) -> decltype(auto) |
| auto | history_size (const uint64_t value) -> decltype(auto) |
| auto | subscriber_max_buffer_size (const uint64_t value) -> decltype(auto) |
| auto | max_subscribers (const uint64_t value) -> decltype(auto) |
| auto | max_publishers (const uint64_t value) -> decltype(auto) |
| auto | max_nodes (const uint64_t value) -> decltype(auto) |
| template<typename U = Payload, typename = std::enable_if_t<has_flatbuffer_marker<U>(), void>> | |
| auto | flatbuffer_schema_path (const bb::FilePath &value) &&-> ServiceBuilderPublishSubscribe< U, UserHeader, S > && |
| template<typename NewHeader > | |
| auto | user_header () &&-> ServiceBuilderPublishSubscribe< Payload, NewHeader, S > && |
Sets the user header type of the [Service]. | |
| auto | resume_build () &-> ServiceBuilderPublishSubscribe< Payload, UserHeader, S > && |
| auto | open_or_create () &&-> bb::Expected< PortFactoryPublishSubscribe< S, Payload, UserHeader >, PublishSubscribeOpenOrCreateError > |
| auto | open_or_create_with_attributes (const AttributeVerifier &required_attributes) &&-> bb::Expected< PortFactoryPublishSubscribe< S, Payload, UserHeader >, PublishSubscribeOpenOrCreateError > |
| auto | open () &&-> bb::Expected< PortFactoryPublishSubscribe< S, Payload, UserHeader >, PublishSubscribeOpenError > |
Opens an existing [Service]. | |
| auto | open_with_attributes (const AttributeVerifier &required_attributes) &&-> bb::Expected< PortFactoryPublishSubscribe< S, Payload, UserHeader >, PublishSubscribeOpenError > |
| auto | create () &&-> bb::Expected< PortFactoryPublishSubscribe< S, Payload, UserHeader >, PublishSubscribeCreateError > |
Creates a new [Service]. | |
| auto | create_with_attributes (const AttributeSpecifier &attributes) &&-> bb::Expected< PortFactoryPublishSubscribe< S, Payload, UserHeader >, PublishSubscribeCreateError > |
Creates a new [Service] with a set of attributes. | |
Friends | |
| template<ServiceType > | |
| class | ServiceBuilder |
| template<typename P , typename U , ServiceType St> | |
| auto | set_payload_type_details (ServiceBuilderPublishSubscribe< P, U, St > &builder, const TypeDetail &value) -> std::enable_if_t< std::is_same< P, bb::Slice< CustomPayloadMarker > >::value > |
| template<typename P , typename U , ServiceType St> | |
| auto | set_user_header_type_details (ServiceBuilderPublishSubscribe< P, U, St > &builder, const TypeDetail &value) -> std::enable_if_t< std::is_same< U, CustomHeaderMarker >::value > |
Builder to create new [MessagingPattern::PublishSubscribe] based [Service]s.
Definition at line 69 of file service_builder_publish_subscribe.hpp.
|
inline |
Creates a new [Service].
Definition at line 420 of file service_builder_publish_subscribe.hpp.
References iox2::bb::err().
|
inline |
Creates a new [Service] with a set of attributes.
Definition at line 471 of file service_builder_publish_subscribe.hpp.
References iox2::bb::err().
| auto iox2::ServiceBuilderPublishSubscribe< Payload, UserHeader, S >::enable_safe_overflow | ( | const bool | value | ) | -> decltype(auto) |
|
inline |
Sets the path to the flatbuffer schema file. If this is not explicitly defined, iceoryx2 will try to find the best fitting schema file in the configured flatbuffer schema paths defined in the config.
Definition at line 363 of file service_builder_publish_subscribe.hpp.
| auto iox2::ServiceBuilderPublishSubscribe< Payload, UserHeader, S >::history_size | ( | const uint64_t | value | ) | -> decltype(auto) |
If the [Service] is created it defines the maximum history size a [Subscriber] can request on connection. If an existing [Service] is opened it defines the minimum required.
| auto iox2::ServiceBuilderPublishSubscribe< Payload, UserHeader, S >::max_nodes | ( | const uint64_t | value | ) | -> decltype(auto) |
| auto iox2::ServiceBuilderPublishSubscribe< Payload, UserHeader, S >::max_publishers | ( | const uint64_t | value | ) | -> decltype(auto) |
| auto iox2::ServiceBuilderPublishSubscribe< Payload, UserHeader, S >::max_subscribers | ( | const uint64_t | value | ) | -> decltype(auto) |
If the [Service] is created it defines how many [Subscriber] shall be supported at most. If an existing [Service] is opened it defines how many [Subscriber] must be at least supported.
|
inline |
Opens an existing [Service].
Definition at line 405 of file service_builder_publish_subscribe.hpp.
References iox2::bb::err().
|
inline |
If the [Service] exists, it will be opened otherwise a new [Service] will be created.
Definition at line 390 of file service_builder_publish_subscribe.hpp.
References iox2::bb::err().
|
inline |
If the [Service] exists, it will be opened otherwise a new [Service] will be created. It defines a set of attributes. If the [Service] already exists all attribute requirements must be satisfied otherwise the open process will fail. If the [Service] does not exist the required attributes will be defined in the [Service].
Definition at line 435 of file service_builder_publish_subscribe.hpp.
References iox2::bb::err().
|
inline |
Opens an existing [Service] with attribute requirements. If the defined attribute requirements are not satisfied the open process will fail.
Definition at line 453 of file service_builder_publish_subscribe.hpp.
References iox2::bb::err().
| auto iox2::ServiceBuilderPublishSubscribe< Payload, UserHeader, S >::payload_alignment | ( | const uint64_t | value | ) | -> decltype(auto) |
|
inline |
Returns the builder as an r-value so the fluent chain can be resumed after a free function, such as [set_payload_type_details()] or [set_user_header_type_details()], has been applied to the named builder.
Definition at line 370 of file service_builder_publish_subscribe.hpp.
| auto iox2::ServiceBuilderPublishSubscribe< Payload, UserHeader, S >::subscriber_max_borrowed_samples | ( | const uint64_t | value | ) | -> decltype(auto) |
If the [Service] is created it defines how many [Sample]s a [Subscriber] can borrow at most in parallel. If an existing [Service] is opened it defines the minimum required.
| auto iox2::ServiceBuilderPublishSubscribe< Payload, UserHeader, S >::subscriber_max_buffer_size | ( | const uint64_t | value | ) | -> decltype(auto) |
If the [Service] is created it defines how many [Sample] a Subscriber can store in its internal buffer. If an existing [Service] is opened it defines the minimum required.
|
inline |
Sets the user header type of the [Service].
Definition at line 353 of file service_builder_publish_subscribe.hpp.
|
friend |
Definition at line 188 of file service_builder_publish_subscribe.hpp.
|
friend |
|
friend |