ifw-core 6.0.0
Loading...
Searching...
No Matches
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
15
16
17namespace 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_
Class to handle a set of parameters.
Definition parameterFile.hpp:19
Class implementing the handling of Yaml files in the ICS environment.
Definition yaml.hpp:23
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
Yaml()
Definition yaml.cpp:11
~Yaml()
Definition yaml.cpp:15
Definition file.cpp:17