Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

xml_tree_show Struct Reference

#include <xml_tree_show.h>

List of all members.


Detailed Description

Function object, which, if called as a function, dumps xml element subtree represented by root node.

Definition at line 41 of file xml_tree_show.h.

Public Member Functions

 xml_tree_show (size_t level_, std::vector< std::string > const &vect_xml_names_, std::vector< std::string > const &vect_xml_text_)
 Constructs and initializes the object.
void operator= (xml_tree_show const &) const
 Assignment does nothing.
void show_level (char c_= '.') const
 Justifies output accordingly to the current level of xml tree.
void operator() (inode_reader<> const &inode_) const
 Function call operator to dump xml subtree.

Public Attributes

size_t level
 Specifies current level of xml subtree, 1, 2, 3, and so on.
std::vector< std::string
> const & 
vect_xml_names
 Specifies reference of the symbol table containing names of xml elements and attributes.
std::vector< std::string
> const & 
vect_xml_text
 Specifies reference of the symbol table containing text values of xml text and attribute nodes.


Constructor & Destructor Documentation

xml_tree_show size_t  level_,
std::vector< std::string > const &  vect_xml_names_,
std::vector< std::string > const &  vect_xml_text_
[inline]
 

Constructs and initializes the object.

Definition at line 53 of file xml_tree_show.h.

References level, vect_xml_names, and vect_xml_text.

Referenced by operator()().


Member Function Documentation

void operator() inode_reader<> const &  inode_  )  const [inline]
 

Function call operator to dump xml subtree.

Definition at line 78 of file xml_tree_show.h.

References level, show_level(), vect_xml_names, vect_xml_text, and xml_tree_show().

void operator= xml_tree_show const &   )  const [inline]
 

Assignment does nothing.

Definition at line 66 of file xml_tree_show.h.

void show_level char  c_ = '.'  )  const [inline]
 

Justifies output accordingly to the current level of xml tree.

Definition at line 71 of file xml_tree_show.h.

Referenced by operator()().


Member Data Documentation

size_t level
 

Specifies current level of xml subtree, 1, 2, 3, and so on.

Definition at line 44 of file xml_tree_show.h.

Referenced by operator()(), and xml_tree_show().

std::vector< std::string > const& vect_xml_names
 

Specifies reference of the symbol table containing names of xml elements and attributes.

Definition at line 47 of file xml_tree_show.h.

Referenced by operator()(), and xml_tree_show().

std::vector< std::string > const& vect_xml_text
 

Specifies reference of the symbol table containing text values of xml text and attribute nodes.

Definition at line 50 of file xml_tree_show.h.

Referenced by operator()(), and xml_tree_show().


The documentation for this struct was generated from the following file:
Generated on Thu Nov 2 17:43:34 2006 for CTTL XML stream parser sample by  doxygen 1.3.9.1