#include <SimpleDataWriter.hpp>
Public Member Functions | |
SimpleDataWriter (const std::string &rDirectory, const std::string &rFileName, const std::vector< std::vector< double > > &rData, bool cleanDirectory=true) | |
SimpleDataWriter (const std::string &rDirectory, const std::string &rFileName, const std::vector< double > &rT, const std::vector< double > &rX, bool cleanDirectory=true) | |
SimpleDataWriter (const std::string &rDirectory, const std::string &rFileName, const std::vector< double > &rData, bool cleanDirectory=true) |
This class does not writer header lines so is ideal for immediately reading with MATLAB or Gnuplot.
Definition at line 42 of file SimpleDataWriter.hpp.
SimpleDataWriter::SimpleDataWriter | ( | const std::string & | rDirectory, | |
const std::string & | rFileName, | |||
const std::vector< std::vector< double > > & | rData, | |||
bool | cleanDirectory = true | |||
) |
Write the provided data out to the given file in columns
rDirectory | The directory, relative to TEST_OUTPUT | |
rFileName | The full file name (no format will be apended) | |
rData | 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 | |
cleanDirectory | Whether to clean the directory (defaults to true) |
Definition at line 34 of file SimpleDataWriter.cpp.
References OutputFileHandler::OpenOutputFile().
Referenced by SimpleDataWriter().
SimpleDataWriter::SimpleDataWriter | ( | const std::string & | rDirectory, | |
const std::string & | rFileName, | |||
const std::vector< double > & | rT, | |||
const std::vector< double > & | rX, | |||
bool | cleanDirectory = true | |||
) |
Write the provided data out to the given file in 2 columns
rDirectory | The directory, relative to TEST_OUTPUT | |
rFileName | The full file name (no format will be apended) | |
rT | The first column of data | |
rX | The second column of data. An exception is thrown if the size of x is not the same as the size of t. | |
cleanDirectory | Whether to clean the directory (defaults to true) |
Definition at line 66 of file SimpleDataWriter.cpp.
References SimpleDataWriter().
SimpleDataWriter::SimpleDataWriter | ( | const std::string & | rDirectory, | |
const std::string & | rFileName, | |||
const std::vector< double > & | rData, | |||
bool | cleanDirectory = true | |||
) |
Write the provided data out to the given file in one column
rDirectory | The directory, relative to TEST_OUTPUT | |
rFileName | The full file name (no format will be apended) | |
rData | A std::vec of data | |
cleanDirectory | Whether to clean the directory (defaults to true) |
Definition at line 78 of file SimpleDataWriter.cpp.
References SimpleDataWriter().