holoscan::ChannelEndpointCatalog
Own an immutable canonical catalog of external Graph endpoints.
Copies share immutable state. Views and spans remain valid while any catalog sharing that state remains alive. The catalog contains no live attachment or execution authority and is safe for concurrent reads.
Constructors
ChannelEndpointCatalog
Default
Overload 2
Create an empty immutable catalog.
Methods
save_json
Save canonical normalized JSON without mutating this value.
Existing and staged files are compared with fixed-size reads capped at the canonical catalog size plus one byte. Oversized existing content is replaced; an oversized staged file fails verification and is removed.
Returns: Success or a typed filesystem error.
Parameters
Destination replaced only when canonical bytes differ.
json
Return canonical normalized catalog JSON.
Returns: Owned canonical bytes; an empty catalog returns an empty string.
digest
Return the normalized catalog digest.
Returns: Catalog-owned sha256: spelling, or an empty view for an empty catalog.
raw_source_sha256
Return the SHA-256 of exact parsed source bytes when available.
Returns: Catalog-owned sha256: spelling, or no value for program-built catalogs.
raw_source_size_bytes
Return the exact parsed source byte count when available.
Returns: Raw byte count, or no value for program-built catalogs.
scope
Return the exact deployment scope carried by this catalog.
Returns: Catalog-owned scope, or an empty view for an empty catalog.
endpoint
Find one endpoint by its exact stable name.
Failure returns a code-only error so lookup remains nonthrowing.
Returns: Immutable catalog-owned view, or ErrorCode::kNotFound.
Parameters
Exact case-sensitive endpoint identity.
compatibility_with
Compare this required catalog with one candidate catalog.
Returns: Deterministically ordered compatibility diagnostics.
Parameters
Candidate/provided immutable catalog.
edit
Create an advanced builder initialized from this catalog.
Returns: Independent builder; this immutable catalog is unchanged.
Static methods
parse_json
Parse and normalize one strict schema-v2 JSON catalog.
Returns: Immutable normalized catalog with nonsemantic raw-source provenance.
Parameters
Exact source bytes; duplicate keys and invalid UTF-8 reject.
load_json
Load and normalize one strict schema-v2 JSON catalog.
Returns: Immutable normalized catalog with nonsemantic raw-source provenance.
Parameters
File whose exact bytes are read before parsing.
builder
Create an empty advanced builder for one deployment scope.
Returns: Independent builder defined by endpoint_catalog_builder.hpp.
Parameters
Nonempty scope copied by the builder.
Member variables
Inner classes
EndpointView
Inspect one immutable endpoint owned by a ChannelEndpointCatalog.
The view borrows catalog state and becomes invalid when the final catalog sharing that state is destroyed. It exposes no attachment or mutation authority and is safe for concurrent reads while its catalog remains alive.
Builder
Build or edit one immutable external endpoint catalog.
The builder owns all copied authoring state. It creates no transport service, performs no attachment, and cannot mutate a catalog that has already been built. Build-time validation is identical for graph-derived, parsed, and independently authored catalogs.