preCICE v3.1.2
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
precice::io::TXTWriter Class Reference

File writer for matrix in Matlab V7 ASCII format. More...

#include <TXTWriter.hpp>

Collaboration diagram for precice::io::TXTWriter:
[legend]

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
 

Detailed Description

File writer for matrix in Matlab V7 ASCII format.

Definition at line 14 of file TXTWriter.hpp.

Constructor & Destructor Documentation

◆ TXTWriter()

precice::io::TXTWriter::TXTWriter ( const std::string & filename)
explicit

Constructor, opens file and sets format.

Definition at line 7 of file TXTWriter.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ flush()

void precice::io::TXTWriter::flush ( )

Flush the buffer to file.

Definition at line 19 of file TXTWriter.cpp.

Here is the call graph for this function:

◆ write()

void precice::io::TXTWriter::write ( const Eigen::MatrixXd & matrix)

Writes (appends) the matrix to the file.

Definition at line 24 of file TXTWriter.cpp.

Member Data Documentation

◆ _file

std::ofstream precice::io::TXTWriter::_file
private

Definition at line 31 of file TXTWriter.hpp.

◆ _log

logging::Logger precice::io::TXTWriter::_log {"io::TXTWriter"}
private

Definition at line 28 of file TXTWriter.hpp.


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