AbstractIO#

#include <AbstractIO.h>

Base class for all input/output streams.

How to cite this class in this doc#

:ref:`AbstractIO <class-abstractio>`
[AbstractIO](#class-abstractio)

Detailed description#

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.

Inherited by#

List of Public Methods#

List of Protected Methods#

Complete Member Function Documentation#

avoid_conversion
bool AbstractIO::avoid_conversion()
References
How to cite in this doc:
:ref:`bool AbstractIO::avoid_conversion() <public-bool-abstractio-avoid-conversion>`
[bool AbstractIO::avoid_conversion()](#public-bool-abstractio-avoid-conversion)
is_64b
bool AbstractIO::is_64b() const
References
Referenced By
How to cite in this doc:
:ref:`bool AbstractIO::is_64b() const <public-bool-abstractio-is-64b-const>`
[bool AbstractIO::is_64b() const](#public-bool-abstractio-is-64b-const)
is_bin
bool AbstractIO::is_bin()
References
How to cite in this doc:
:ref:`bool AbstractIO::is_bin() <public-bool-abstractio-is-bin>`
[bool AbstractIO::is_bin()](#public-bool-abstractio-is-bin)
set_64b
virtual void AbstractIO::set_64b(bool is_64b)
References
Referenced By
How to cite in this doc:
:ref:`virtual void AbstractIO::set_64b(bool is_64b) <public-virtual-void-abstractio-set-64b-bool-is-64b>`
[virtual void AbstractIO::set_64b(bool is_64b)](#public-virtual-void-abstractio-set-64b-bool-is-64b)
set_avoid_conversion
void AbstractIO::set_avoid_conversion(bool avoid)
References
How to cite in this doc:
:ref:`void AbstractIO::set_avoid_conversion(bool avoid) <public-void-abstractio-set-avoid-conversion-bool-avoid>`
[void AbstractIO::set_avoid_conversion(bool avoid)](#public-void-abstractio-set-avoid-conversion-bool-avoid)
set_bin
virtual void AbstractIO::set_bin(bool bin)
References
How to cite in this doc:
:ref:`virtual void AbstractIO::set_bin(bool bin) <public-virtual-void-abstractio-set-bin-bool-bin>`
[virtual void AbstractIO::set_bin(bool bin)](#public-virtual-void-abstractio-set-bin-bool-bin)
AbstractIO
AbstractIO::AbstractIO()
How to cite in this doc:
:ref:`AbstractIO::AbstractIO() <protected-abstractio-abstractio>`
[AbstractIO::AbstractIO()](#protected-abstractio-abstractio)
must_convert
template bool AbstractIO::must_convert<double>() const

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.

References
How to cite in this doc:
:ref:`template bool AbstractIO::must_convert<double>() const <protected-template-bool-abstractio-must-convert-double-const>`
[template bool AbstractIO::must_convert<double>() const](#protected-template-bool-abstractio-must-convert-double-const)
~AbstractIO
virtual AbstractIO::~AbstractIO()
How to cite in this doc:
:ref:`virtual AbstractIO::~AbstractIO() <protected-virtual-abstractio-dtor-abstractio>`
[virtual AbstractIO::~AbstractIO()](#protected-virtual-abstractio-dtor-abstractio)

Attributes Documentation#

avoid_conversion_ (protected)
bool AbstractIO::avoid_conversion_

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.

bin_ (protected)
bool AbstractIO::bin_

Is this a binary flux?

is_64b_ (protected)
bool AbstractIO::is_64b_

Will we be reading/writing in 64b?