ifw-core 7.0.0
 
Loading...
Searching...
No Matches
yaml.hpp
Go to the documentation of this file.
1
6
7#ifndef IFW_CORE_UTILS_YAML_HPP_
8#define IFW_CORE_UTILS_YAML_HPP_
9
10#include <string>
11
12#include <yaml-cpp/yaml.h>
13
16
17
18namespace ifw::core::utils::file {
19
24 class Yaml: public ParameterFile {
25 public:
26
27 Yaml();
28
29 ~Yaml();
30
50 virtual void LoadUser(const std::string& file_name,
51 const bool merge = false);
52
53 protected:
54
55 private:
56 void _ParseNode(YAML::Node node,
57 int32_t depth,
58 std::string cur_path,
59 const std::string& sub_path);
60 };
61
62}
63
64#endif // !IFW_CORE_UTILS_YAML_HPP_
ParameterFile()
Definition parameterFile.cpp:17
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:67
Yaml()
Definition yaml.cpp:12
~Yaml()
Definition yaml.cpp:16
Definition file.cpp:17