|
TrioCFD 1.9.8
TrioCFD documentation
|
#include <OBuffer.h>
Public Member Functions | |
| OBuffer () | |
| void | new_buffer () |
| void | precision (int) override |
| int | get_precision () |
| const char * | str () |
| Renvoie un pointeur sur le debut du buffer. | |
| int | len () |
| void | put_null_char () |
| ajoute le caractere nul a la fin du buffer pour en faire une chaine de caracteres valide. | |
| Sortie & | flush () override |
| Force l'ecriture sur disque des donnees dans le tampon Utilise l'implementation de la classe ofstream. | |
| void | set_bin (bool bin) override |
| Public Member Functions inherited from Sortie | |
| Sortie () | |
| Sortie (ostream &os) | |
| Sortie (const Sortie &os) | |
| virtual | ~Sortie () |
| Sortie & | operator= (ostream &os) |
| Sortie & | operator= (Sortie &os) |
| void | set_bin (bool bin) override |
| Change le mode d'ecriture du fichier. | |
| 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 & | lockfile () |
| virtual Sortie & | unlockfile () |
| virtual Sortie & | syncfile () |
| virtual void | setf (IOS_FORMAT) |
| 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) |
| Ecriture d'un objet ou d'une 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) |
| Ecriture d'une chaine de caracteres. | |
| 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 () |
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. | |
| Protected Attributes inherited from Sortie | |
| 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 |
| OBuffer::OBuffer | ( | ) |
Definition at line 18 of file OBuffer.cpp.
|
overridevirtual |
Force l'ecriture sur disque des donnees dans le tampon Utilise l'implementation de la classe ofstream.
Reimplemented from Sortie.
Definition at line 48 of file OBuffer.cpp.
| int OBuffer::get_precision | ( | ) |
Definition at line 40 of file OBuffer.cpp.
| int OBuffer::len | ( | ) |
Definition at line 76 of file OBuffer.cpp.
| void OBuffer::new_buffer | ( | ) |
Definition at line 24 of file OBuffer.cpp.
|
overridevirtual |
Reimplemented from Sortie.
Definition at line 34 of file OBuffer.cpp.
| void OBuffer::put_null_char | ( | ) |
ajoute le caractere nul a la fin du buffer pour en faire une chaine de caracteres valide.
len() renvoie la longueur du buffer, y compris le \0 Voir Ecr_Fic_Par::syncfile()
Definition at line 59 of file OBuffer.cpp.
|
inlineoverridevirtual |
Reimplemented from AbstractIO.
| const char * OBuffer::str | ( | ) |
Renvoie un pointeur sur le debut du buffer.
Definition at line 68 of file OBuffer.cpp.