sofa::simulation::XMLPrintVisitor Class Reference

#include <XMLPrintVisitor.h>

Inheritance diagram for sofa::simulation::XMLPrintVisitor:

Inheritance graph
[legend]
Collaboration diagram for sofa::simulation::XMLPrintVisitor:

Collaboration graph
[legend]

Public Member Functions

 XMLPrintVisitor (std::ostream &out)
template<class T >
void processObject (T obj)
template<class Seq >
void processObjects (Seq &list)
virtual Result processNodeTopDown (simulation::Node *node)
 Callback method called when decending to a new node. Recursion will stop if this method returns RESULT_PRUNE.
virtual void processNodeBottomUp (simulation::Node *node)
 Callback method called after child node have been processed and before going back to the parent node.

Protected Attributes

std::ostream & m_out
int level

Detailed Description

Definition at line 43 of file XMLPrintVisitor.h.


Constructor & Destructor Documentation

sofa::simulation::XMLPrintVisitor::XMLPrintVisitor ( std::ostream &  out  )  [inline]

Definition at line 49 of file XMLPrintVisitor.h.


Member Function Documentation

void sofa::simulation::XMLPrintVisitor::processNodeBottomUp ( simulation::Node *   )  [virtual]

Callback method called after child node have been processed and before going back to the parent node.

Reimplemented from sofa::simulation::Visitor.

Definition at line 121 of file XMLPrintVisitor.cpp.

References level, m_out, sofa::simulation::Node::object, and processObject().

Visitor::Result sofa::simulation::XMLPrintVisitor::processNodeTopDown ( simulation::Node *   )  [virtual]

Callback method called when decending to a new node. Recursion will stop if this method returns RESULT_PRUNE.

Reimplemented from sofa::simulation::Visitor.

Definition at line 92 of file XMLPrintVisitor.cpp.

References level, m_out, sofa::simulation::Node::mechanicalMapping, sofa::simulation::Node::object, processObject(), sofa::simulation::Visitor::RESULT_CONTINUE, and sofa::core::objectmodel::Base::xmlWriteNodeDatas().

template<class T >
void sofa::simulation::XMLPrintVisitor::processObject ( T  obj  )  [inline]

Definition at line 57 of file XMLPrintVisitor.cpp.

References level, m_out, and sofa::simulation::xmlencode().

Referenced by processNodeBottomUp(), and processNodeTopDown().

template<class Seq >
void sofa::simulation::XMLPrintVisitor::processObjects ( Seq &  list  )  [inline]

Definition at line 80 of file XMLPrintVisitor.cpp.


Field Documentation

Definition at line 47 of file XMLPrintVisitor.h.

Referenced by processNodeBottomUp(), processNodeTopDown(), and processObject().

std::ostream& sofa::simulation::XMLPrintVisitor::m_out [protected]

Definition at line 46 of file XMLPrintVisitor.h.

Referenced by processNodeBottomUp(), processNodeTopDown(), and processObject().


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

Generated on Sun Nov 23 04:24:37 2008 for Sofa by  doxygen 1.5.7.1