ifw-core
6.0.0
Loading...
Searching...
No Matches
utils
file
src
include
ifw
core
utils
file
yaml.hpp
Go to the documentation of this file.
1
6
#ifndef IFW_CORE_UTILS_YAML_HPP_
7
#define IFW_CORE_UTILS_YAML_HPP_
8
9
#include <string>
10
11
#include <yaml-cpp/yaml.h>
12
13
#include <
ifw/core/utils/base/base.hpp
>
14
#include <
ifw/core/utils/file/parameterFile.hpp
>
15
16
17
namespace
ifw::core::utils::file
{
18
23
class
Yaml
:
public
ParameterFile
{
24
public
:
25
26
Yaml
();
27
28
~Yaml
();
29
49
virtual
void
LoadUser
(
const
std::string& file_name,
50
const
bool
merge =
false
);
51
52
protected
:
53
54
private
:
55
void
_ParseNode(YAML::Node node,
56
int32_t depth,
57
std::string cur_path,
58
const
std::string& sub_path);
59
};
60
61
}
62
63
#endif
// !IFW_CORE_UTILS_YAML_HPP_
base.hpp
ifw::core::utils::file::ParameterFile
Class to handle a set of parameters.
Definition
parameterFile.hpp:19
ifw::core::utils::file::Yaml
Class implementing the handling of Yaml files in the ICS environment.
Definition
yaml.hpp:23
ifw::core::utils::file::Yaml::LoadUser
virtual void LoadUser(const std::string &file_name, const bool merge=false)
Load the Yaml file and convert its contents into a dictionary.
Definition
yaml.cpp:66
ifw::core::utils::file::Yaml::Yaml
Yaml()
Definition
yaml.cpp:11
ifw::core::utils::file::Yaml::~Yaml
~Yaml()
Definition
yaml.cpp:15
ifw::core::utils::file
Definition
file.cpp:17
parameterFile.hpp
Generated by
1.10.0