16#ifndef Sortie_Fichier_base_included
17#define Sortie_Fichier_base_included
39 void setf(IOS_FORMAT code)
override;
41 virtual int ouvrir(
const char* name,IOS_OPEN_MODE mode=ios::out);
44 static void set_root(
const std::string dirname);
55 if (&f !=
this)
Process::exit(
"Assignement operator not allowed in Sortie_Fichier_base !");
60 char* internalBuff_ =
nullptr;
64 int toFlush() {
return toFlush_; }
Objet_U()
Default constructor: assigns a unique identifier to the object (object_id_) and registers the object ...
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
virtual int get_precision()
ofstream * ofstream_
This pointer is just a (typed) view on the smart ptr hold by the base class (Sortie)....
virtual int ouvrir(const char *name, IOS_OPEN_MODE mode=ios::out)
Sortie & flush() override
Forces the data in the buffer to be written to disk. Uses the ofstream class implementation.
void precision(int pre) override
void setf(IOS_FORMAT code) override
Sortie_Fichier_base & operator=(const Sortie_Fichier_base &f)
static void set_root(const std::string dirname)
ofstream & get_ofstream()
Sortie_Fichier_base(const Sortie_Fichier_base &)=default