Skip to navigation

holoscan::config_io::load

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

Load and parse an explicitly selected configuration file.

The file size is checked before allocating the input buffer and the same parsing contract as parse() applies. This call may block on filesystem I/O and is not a real-time operation.

Returns: The immutable Document.

Throws: config::ConfigException on 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.