holoscan::ChannelTensorSchemaPublisher
Publisher for schema metadata and local or interprocess Tensor payloads.
The caller must serialize every publication call on one publisher instance, including emit*, close(), and report_clock_health(). Transport release callbacks are synchronized internally.
Template parameters
Descriptor-backed FlatBuffer payload type.
Constructors
ChannelTensorSchemaPublisher
Move
Overload 3
Copy (deleted)
Destructor
~ChannelTensorSchemaPublisher
Assignment operators
operator=
Move assign
Copy assign (deleted)
Methods
emit
Overload 1
Overload 2
emit_captured
Overload 1
Overload 2
Emit one Tensor with a capture coordinate in the bound catalog clock.
Returns: Recipient count or a checked capture, reserve, or publication error.
Parameters
Serialized FlatBuffer metadata.
Tensor retained until the private transport releases the sample.
Exact caller-supplied capture coordinate.
Remaining optional metadata; an existing capture time is invalid.
make_capture_time
Label one coordinate with this catalog publisher’s capture clock.
Returns: Bound time point, or a checked error when closed or not catalog-authorized.
Parameters
Exact caller-supplied nanosecond coordinate.
report_clock_health
Publish one endpoint-bound clock-health report.
Returns: Success after local bounded acceptance, or a checked contract/publication error.
Parameters
Valid payload-independent assessment and reason.
close
Publish an explicit ordered end-of-stream operation and consume this generation.
Returns: Success after the frozen recipient accepts EOS, or a checked publication error.
emit_sample
Overload 1
Overload 2
Emit one Tensor with explicit public sample metadata.
Returns: Recipient count or a checked metadata, reserve, or publication error.
Parameters
Serialized FlatBuffer metadata.
Tensor retained until the private transport releases the sample.
Caller semantic metadata; transport-owned fields are normalized.
emit_payload
Emit an already constructed descriptor-backed payload.
This low-level path supports runtime-owned materialization flows that already minted a descriptor, such as an interprocess opaque external-buffer descriptor. Use emit(metadata, tensor) for an ordinary Tensor so the runtime manages its same-process sidecar record.
Returns: Recipient count or ErrorCode::kClosed, kCodecError, or a publish failure.
Parameters
Validated schema payload containing an existing payload descriptor.
update_connections
Refresh backend connection state.
Returns: Empty success or Error when closed or when the backend refresh fails.
has_subscribers
Return whether at least one subscriber is connected.
Returns: True when connected; false otherwise.
tensor_memory_options
Return graph-derived Tensor allocation options.
Returns: MemoryBuffer options or Error when closed or unavailable.