Skip to navigation

holoscan::config_io::try_load

Beta
View as Markdown
HOLOSCAN_CONFIG_IO_EXPORT config::ConfigResult<config::Document> holoscan::config_io::try_load(
const std::filesystem::path &path,
Format format,
ParseOptions options = {}
)

Try to load and parse an explicitly selected configuration file.

Returns: The immutable Document or a structured validation, I/O, or parse failure.

Parameters

path
const std::filesystem::path &

Existing regular-file path to read.

format
Format

Explicit source syntax.

options
ParseOptionsDefaults to {}

Preservation and resource-limit policy.