#include <yaml.h>
Public Member Functions | |
| yamlnode (const std::string &key) | |
| Contruct a list node. | |
| yamlnode (const std::string &key, const std::string &value) | |
| Construct an associative node. | |
| ~yamlnode () | |
| clean up | |
| int | type () |
| return the node type | |
| std::string & | value () |
| return the value of the node | |
| std::string & | key () |
| return the node key | |
| void | add (yamlnode *child) |
| add a child to this node | |
| void | append (const std::string &line) |
| append data to the value of the node | |
| void | strip () |
| strip any trailing newline from m_value | |
| std::vector< yamlnode * > & | children () |
| return the children of this node | |
| int | getchildcount () |
| return the number of children of this node | |
Protected Attributes | |
| std::string | m_value |
| the internal value | |
| std::string | m_key |
| the internal key | |
| int | m_type |
| the internal type | |
| std::vector< yamlnode * > | m_children |
| the list of children | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const yamlnode &item) |
| ostream friendly | |
This can be a list node or an associative node. NOTE: list nodes return thier data via 'key()'.
|
|
Contruct a list node.
|
|
||||||||||||
|
Construct an associative node.
|
|
|
clean up
|
|
|
add a child to this node
|
|
|
append data to the value of the node
|
|
|
return the children of this node
|
|
|
return the number of children of this node
|
|
|
return the node key
|
|
|
strip any trailing newline from m_value
|
|
|
return the node type
|
|
|
return the value of the node
|
|
||||||||||||
|
ostream friendly
|
|
|
the list of children
|
|
|
the internal key
|
|
|
the internal type
|
|
|
the internal value
|
1.4.4