preCICE
v3.1.2
Loading...
Searching...
No Matches
src
io
TXTReader.cpp
Go to the documentation of this file.
1
#include "
TXTReader.hpp
"
2
#include "
logging/LogMacros.hpp
"
3
4
namespace
precice::io
{
5
6
TXTReader::TXTReader
(
7
const
std::string
&filename)
8
: _file()
9
{
10
_file
.
open
(filename);
11
PRECICE_CHECK
(
_file
,
"TXT reader failed to open file \"{}\""
, filename);
12
_file
.
setf
(std::ios::showpoint);
13
_file
.
setf
(std::ios::fixed);
14
//_file << std::setprecision(16);
15
}
16
17
}
// namespace precice::io
LogMacros.hpp
PRECICE_CHECK
#define PRECICE_CHECK(check,...)
Definition
LogMacros.hpp:35
TXTReader.hpp
std::string
precice::io::TXTReader::_file
std::ifstream _file
Filestream.
Definition
TXTReader.hpp:38
precice::io::TXTReader::TXTReader
TXTReader(const std::string &filename)
Constructor, opens file and sets format.
Definition
TXTReader.cpp:6
precice::io
provides Import and Export of the coupling mesh and data.
Definition
Acceleration.hpp:11
std::ifstream::open
T open(T... args)
std::ifstream::setf
T setf(T... args)