25 os <<
"Configuration";
28 os <<
"EnvironmentVariable";
45 std::optional<std::reference_wrapper<elt::configng::CiiConfigInstanceNode const>>
46 GetParam(std::string
const& query, elt::configng::CiiConfigInstanceNode
const& node) {
51 auto pos = query.find(
'/');
52 if (pos == std::string::npos) {
54 if (node.Has(query)) {
55 return std::cref(node[query]);
59 auto next = query.substr(0, pos);
60 auto next_query = query.substr(pos + 1, std::string::npos);
61 if (!node.Has(next)) {
64 return GetParam(next_query, node[next]);
daq::config::Manager and associated types.
std::optional< std::reference_wrapper< elt::configng::CiiConfigInstanceNode const > > GetParam(std::string const &query, elt::configng::CiiConfigInstanceNode const &node)
Performs lookup of parameters in the form root/node/leaf relative to the provided node.
std::string description
May include additional information like which configuration file was used.
Origin
Configuration origins in descending priority.
@ Configuration
Configuration file.
@ Default
Built-in default value.
@ Runtime
Runtime change via e.g.
@ CommandLine
Command line argument.
@ EnvironmentVariable
Environment variable.
std::ostream & operator<<(std::ostream &os, Origin origin)
Format Origin.
Mutable metadata about a configuration attribute that describes where a value comes from.