#include <SimpleDataWriter.hpp>
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) |
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.
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().