16#include <EcrFicCollecte.h>
17#include <communications.h>
30EcrFicCollecte::~EcrFicCollecte()
60#ifdef FILESYSTEM_NON_GLOBAL
64 envoyer_broadcast(localisation, 0);
65 nom_fic = localisation +
"/" + nom_fic;
69 Cerr <<
"Opening the files of type EcrFicColl : " << name <<finl;
Writing to a file. This class implements the operators and virtual methods of the SFichier class as f...
int ouvrir(const char *name, IOS_OPEN_MODE mode=ios::out) override
Opens the file with the given mode and prot parameters. These parameters are the parameters of the st...
Class defining operators and methods for all reading operation in an input flow (file,...
class Nom: a character string for naming TRUST objects.
Nom nom_me(int, const char *prefix=0, int without_padding=0) const
Inserts _prefix000n (n=me() or nproc()) into a file name (e.g. toto.titi) to produce toto_prefix000n....
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 bool is_parallel()
static int me()
Returns the rank of the local processor in the current communication group. See Comm_Group::rank() an...
static int je_suis_maitre()
Returns 1 if on the master processor of the current group (i.e. me() == 0), 0 otherwise.
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)
Base class for output streams.