TwiceAsNice  2019-02-18
Public Member Functions | Private Attributes | List of all members
Nice::XmlSquirrel Class Reference

The XmlSquirrel class is derived from the TreeVisitor class. An object of this class is used to perform some kind of action while iterating a joint tree. The function visit is called whenever a joint/leaf is reached. In this visit function a node of the internal xml document is added. This object converts all leaf information to a xml structure. More...

#include <ParserXpressiveXml.h>

Inheritance diagram for Nice::XmlSquirrel:
Inheritance graph
Collaboration diagram for Nice::XmlSquirrel:
Collaboration graph

Public Member Functions

 XmlSquirrel (std::ostream &_s)
 Constructor. More...
 
virtual ~XmlSquirrel ()
 Destructor. More...
 
virtual void operator() (const Nice::JointPtr &joint)
 Function is called each time a leaf is visited. More...
 
- Public Member Functions inherited from Nice::Squirrel
 Squirrel ()
 
virtual ~Squirrel ()
 
void run (Nice::JointPtr _joint, bool _withNodes=false)
 
 Squirrel ()
 
virtual ~Squirrel ()
 
void run (Nice::JointPtr _joint, bool _withNodes=false)
 

Private Attributes

std::ostream & m_s
 
Nice::JointPtr m_last
 
int m_depth
 

Detailed Description

The XmlSquirrel class is derived from the TreeVisitor class. An object of this class is used to perform some kind of action while iterating a joint tree. The function visit is called whenever a joint/leaf is reached. In this visit function a node of the internal xml document is added. This object converts all leaf information to a xml structure.

Author
Juergen Berwein, Florian Briegel
Version
Date
2010-10-26 01:01:09 PM

Constructor & Destructor Documentation

◆ XmlSquirrel()

Nice::XmlSquirrel::XmlSquirrel ( std::ostream &  _s)

Constructor.

◆ ~XmlSquirrel()

Nice::XmlSquirrel::~XmlSquirrel ( )
virtual

Destructor.

Member Function Documentation

◆ operator()()

void Nice::XmlSquirrel::operator() ( const Nice::JointPtr joint)
virtual

Function is called each time a leaf is visited.

The XML string document m_data is created from each leaf joint.

Returns
True, if the walkTree/walkLeaf has to be visited multiple times (see documentation of Nice::Joint).

Implements Nice::Squirrel.

Member Data Documentation

◆ m_depth

int Nice::XmlSquirrel::m_depth
private

◆ m_last

Nice::JointPtr Nice::XmlSquirrel::m_last
private

◆ m_s

std::ostream& Nice::XmlSquirrel::m_s
private

The documentation for this class was generated from the following files: