pugi::xml_tree_walker Class Reference

Collaboration diagram for pugi::xml_tree_walker:

Collaboration graph
[legend]
List of all members.

Detailed Description

Abstract tree walker class.

See also:
xml_node::traverse


Public Member Functions

 xml_tree_walker ()
 Default ctor.
virtual ~xml_tree_walker ()
 Virtual dtor.
virtual bool begin (xml_node &)
 Callback that is called when traversal of node begins.
virtual bool for_each (xml_node &)=0
 Callback that is called for each node traversed.
virtual bool end (xml_node &)
 Callback that is called when traversal of node ends.

Protected Member Functions

int depth () const
 Get node depth.

Friends

class xml_node


Member Function Documentation

int pugi::xml_tree_walker::depth  )  const [protected]
 

Get node depth.

Returns:
node depth

virtual bool pugi::xml_tree_walker::begin xml_node  )  [virtual]
 

Callback that is called when traversal of node begins.

Returns:
returning false will abort the traversal

virtual bool pugi::xml_tree_walker::for_each xml_node  )  [pure virtual]
 

Callback that is called for each node traversed.

Returns:
returning false will abort the traversal

virtual bool pugi::xml_tree_walker::end xml_node  )  [virtual]
 

Callback that is called when traversal of node ends.

Returns:
returning false will abort the traversal


Generated on Tue Jan 5 20:02:13 2010 for pugixml by  doxygen 1.4.6-NO