16#include <Lire_Fichier.h>
17#include <Interprete_bloc.h>
18#include <EFichierBin.h>
19#include <LecFicDiffuse_JDD.h>
20#include <LecFicDiffuse.h>
21#include <Read_unsupported_ASCII_file_from_ICEM.h>
37 Cerr <<
"Error in Lire_Fichier::printOn()" << finl;
47 Cerr <<
"Error in Lire_Fichier::readOn()" << finl;
66 if (is_a_binary_file(nom2))
68 check_ICEM_binary_file(nom2,nom1);
69 Cerr <<
"Lire_Fichier: reading binary file " << nom2 <<
" to object " << nom1 << finl;
74 Cerr <<
"Unable to open the file " << nom2 << finl;
75 Cerr <<
"Enter a different file name please ... ";
82 check_ICEM_ascii_file(nom2,*
this);
83 Cerr <<
"Lire_Fichier: reading ASCII file " << nom2 <<
" to object " << nom1 << finl;
95 Cerr <<
"Lire_Fichier: interpreting file " << nom1 << finl;
106 Cerr <<
"Lire_Fichier: end of file " << nom1 << finl;
108 Cerr <<
"Lire_Fichier: end of file " << nom1 << finl;
Reading from a file of objects written in binary format.
ifstream & get_ifstream()
Class defining operators and methods for all reading operation in an input flow (file,...
Interprets a block of instructions in the data set.
Entree & interpreter_bloc(Entree &is, Bloc_Type bloc_type, int verifier_sans_interpreter)
Interprets a block of instructions read from input is.
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.
This class implements the operators and virtual methods of the EFichier class as follows: The file to...
This class implements the operators and virtual methods of the EFichier class as follows: The file to...
void set_check_types(bool flag) override
Calls get_entree_master().
class Lire_Fichier: reads a file.
Entree & interpreter(Entree &) override
Two possible syntaxes in the data file: Lire_fichier NOM_OBJET NOM_FICHIER.
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 void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.