Skip to navigation

holoscan::authoring::materialize_parameters

Beta
View as Markdown
HOLOSCAN_CORE_EXPORT expected<MaterializedParameters, Error> holoscan::authoring::materialize_parameters(
const ParamTypeDescriptor &type,
const ParamSchemaDescriptor *schema,
std::span<const ParameterAssignment> assignments
)

Default-construct and populate one exact parameter aggregate from named values.

This function translates allocation and aggregate-construction exceptions into failure data; no exception escapes the materialization boundary. Diagnostic allocation failure retains the error code with an empty message.

Returns: Owning erased aggregate, or an Error failure as data.

Parameters

type
const ParamTypeDescriptor &

Exact aggregate storage descriptor from a registered Operator row.

schema
const ParamSchemaDescriptor *

Declared field schema, or null only when assignments is empty.

assignments
std::span<const ParameterAssignment>

Named values to coerce and validate. Omitted fields retain their defaults; explicit ParameterValue::none() clears only optional fields.