TextFileWriter Class Reference

Inherits SeedWriter.

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
285
Date:
Date
2007-07-20 17:25:40 +0100 (Fri, 20 Jul 2007)

Definition at line 20 of file TextFileWriter.hpp.

Public Member Functions

 TextFileWriter (std::ostream *out)
 Construct new writer from output stream.
 TextFileWriter (const std::string file)
 Construct new writer 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 new writer from output stream.

Parameters:
out Stream to which to write.

Definition at line 7 of file TextFileWriter.cpp.

TextFileWriter ( const std::string  file  ) 

Construct new writer 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 16 of file TextFileWriter.cpp.


Member Function Documentation

void write ( const double  value  )  [virtual]

Write single value.

Parameters:
value Value to write.

Implements SeedWriter.

Definition at line 20 of file TextFileWriter.cpp.

virtual 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 SeedWriter.

virtual 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 SeedWriter.

virtual 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 SeedWriter.

void writeLine (  )  [virtual]

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

Implements SeedWriter.

Definition at line 55 of file TextFileWriter.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Oct 9 22:02:10 2007 for fmrii fMRI Modelling Library by  doxygen 1.5.2