Skip to navigation

holoscan::config_io::try_parse

Beta
View as MarkdownOpen in Claude
HOLOSCAN_CONFIG_IO_EXPORT config::ConfigResult<config::Document> holoscan::config_io::try_parse(
std::string_view source,
Format format,
ParseOptions options = {}
)

Try to parse an explicitly selected JSON or admitted YAML source.

Returns: The immutable Document or a structured 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.