← Back

ofxYAML

github.com/michaelbaisch/ofxYAML · @michaelbaisch
OF 0.10 Utilities

Wrapper for yaml-cpp

9 6 Last commit 8y ago Created 9y ago

Forks

Forks pushed to more recently than michaelbaisch/ofxYAML itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.

perevalovds/ofxYAML by @perevalovds · ★ 0 · pushed 1y ago
ff6347/ofxYAML by @ff6347 · ★ 0 · pushed 2y ago
themancalledjakob/ofxYAML-1 by @themancalledjakob · ★ 0 · pushed 6y ago

README

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>();

Get this addon

HTTPS
SSH