Skip to navigation

holoscan::ChannelDescriptorSubscriber

Beta
View as Markdown

Subscriber endpoint for payload descriptor control-plane samples.

#include <holoscan/descriptor_endpoints.hpp>

Constructors

ChannelDescriptorSubscriber

Destructor

~ChannelDescriptorSubscriber

HOLOSCAN_CORE_EXPORT holoscan::ChannelDescriptorSubscriber::~ChannelDescriptorSubscriber()

Assignment operators

operator=

HOLOSCAN_CORE_EXPORT ChannelDescriptorSubscriber & holoscan::ChannelDescriptorSubscriber::operator=(
) noexcept

Methods

has_samples

HOLOSCAN_CORE_EXPORT expected<bool, Error> holoscan::ChannelDescriptorSubscriber::has_samples() const

Return whether the transport reports a pending sample without consuming it.

Returns: The readiness state, or an error when the backend cannot query it.

receive

HOLOSCAN_CORE_EXPORT expected<ChannelSampleDescriptor, Error> holoscan::ChannelDescriptorSubscriber::receive()

Receive the next descriptor.

Returns: The next descriptor, or a typed error.

receive_payload_descriptor

HOLOSCAN_CORE_EXPORT expected<PayloadDescriptor, Error> holoscan::ChannelDescriptorSubscriber::receive_payload_descriptor()

Receive the next payload descriptor.

Returns: The next payload reference, or a typed error.

receive_envelope

HOLOSCAN_CORE_EXPORT expected<SampleEnvelope, Error> holoscan::ChannelDescriptorSubscriber::receive_envelope()

Receive the next sample envelope.

Returns: The next envelope, or a typed error.


Member variables

NameTypeDescription
impl_std::unique_ptr< Impl >