NVIDIA Holoscan SDK v0.5.1
Holoscan v0.5.1

Class Config

class Config

Class to get the configuration of the application.

Public Functions

Config() = default

inline explicit Config(const std::string &config_file, const std::string &prefix = "")

Construct a new Config object.

Parameters
  • config_file – The path to the configuration file.

  • prefix – The prefix string that is prepended to the key of the configuration. (not implemented yet)

virtual ~Config() = default

inline const std::string &config_file() const

Get the path to the configuration file.

Returns

The path to the configuration file.

inline const std::string &prefix() const

Get the prefix string that is prepended to the key of the configuration.

Returns

The prefix string that is prepended to the key of the configuration.

inline const std::vector<YAML::Node> &yaml_nodes() const

Get the YAML::Node objects that contains YAML document data.

Returns

The reference to the vector of YAML::Node objects.

© Copyright 2022-2023, NVIDIA. Last updated on Jul 28, 2023.