Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

DefaultOutputStrategy Class Template Reference
[OutputStrategy]

This OutputStrategy writes the node-type and name to 'cout.'. More...

#include <nodeoutputstrategy.h>

Inheritance diagram for DefaultOutputStrategy:

Inheritance graph
[legend]
Collaboration diagram for DefaultOutputStrategy:

Collaboration graph
[legend]
List of all members.

Public Methods

 DefaultOutputStrategy (std::ostream *out=&cout)
virtual DefaultOutputStrategy<
_TContent > * 
construct ()
virtual DefaultOutputStrategy<
_TContent > * 
clone () const
virtual ~DefaultOutputStrategy ()
virtual void writeHeader ()
virtual void writeFooter ()
virtual void writeNormalNode (const NormalNode< _TContent > *node)
 Write the normalNode content.

virtual void writeRootNode (const RootNode< _TContent > *node)
 Write the RootNode content.


Detailed Description

template<class _TContent>
class treecomp::DefaultOutputStrategy< _TContent >

This OutputStrategy writes the node-type and name to 'cout.'.

Definition at line 131 of file nodeoutputstrategy.h.


Constructor & Destructor Documentation

DefaultOutputStrategy std::ostream *    out = &cout [inline, explicit]
 

Definition at line 134 of file nodeoutputstrategy.h.

virtual ~DefaultOutputStrategy   [inline, virtual]
 

Definition at line 139 of file nodeoutputstrategy.h.


Member Function Documentation

virtual DefaultOutputStrategy<_TContent>* clone   const [inline, virtual]
 

Reimplemented from StreamOutputStrategy.

Definition at line 137 of file nodeoutputstrategy.h.

virtual DefaultOutputStrategy<_TContent>* construct   [inline, virtual]
 

Definition at line 135 of file nodeoutputstrategy.h.

virtual void writeFooter   [inline, virtual]
 

Implements StreamOutputStrategy.

Definition at line 142 of file nodeoutputstrategy.h.

virtual void writeHeader   [inline, virtual]
 

Implements StreamOutputStrategy.

Definition at line 141 of file nodeoutputstrategy.h.

void writeNormalNode const NormalNode< _TContent > *    node [virtual]
 

Write the normalNode content.

Implements StreamOutputStrategy.

Definition at line 157 of file nodeoutputstrategy.h.

References Node::getName(), and StreamOut::m_out.

void writeRootNode const RootNode< _TContent > *    node [virtual]
 

Write the RootNode content.

Implements StreamOutputStrategy.

Definition at line 166 of file nodeoutputstrategy.h.

References Node::getName(), and StreamOut::m_out.


The documentation for this class was generated from the following file:
Generated on Mon Jan 6 12:02:19 2003 for TreeComp by doxygen1.2.17