libmoost
moost::xml::simple_parser::tree_node Struct Reference

#include <simple_parser.hpp>

List of all members.

Public Types

typedef std::vector
< boost::shared_ptr< tree_node > > 
tree_branch_t

Public Member Functions

void leaves2map (std::map< std::string, std::string > &destMap) const

Public Attributes

std::string header
std::string value
tree_branch_t leaves

Detailed Description

The structure that containse the information of an xml node. i.e. for <foo>10</foo>, "foo" is the header and "10" is the value. If it contains subtags, they are parsed in the leaves.

Definition at line 110 of file simple_parser.hpp.


Member Typedef Documentation

typedef std::vector< boost::shared_ptr<tree_node> > moost::xml::simple_parser::tree_node::tree_branch_t

Definition at line 112 of file simple_parser.hpp.


Member Function Documentation

void moost::xml::simple_parser::tree_node::leaves2map ( std::map< std::string, std::string > &  destMap) const [inline]

Will fill the map with the header/values of the leaves (it will NOT follow the leaves!)

Parameters:
destMapwhere to put the header->values data

Definition at line 312 of file simple_parser.hpp.


Member Data Documentation

Definition at line 114 of file simple_parser.hpp.

Definition at line 115 of file simple_parser.hpp.


The documentation for this struct was generated from the following file: