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
14
#include <
ifw/core/utils/base/base.hpp
>
15
#include <
ifw/core/utils/file/parameterFile.hpp
>
16
17
18
namespace
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_
base.hpp
ifw::core::utils::file::ParameterFile::ParameterFile
ParameterFile()
Definition
parameterFile.cpp:17
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:67
ifw::core::utils::file::Yaml::Yaml
Yaml()
Definition
yaml.cpp:12
ifw::core::utils::file::Yaml::~Yaml
~Yaml()
Definition
yaml.cpp:16
ifw::core::utils::file
Definition
file.cpp:17
parameterFile.hpp
utils
file
src
include
ifw
core
utils
file
yaml.hpp
Generated by
1.13.2