#include <YAMLConfiguration.hpp>
◆ applyStringVariableInsertions()
| std::string YAMLConfigParser::applyStringVariableInsertions |
( |
const std::string & |
val | ) |
|
|
static |
This function analyses the given string and replaces variables. The variables in the string taht will be evaluated are given by "<%= ENV('xyz') %>" or "<%= BUNDLES('xyz') %>". In the case of ENV, the given value xyz will be treeted as an environment variable that will be replaced by its current value. BUNDLES specifies that xyz in that case is a relative path (relative with respect to a bundle root). This path will be converted in an absolute path by adding the prefix path of the bundle in which the path was found (starting with the default bundle if specified).
- Parameters
-
| val | Is a const string reference parameter, which contains the original string with the variables. |
- Returns
- String containing the enhanced string with all replacements.
◆ displayMap()
| void YAMLConfigParser::displayMap |
( |
const YAML::Node & |
map, |
|
|
int |
level = 0 |
|
) |
| |
◆ getConfigValue() [1/2]
| std::shared_ptr< ConfigValue > YAMLConfigParser::getConfigValue |
( |
const YAML::Node & |
node | ) |
|
◆ getConfigValue() [2/2]
| std::shared_ptr< ConfigValue > YAMLConfigParser::getConfigValue |
( |
const std::string & |
ymlString | ) |
|
◆ getMap()
◆ insetMapIntoArray() [1/3]
| bool YAMLConfigParser::insetMapIntoArray |
( |
const YAML::Node & |
map, |
|
|
ArrayConfigValue & |
array |
|
) |
| |
◆ insetMapIntoArray() [2/3]
| bool YAMLConfigParser::insetMapIntoArray |
( |
const YAML::Node & |
map, |
|
|
ComplexConfigValue & |
complex |
|
) |
| |
◆ insetMapIntoArray() [3/3]
| bool YAMLConfigParser::insetMapIntoArray |
( |
const YAML::Node & |
map, |
|
|
Configuration & |
conf |
|
) |
| |
◆ loadConfigFile()
| bool YAMLConfigParser::loadConfigFile |
( |
const std::string & |
path, |
|
|
std::map< std::string, Configuration > & |
subConfigs |
|
) |
| |
◆ parseYAML()
| bool YAMLConfigParser::parseYAML |
( |
Configuration & |
curConfig, |
|
|
const std::string & |
yamlBuffer |
|
) |
| |
◆ printNode()
| void YAMLConfigParser::printNode |
( |
const YAML::Node & |
node, |
|
|
int |
level = 0 |
|
) |
| |
The documentation for this class was generated from the following files: