|
TrioCFD 1.9.9_beta
TrioCFD documentation
|
Base class for output streams. More...
#include <Sortie.h>
Public Member Functions | |
| Sortie () | |
| Sortie (ostream &os) | |
| Sortie (const Sortie &os) | |
| virtual | ~Sortie () |
| Sortie & | operator= (ostream &os) |
| Sortie & | operator= (Sortie &os) |
| void | set_bin (bool bin) override |
| Changes the write mode of the file. | |
| ostream & | get_ostream () |
| const ostream & | get_ostream () const |
| void | set_col_width (int w) |
| Sortie & | operator<< (ostream &(*f)(ostream &)) |
| Sortie & | operator<< (Sortie &(*f)(Sortie &)) |
| Sortie & | operator<< (ios &(*f)(ios &)) |
| virtual Sortie & | flush () |
| virtual Sortie & | lockfile () |
| virtual Sortie & | unlockfile () |
| virtual Sortie & | syncfile () |
| virtual void | setf (IOS_FORMAT) |
| virtual void | precision (int) |
| template<typename T> | |
| Sortie & | operator<< (const TRUST_Ref< T > &) |
| Sortie & | operator<< (const TRUST_Ref_Objet_U &) |
| virtual Sortie & | operator<< (const Separateur &) |
| virtual Sortie & | operator<< (const Objet_U &ob) |
| Writes an object or variable. | |
| virtual Sortie & | operator<< (const int ob) |
| virtual Sortie & | operator<< (const unsigned ob) |
| virtual Sortie & | operator<< (const long ob) |
| virtual Sortie & | operator<< (const long long ob) |
| virtual Sortie & | operator<< (const unsigned long ob) |
| virtual Sortie & | operator<< (const float ob) |
| virtual Sortie & | operator<< (const double ob) |
| virtual Sortie & | operator<< (const char *ob) |
| Writes a character string. | |
| virtual Sortie & | operator<< (const std::string &str) |
| virtual int | add_col (const double ob) |
| virtual int | add_col (const char *ob) |
| virtual int | put (const unsigned *ob, std::streamsize n, std::streamsize nb_colonnes=1) |
| virtual int | put (const int *ob, std::streamsize n, std::streamsize nb_colonnes=1) |
| virtual int | put (const float *ob, std::streamsize n, std::streamsize nb_colonnes=1) |
| virtual int | put (const double *ob, std::streamsize n, std::streamsize nb_colonnes=1) |
| virtual int | put (const long *ob, std::streamsize n, std::streamsize nb_colonnes=1) |
| virtual int | put (const long long *ob, std::streamsize n, std::streamsize nb_colonnes=1) |
| bool | has_ostream () const |
| Public Member Functions inherited from AbstractIO | |
| bool | is_64b () const |
| virtual void | set_64b (bool is_64b) |
| bool | is_bin () |
| void | set_avoid_conversion (bool avoid) |
| bool | avoid_conversion () |
Protected Attributes | |
| int | col_width_ |
| std::unique_ptr< ostream > | ostream_ |
| Protected Attributes inherited from AbstractIO | |
| bool | bin_ = false |
| Is this a binary flux? | |
| bool | is_64b_ |
| Will we be reading/writing in 64b? (Init in ctor to avoid including arch.h probably). | |
| bool | avoid_conversion_ = false |
Additional Inherited Members | |
| Protected Member Functions inherited from AbstractIO | |
| AbstractIO () | |
| virtual | ~AbstractIO () |
| template<typename _TYPE_> | |
| bool | must_convert () const |
| Whether to convert an int into a long when reading/writing out data. | |
Base class for output streams.
Knows how to write simple types (integers, floats) and Objet_U objects (via printOn of the Objet_U). Note: some derived classes are parallel; in that case, syncfile() must be called periodically on all processors. See class EcrFicPartage. Note: to write correctly to a stream in both ASCII and BINARY mode, a Separateur (finl or space) must be used to separate written objects.
| Sortie::Sortie | ( | ) |
Definition at line 26 of file Sortie.cpp.
| Sortie::Sortie | ( | ostream & | os | ) |
Definition at line 46 of file Sortie.cpp.
| Sortie::Sortie | ( | const Sortie & | os | ) |
Definition at line 54 of file Sortie.cpp.
|
virtual |
Definition at line 92 of file Sortie.cpp.
|
virtual |
Definition at line 83 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage, OBuffer, Sortie_Fichier_base, and Sortie_Nulle.
Definition at line 138 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage.
Definition at line 173 of file Sortie.cpp.
|
virtual |
Writes a character string.
Note: to correctly re-read the string in ASCII mode, it must not contain any separator (neither space nor newline, ...).
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 213 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 111 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 110 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 109 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 113 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 112 of file Sortie.cpp.
Writes an object or variable.
In this implementation (and in most derived classes), ob.printOn is simply called (except in Sortie_Nulle). Note: if the stream must be usable in either ASCII or BINARY mode, "<< space <<" or "<< finl <<" must be inserted between objects.
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 201 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 144 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 241 of file Sortie.cpp.
|
inline |
|
virtual |
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 114 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 108 of file Sortie.cpp.
| Sortie & Sortie::operator<< | ( | ios &(* | f )(ios &) | ) |
Definition at line 131 of file Sortie.cpp.
| Sortie & Sortie::operator<< | ( | ostream &(* | f )(ostream &) | ) |
Definition at line 116 of file Sortie.cpp.
Definition at line 125 of file Sortie.cpp.
| Sortie & Sortie::operator= | ( | ostream & | os | ) |
Definition at line 64 of file Sortie.cpp.
Definition at line 71 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage, OBuffer, Sortie_Fichier_base, and Sortie_Nulle.
Definition at line 40 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 106 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 105 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 102 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 103 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 104 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage, and Sortie_Nulle.
Definition at line 101 of file Sortie.cpp.
|
overridevirtual |
Changes the write mode of the file.
This method can be called at any time. However, for Ecrire_Fichier_Partage files, the change must be made only at the beginning of a block write, immediately after syncfile() (otherwise, newlines are incorrectly translated during the next syncfile() call).
Reimplemented from AbstractIO.
Reimplemented in Sortie_Brute.
Definition at line 252 of file Sortie.cpp.
|
virtual |
Reimplemented in SChaine, Sortie_Fichier_base, and Sortie_Nulle.
Definition at line 34 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage.
Definition at line 187 of file Sortie.cpp.
|
virtual |
Reimplemented in EcrFicPartage.
Definition at line 180 of file Sortie.cpp.
|
protected |