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

File reader for matrix/vector in Matlab V7 ASCII format. More...

#include <TXTReader.hpp>

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

Public Member Functions

 TXTReader (const std::string &filename)
 Constructor, opens file and sets format.
 
template<typename Scalar , int Rows, int Cols>
void read (Eigen::Matrix< Scalar, Rows, Cols > &matrix)
 Reads the Eigen::Matrix from the file.
 

Private Attributes

logging::Logger _log {"io::TXTReader"}
 
std::ifstream _file
 Filestream.
 

Detailed Description

File reader for matrix/vector in Matlab V7 ASCII format.

Definition at line 16 of file TXTReader.hpp.

Constructor & Destructor Documentation

◆ TXTReader()

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

Constructor, opens file and sets format.

Definition at line 6 of file TXTReader.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ read()

template<typename Scalar , int Rows, int Cols>
void precice::io::TXTReader::read ( Eigen::Matrix< Scalar, Rows, Cols > & matrix)
inline

Reads the Eigen::Matrix from the file.

Definition at line 23 of file TXTReader.hpp.

Member Data Documentation

◆ _file

std::ifstream precice::io::TXTReader::_file
private

Filestream.

Definition at line 38 of file TXTReader.hpp.

◆ _log

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

Definition at line 35 of file TXTReader.hpp.


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