#include <nodevisitor.h>
Inheritance diagram for OutputVisitor:
Public Types | |
typedef OutputVisitor< _TContent, _TIter > | _Self |
typedef NodeVisitor< typename _TIter::const_iterator, const Node< _TContent >, const NormalNode< _TContent >, const RootNode< _TContent > > | _Base |
typedef OutputStrategy< _TContent > | strategy_type |
Public Methods | |
OutputVisitor (strategy_type *os=0) | |
Constructor If no outputstrategy is given the visitor uses NullOutputStrategy that writes to stdout. | |
virtual | ~OutputVisitor () |
virtual _Self * | construct () const |
virtual _Self * | clone () const |
virtual void | operator() (const Node< _TContent > *node) |
virtual void | operator() (_TIter &iter) |
Start the output process. | |
virtual void | visitNormalNode (const NormalNode< _TContent > *node) |
Take a NormalNode and output its content. | |
virtual void | visitRootNode (const RootNode< _TContent > *node) |
Take a RootNode and output its content. | |
void | setOutputStrategy (strategy_type *os) |
Set the OutputStrategy for the node content output. | |
void | setNullOutputStrategy () |
Reset the OutputStrategy to a NullOutputStrategy. | |
virtual strategy_type * | outputStrategy () |
Protected Methods | |
OutputVisitor (const OutputVisitor &ov) | |
Protected Attributes | |
strategy_type * | m_outputStrategy |
NullOutputStrategy< _TContent > | m_nulloutputstrategy |
Definition at line 158 of file nodevisitor.h.
|
Reimplemented from NodeVisitor< _TIter::const_iterator, const Node< _TContent >, const NormalNode< _TContent >, const RootNode< _TContent > >. Definition at line 166 of file nodevisitor.h. Referenced by OutputVisitor::OutputVisitor(). |
|
Reimplemented from NodeVisitor< _TIter::const_iterator, const Node< _TContent >, const NormalNode< _TContent >, const RootNode< _TContent > >. Definition at line 163 of file nodevisitor.h. Referenced by OutputVisitor::clone(). |
|
Definition at line 167 of file nodevisitor.h. |
|
Constructor If no outputstrategy is given the visitor uses NullOutputStrategy that writes to stdout.
Definition at line 366 of file nodevisitor.h. References OutputVisitor::m_nulloutputstrategy, and OutputVisitor::m_outputStrategy. |
|
Definition at line 172 of file nodevisitor.h. |
|
Definition at line 188 of file nodevisitor.h. References OutputVisitor::_Base, and OutputVisitor::m_outputStrategy. |
|
Definition at line 175 of file nodevisitor.h. References OutputVisitor::_Self. |
|
Definition at line 174 of file nodevisitor.h. |
|
Start the output process.
Definition at line 383 of file nodevisitor.h. References NodeVisitor< _TIter::const_iterator, const Node< _TContent >, const NormalNode< _TContent >, const RootNode< _TContent > >::init(), NodeVisitor< _TIter::const_iterator, const Node< _TContent >, const NormalNode< _TContent >, const RootNode< _TContent > >::iterate(), and OutputVisitor::m_outputStrategy. |
|
Reimplemented from NodeVisitor< _TIter::const_iterator, const Node< _TContent >, const NormalNode< _TContent >, const RootNode< _TContent > >. Definition at line 177 of file nodevisitor.h. |
|
Definition at line 185 of file nodevisitor.h. References OutputVisitor::m_outputStrategy. |
|
Reset the OutputStrategy to a NullOutputStrategy.
Definition at line 433 of file nodevisitor.h. References OutputVisitor::m_outputStrategy, and OutputVisitor::setOutputStrategy(). |
|
Set the OutputStrategy for the node content output.
Definition at line 420 of file nodevisitor.h. References OutputVisitor::m_nulloutputstrategy, and OutputVisitor::m_outputStrategy. Referenced by OutputVisitor::setNullOutputStrategy(). |
|
Take a NormalNode and output its content.
Definition at line 398 of file nodevisitor.h. References OutputVisitor::m_outputStrategy. |
|
Take a RootNode and output its content.
Definition at line 409 of file nodevisitor.h. References OutputVisitor::m_outputStrategy. |
|
Definition at line 192 of file nodevisitor.h. Referenced by OutputVisitor::OutputVisitor(), and OutputVisitor::setOutputStrategy(). |
|
Definition at line 191 of file nodevisitor.h. Referenced by OutputVisitor::operator()(), OutputVisitor::outputStrategy(), OutputVisitor::OutputVisitor(), OutputVisitor::setNullOutputStrategy(), OutputVisitor::setOutputStrategy(), OutputVisitor::visitNormalNode(), and OutputVisitor::visitRootNode(). |