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

StreamOutputStrategy Class Template Reference
[OutputStrategy]

This OutputStrategy is used as base-class for all OutputStrategies which write to a stream. More...

#include <nodeoutputstrategy.h>

Inheritance diagram for StreamOutputStrategy:

Inheritance graph
[legend]
Collaboration diagram for StreamOutputStrategy:

Collaboration graph
[legend]
List of all members.

Public Methods

 StreamOutputStrategy (std::ostream *out=&cout)
virtual StreamOutputStrategy<
_TContent > * 
clone () const
virtual ~StreamOutputStrategy ()
virtual void writeHeader ()=0
virtual void writeFooter ()=0
virtual void writeString (std::string &str)
virtual void writeNormalNode (const NormalNode< _TContent > *node)=0
virtual void writeRootNode (const RootNode< _TContent > *node)=0

Detailed Description

template<class _TContent>
class treecomp::StreamOutputStrategy< _TContent >

This OutputStrategy is used as base-class for all OutputStrategies which write to a stream.

Definition at line 77 of file nodeoutputstrategy.h.


Constructor & Destructor Documentation

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

Definition at line 81 of file nodeoutputstrategy.h.

virtual ~StreamOutputStrategy   [inline, virtual]
 

Definition at line 83 of file nodeoutputstrategy.h.


Member Function Documentation

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

Reimplemented from OutputStrategy.

Reimplemented in NullOutputStrategy, DefaultOutputStrategy, and TEXGraphOutputStrategy.

Definition at line 82 of file nodeoutputstrategy.h.

virtual void writeFooter   [pure virtual]
 

Implements OutputStrategy.

Implemented in NullOutputStrategy, DefaultOutputStrategy, and TEXGraphOutputStrategy.

virtual void writeHeader   [pure virtual]
 

Implements OutputStrategy.

Implemented in NullOutputStrategy, DefaultOutputStrategy, and TEXGraphOutputStrategy.

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

Implements OutputStrategy.

Implemented in NullOutputStrategy, DefaultOutputStrategy, and TEXGraphOutputStrategy.

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

Implements OutputStrategy.

Implemented in NullOutputStrategy, DefaultOutputStrategy, and TEXGraphOutputStrategy.

virtual void writeString std::string &    str [inline, virtual]
 

Implements OutputStrategy.

Reimplemented in NullOutputStrategy.

Definition at line 87 of file nodeoutputstrategy.h.

References StreamOut::m_out.


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