Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

yamlnode Class Reference

You see a yaml node containing some information. More...

#include <yaml.h>

List of all members.

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


Detailed Description

You see a yaml node containing some information.

This can be a list node or an associative node. NOTE: list nodes return thier data via 'key()'.


Constructor & Destructor Documentation

yamlnode::yamlnode const std::string &  key  )  [inline]
 

Contruct a list node.

yamlnode::yamlnode const std::string &  key,
const std::string &  value
[inline]
 

Construct an associative node.

yamlnode::~yamlnode  ) 
 

clean up


Member Function Documentation

void yamlnode::add yamlnode child  )  [inline]
 

add a child to this node

void yamlnode::append const std::string &  line  )  [inline]
 

append data to the value of the node

std::vector<yamlnode *>& yamlnode::children  )  [inline]
 

return the children of this node

int yamlnode::getchildcount  )  [inline]
 

return the number of children of this node

std::string& yamlnode::key  )  [inline]
 

return the node key

void yamlnode::strip  ) 
 

strip any trailing newline from m_value

int yamlnode::type  )  [inline]
 

return the node type

std::string& yamlnode::value  )  [inline]
 

return the value of the node


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  os,
const yamlnode item
[friend]
 

ostream friendly


Member Data Documentation

std::vector<yamlnode *> yamlnode::m_children [protected]
 

the list of children

std::string yamlnode::m_key [protected]
 

the internal key

int yamlnode::m_type [protected]
 

the internal type

std::string yamlnode::m_value [protected]
 

the internal value


The documentation for this class was generated from the following files:
Generated on Fri Mar 10 12:32:03 2006 for MonkeyFish by  doxygen 1.4.4