NVIDIA Holoscan SDK v.2.1.0
v2.1.0

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.

Previous Class Condition
Next Class CountCondition
© Copyright 2022-2024, NVIDIA. Last updated on Jul 3, 2024.