Skip to navigation

holoscan::config_io::parse

Beta
View as Markdown
HOLOSCAN_CONFIG_IO_EXPORT config::Document holoscan::config_io::parse(
std::string_view source,
Format format,
ParseOptions options = {}
)

Parse an explicitly selected JSON or admitted YAML source into an owned document.

Duplicate keys, invalid closed-enum values, unsupported YAML features, and all bound violations fail before a Document is published. Lossless mode retains immutable same-format source evidence and scalar token spans; parser-provider objects never cross this API.

Returns: The immutable Document with semantic and raw-source identity.

Throws: config::ConfigException on validation or parse failure.

Parameters

source
std::string_view

Complete source bytes, borrowed only for this call.

format
Format

Syntax selected by the caller; no filename or content inference occurs.

options
ParseOptionsDefaults to {}

Preservation and resource-limit policy.