ifw-core  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Yaml.hpp
Go to the documentation of this file.
1 
9 #ifndef IFW_CTD_YAML_HPP_
10 #define IFW_CTD_YAML_HPP_
11 
12 #include <string>
13 
14 #include <yaml-cpp/yaml.h>
15 
16 #include "ctd/defines/defines.hpp"
18 
19 
20 namespace ctd {
21  namespace file {
22 
27  class Yaml: public ParameterFile {
28  public:
29 
30  Yaml();
31 
32  ~Yaml();
33 
53  virtual void LoadUser(const std::string& file_name,
54  const bool merge = false);
55 
56  protected:
57 
58  private:
59  void _ParseNode(YAML::Node node,
60  int32_t depth,
61  std::string cur_path,
62  const std::string& sub_path);
63  };
64 
65  }
66 }
67 
68 #endif // !IFW_CTD_YAML_HPP_
Yaml()
Definition: Yaml.cpp:7
Class implementing the handling of Yaml files in the ICS environment.
Definition: Yaml.hpp:27
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:62
Common definitions.
Class to handle parameter files.
~Yaml()
Definition: Yaml.cpp:11
Class to handle a set of parameters.
Definition: ParameterFile.hpp:22