TextFileWriter Class Reference

Inheritance diagram for TextFileWriter:

Inheritance graph
[legend]

List of all members.


Detailed Description

Writer for white-space delimited text files.

Author:
Lawrence Murray <lawrence@indii.org>
Version:
Rev
Date:
Date

Definition at line 17 of file TextFileWriter.hpp.


Public Member Functions

 TextFileWriter (std::ostream *out)
 Construct from output stream.
 TextFileWriter (const std::string file)
 Construct from file.
virtual ~TextFileWriter ()
 Destructor.
virtual void write (const double value)
 Write single value.
virtual void write (const indii::ml::aux::vector &values)
 Write vector of values.
virtual void write (const indii::ml::aux::matrix &values)
 Write matrix of values.
virtual void write (const indii::ml::aux::symmetric_matrix &values)
 Write symmetric matrix of values.
virtual void writeLine ()
 Write the end of the current line and begin a new line.

Constructor & Destructor Documentation

TextFileWriter ( std::ostream *  out  ) 

Construct from output stream.

Parameters:
out Stream to which to write.

Definition at line 7 of file TextFileWriter.cpp.

TextFileWriter ( const std::string  file  ) 

Construct from file.

Parameters:
file Name of file to which to write.

Definition at line 11 of file TextFileWriter.cpp.

~TextFileWriter (  )  [virtual]

Destructor.

Definition at line 15 of file TextFileWriter.cpp.


Member Function Documentation

void write ( const double  value  )  [virtual]

Write single value.

Parameters:
value Value to write.

Implements Writer.

Definition at line 19 of file TextFileWriter.cpp.

void write ( const indii::ml::aux::vector values  )  [virtual]

Write vector of values.

All values are written to the current line.

Parameters:
values Vector of values to write.

Implements Writer.

Definition at line 23 of file TextFileWriter.cpp.

void write ( const indii::ml::aux::matrix values  )  [virtual]

Write matrix of values.

All values are written to the current line in column-wise fashion.

Parameters:
values Matrix of values to write.

Implements Writer.

Definition at line 32 of file TextFileWriter.cpp.

void write ( const indii::ml::aux::symmetric_matrix values  )  [virtual]

Write symmetric matrix of values.

All values from the lower triangle of the matrix are written to the current line in column-wise fashion.

Parameters:
values Matrix of values to write.

Implements Writer.

Definition at line 43 of file TextFileWriter.cpp.

void writeLine (  )  [virtual]

Write the end of the current line and begin a new line.

Implements Writer.

Definition at line 54 of file TextFileWriter.cpp.


Generated on Wed Dec 17 15:11:58 2008 for dysii Dynamical Systems Library by  doxygen 1.5.3