16#include <LecFicDiffuse.h>
17#include <communications.h>
46 int ok =
ouvrir(name, mode);
49 Cerr <<
"File " << name <<
" does not exist (LecFicDiffuse)" << finl;
65 ok =
file_.ouvrir(name, mode);
66 envoyer_broadcast(ok, 0);
77 std::cerr <<
"Error get_istream (LecFicDiffuse)" << std::endl;
80 return file_.get_istream();
90 std::cerr <<
"Error get_istream (LecFicDiffuse)" << std::endl;
93 return file_.get_istream();
Class defining operators and methods for all reading operation in an input flow (file,...
This class implements the operators and virtual methods of the EFichier class as follows: The file to...
int ouvrir(const char *name, IOS_OPEN_MODE mode=ios::in) override
Opens the file.
istream & get_istream() override
Base class for diffused inputs: the master processor reads data from get_entree_master() and broadcas...
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
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.
static int je_suis_maitre()
Returns 1 if on the master processor of the current group (i.e. me() == 0), 0 otherwise.
Base class for output streams.