ifw-core  5.0.0-pre2
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 <core/utils/base/base.hpp>
15 
16 
17 namespace 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:18
Class implementing the handling of Yaml files in the ICS environment.
Definition: yaml.hpp:23
~Yaml()
Definition: yaml.cpp:15
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
Definition: file.cpp:16