Skip to content
Wrapper for yaml-cpp
C++ Makefile C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
libs/yaml-cpp
src
.gitignore
addon_config.mk
readme.md

readme.md

ofxYAML

A wrapper for yaml-cpp.

Tested with OpenFrameworks (0.10.0). Works with both macOS Sierra (Xcode 9.4) and Windows (VS 2017). On Linux make sure you install yaml-cpp according to your distribution's guidelines.


Usage

You can use the OF Project Generator to add this addon in your project.

#include "ofxYAML.h"

Place your yaml file in the bin/data folder and access it with:

yaml.load("config.yaml");

int framerate = yaml["frameRate"].as<int>();
bool verticalSync = yaml["verticalSync"].as<bool>();
string title = yaml["title"].as<string>();
You can’t perform that action at this time.