preCICE
v3.2.0
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
h
i
m
n
p
r
s
t
Typedefs
b
d
e
g
l
m
p
r
s
t
u
v
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
i
k
m
n
o
p
r
s
t
v
w
Enumerations
Enumerator
c
d
e
i
l
m
n
o
r
s
u
v
w
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
g
i
j
m
n
o
p
r
s
t
v
Functions
a
b
c
g
m
p
r
s
t
v
Variables
Typedefs
Macros
b
d
m
n
p
t
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
}
6
TXTReader::TXTReader
( {
…
}
16
17
}
// namespace precice::io
LogMacros.hpp
PRECICE_CHECK
#define PRECICE_CHECK(check,...)
Definition
LogMacros.hpp:32
TXTReader.hpp
std::string
precice::io::TXTReader::_file
std::ifstream _file
Filestream.
Definition
TXTReader.hpp:37
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:10
std::ifstream::open
T open(T... args)
std::ifstream::setf
T setf(T... args)