#include <yaml.h>
Public Member Functions | |
yaml () | |
construct a yaml object | |
~yaml () | |
destroy | |
yamlnode * | getroot () |
return the root node | |
bool | readfile (const std::string &fname) |
read/parse a text file | |
void | writenode (std::ostream &os, yamlnode *item, int depth=-1) |
write a yamlnode | |
int | trim (std::string *str, bool frontonly=false) |
trim a string | |
void | tokenize (const std::string &str, std::vector< std::string > &tokens, const std::string &delim) |
tokenize a string | |
Public Attributes | |
std::string | m_eol |
eol |
|
construct a yaml object
|
|
destroy
|
|
return the root node
|
|
read/parse a text file
|
|
tokenize a string
|
|
trim a string This also removes comments in the string.
|
|
write a yamlnode
|
|
eol
|