A header-only wrapper class for yaml-cpp
that simplifies the safe and easy loading of YAML parameters.
To use yaml-loader
, you need to install yaml-cpp
:
sudo apt install libyaml-cpp-dev
- Copy and include
yaml_loader.hpp
in your project. - Add the following lines to your
CMakeLists.txt
:
find_package(yaml-cpp REQUIRED)
target_link_libraries(${YOUR_PROJECT}
yaml-cpp
)
For an example of usage, please refer to main.cpp
.