DGtal  0.9.3beta
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DGtal::TraceWriter Class Referenceabstract

#include <DGtal/base/TraceWriter.h>

Inheritance diagram for DGtal::TraceWriter:
[legend]
Collaboration diagram for DGtal::TraceWriter:
[legend]

Public Member Functions

void selfDisplay (std::ostream &out) const
 
bool isValid () const
 
virtual std::string prefixWarning ()=0
 
virtual std::string prefixInfo ()=0
 
virtual std::string prefixError ()=0
 
virtual std::string prefixEmphase ()=0
 
virtual std::string postfixReset ()=0
 
std::ostream & outputStream ()
 

Protected Member Functions

 TraceWriter (std::ostream &aoutputStream)
 

Protected Attributes

std::ostream & myOutputStream
 

Private Member Functions

 TraceWriter (const TraceWriter &other)
 
TraceWriteroperator= (const TraceWriter &other)
 

Detailed Description

Virtual Class to implement trace writers.

Description of class 'TraceWriter'

Aim:

See also
testTrace.cpp

Definition at line 57 of file TraceWriter.h.

Constructor & Destructor Documentation

DGtal::TraceWriter::TraceWriter ( std::ostream &  aoutputStream)
inlineprotected

Constructor. Forbidden by default (protected to avoid g++ warnings).

Definition at line 103 of file TraceWriter.h.

103 : myOutputStream(aoutputStream) {};
std::ostream & myOutputStream
Reference to the output stream.
Definition: TraceWriter.h:84
DGtal::TraceWriter::TraceWriter ( const TraceWriter other)
private

Copy constructor.

Parameters
otherthe object to clone. Forbidden by default.

Member Function Documentation

bool DGtal::TraceWriter::isValid ( ) const

Checks the validity/consistency of the object.

Returns
'true' if the object is valid, 'false' otherwise.
TraceWriter& DGtal::TraceWriter::operator= ( const TraceWriter other)
private

Assignment.

Parameters
otherthe object to copy.
Returns
a reference on 'this'. Forbidden by default.
std::ostream& DGtal::TraceWriter::outputStream ( )
inline

Definition at line 84 of file TraceWriter.h.

References myOutputStream.

84 {return myOutputStream;};
std::ostream & myOutputStream
Reference to the output stream.
Definition: TraceWriter.h:84
virtual std::string DGtal::TraceWriter::postfixReset ( )
pure virtual
virtual std::string DGtal::TraceWriter::prefixEmphase ( )
pure virtual
virtual std::string DGtal::TraceWriter::prefixError ( )
pure virtual
virtual std::string DGtal::TraceWriter::prefixInfo ( )
pure virtual
virtual std::string DGtal::TraceWriter::prefixWarning ( )
pure virtual
void DGtal::TraceWriter::selfDisplay ( std::ostream &  out) const

Writes/Displays the object on an output stream.

Parameters
outthe output stream where the object is written.

Field Documentation

std::ostream& DGtal::TraceWriter::myOutputStream
protected

Reference to the output stream.

Definition at line 84 of file TraceWriter.h.

Referenced by outputStream().


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