13#ifndef IOX2_PORTFACTORY_READER_HPP
14#define IOX2_PORTFACTORY_READER_HPP
24template <ServiceType S,
typename KeyType>
43 iox2_port_factory_reader_builder_h m_handle =
nullptr;
48 : m_handle { handle } {
51template <ServiceType S,
typename KeyType>
53 iox2_reader_h reader_handle {};
54 auto result = iox2_port_factory_reader_builder_create(m_handle,
nullptr, &reader_handle);
56 if (result == IOX2_OK) {
60 return bb::err(bb::into<ReaderCreateError>(result));
Represents the port factory of a [Service] with [MessagingPattern::Blackboard].
PortFactoryReader(PortFactoryReader &&) noexcept=default
auto create() &&-> bb::Expected< Reader< S, KeyType >, ReaderCreateError >
Creates a new [Reader] port or returns a [ReaderCreateError] on failure.
Reading endpoint of a blackboard based communication.
constexpr auto err(const E &error) -> Unexpected< E >
iox2::bb::variation::Expected< T, E > Expected