|
TRUST 1.9.8
HPC thermohydraulic platform
|
Base class for all input/output streams. More...
#include <AbstractIO.h>
Public Member Functions | |
| bool | is_64b () const |
| virtual void | set_64b (bool is_64b) |
| virtual void | set_bin (bool bin) |
| bool | is_bin () |
| void | set_avoid_conversion (bool avoid) |
| bool | avoid_conversion () |
Protected Member Functions | |
| AbstractIO () | |
| virtual | ~AbstractIO () |
| template<typename _TYPE_> | |
| bool | must_convert () const |
| Whether to convert an int into a long when reading/writing out data. | |
Protected Attributes | |
| bool | bin_ = false |
| Is this a binary flux? | |
| bool | is_64b_ |
| Will we be reading/writing in 64b? (Init in ctor to avoid including arch.h probably). | |
| bool | avoid_conversion_ = false |
Base class for all input/output streams.
Holds information about binary/ascii format, and 32b/64b information.
See method must_convert() and file arch.h.in for more explanations on 32/64b.
Note that the .sauv files for example are always written in 32b.
Definition at line 34 of file AbstractIO.h.
|
protected |
Definition at line 20 of file AbstractIO.cpp.
|
inlineprotectedvirtual |
Definition at line 46 of file AbstractIO.h.
|
inline |
Definition at line 42 of file AbstractIO.h.
|
inline |
Definition at line 37 of file AbstractIO.h.
|
inline |
Definition at line 40 of file AbstractIO.h.
|
protected |
Whether to convert an int into a long when reading/writing out data.
The rules are:
Note however that we can force the file to written in 32b even when running the 64b executable, thanks to the is_64b flag. This is what we do in Problem_base, save/restart logic.
Definition at line 44 of file AbstractIO.cpp.
|
inlinevirtual |
Reimplemented in EcrFicPartage.
Definition at line 38 of file AbstractIO.h.
|
inline |
Definition at line 41 of file AbstractIO.h.
|
inlinevirtual |
Reimplemented in EcrFicPartage, Entree, Entree_Brute, Entree_complete, Lec_Diffuse_base, OBuffer, SChaine, Sortie, and Sortie_Brute.
Definition at line 39 of file AbstractIO.h.
|
protected |
If true, no hacking on int/long is performed in operator_template() methods of Entree/Sortie This is useful for CommBuffer classes (=MPI exchanges) where we always want int to be sent as int, and long to be sent as long.
Definition at line 57 of file AbstractIO.h.
|
protected |
Is this a binary flux?
Definition at line 50 of file AbstractIO.h.
|
protected |
Will we be reading/writing in 64b? (Init in ctor to avoid including arch.h probably).
Definition at line 51 of file AbstractIO.h.