16#include <Ecrire_Fichier.h>
18#include <Synonyme_info.h>
43 Cerr <<
"Error: keyword Ecrire_Fichier_Bin cannot be used in parallel calculation. What do you mean ?" << finl;
50 Cerr <<
"Ecrire_Fichier_Bin: writing object " << nom1 <<
" in file " << nom2;
52 Cerr <<
" in binary format." << finl;
54 Cerr <<
" in ascii format." << finl;
59 Cerr <<
" Error opening file: " << nom2 << finl;
70 Cerr <<
" An error occured while writing the file." << finl;
Entree & interpreter(Entree &) override
void interpreter_(Entree &, int format_binaire)
Class defining operators and methods for all reading operation in an input flow (file,...
Base class for "interpreter" objects.
static Objet_U & objet(const Nom &)
See Interprete_bloc::objet_global(). BM: the Interprete class is not the best place for this.
class Nom: a character string for naming TRUST objects.
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
Objet_U()
Default constructor: assigns a unique identifier to the object (object_id_) and registers the object ...
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
static int nproc()
Returns the number of processors in the current group. See Comm_Group::nproc() and PE_Groups::current...
static void barrier()
Synchronizes all processors in the current group (waits until all processors have reached the barrier...
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
SFichier is to the C++ ofstream class what Sortie is to the C++ ostream class.
virtual int ouvrir(const char *name, IOS_OPEN_MODE mode=ios::out)
ofstream & get_ofstream()
Base class for output streams.
void set_bin(bool bin) override
Changes the write mode of the file.