SimpleDataWriter Class Reference

#include <SimpleDataWriter.hpp>

List of all members.

Public Member Functions

 SimpleDataWriter (std::string directory, std::string fileName, std::vector< std::vector< double > > data, bool cleanDirectory=true)
 SimpleDataWriter (std::string directory, std::string fileName, std::vector< double > t, std::vector< double > x, bool cleanDirectory=true)
 SimpleDataWriter (std::string directory, std::string fileName, std::vector< double > data, bool cleanDirectory=true)


Detailed Description

A basic data writer that is easier to use than ColumnDataWriter but has less functionality. NOTE: this is not an efficient writer.

This class does not writer header lines so is ideal for immediately reading with MATLAB or Gnuplot.

Definition at line 47 of file SimpleDataWriter.hpp.


Constructor & Destructor Documentation

SimpleDataWriter::SimpleDataWriter ( std::string  directory,
std::string  fileName,
std::vector< std::vector< double > >  data,
bool  cleanDirectory = true 
) [inline]

Write the provided data out to the given file in columns

The directory, relative to TEST_OUTPUT The full file name (no format will be apended) The data. data[0] will written as the first column, data[1] the second, and so on. An exception is thrown if they are not the same size Whether to clean the directory (defaults to true)

Definition at line 60 of file SimpleDataWriter.hpp.

References OutputFileHandler::OpenOutputFile().

Referenced by SimpleDataWriter().

SimpleDataWriter::SimpleDataWriter ( std::string  directory,
std::string  fileName,
std::vector< double >  t,
std::vector< double >  x,
bool  cleanDirectory = true 
) [inline]

Write the provided data out to the given file in 2 columns

The directory, relative to TEST_OUTPUT The full file name (no format will be apended) The first column of data The second column of data. An exception is thrown if the size of x is not the same as the size of t. Whether to clean the directory (defaults to true)

Definition at line 104 of file SimpleDataWriter.hpp.

References SimpleDataWriter().

SimpleDataWriter::SimpleDataWriter ( std::string  directory,
std::string  fileName,
std::vector< double >  data,
bool  cleanDirectory = true 
) [inline]

Write the provided data out to the given file in one column

The directory, relative to TEST_OUTPUT The full file name (no format will be apended) A std::vec of data Whether to clean the directory (defaults to true)

Definition at line 120 of file SimpleDataWriter.hpp.

References SimpleDataWriter().


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

Generated on Wed Mar 18 12:52:49 2009 for Chaste by  doxygen 1.5.5