preCICE v3.1.2
|
File writer for matrix in Matlab V7 ASCII format. More...
#include <TXTWriter.hpp>
Public Member Functions | |
TXTWriter (const std::string &filename) | |
Constructor, opens file and sets format. | |
void | write (const Eigen::MatrixXd &matrix) |
Writes (appends) the matrix to the file. | |
void | flush () |
Flush the buffer to file. | |
Private Attributes | |
logging::Logger | _log {"io::TXTWriter"} |
std::ofstream | _file |
File writer for matrix in Matlab V7 ASCII format.
Definition at line 14 of file TXTWriter.hpp.
|
explicit |
Constructor, opens file and sets format.
Definition at line 7 of file TXTWriter.cpp.
void precice::io::TXTWriter::flush | ( | ) |
Flush the buffer to file.
Definition at line 19 of file TXTWriter.cpp.
void precice::io::TXTWriter::write | ( | const Eigen::MatrixXd & | matrix | ) |
Writes (appends) the matrix to the file.
Definition at line 24 of file TXTWriter.cpp.
|
private |
Definition at line 31 of file TXTWriter.hpp.
|
private |
Definition at line 28 of file TXTWriter.hpp.