|
preCICE v3.3.0
|
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 13 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 30 of file TXTWriter.hpp.
|
private |
Definition at line 27 of file TXTWriter.hpp.