|
TrioCFD 1.9.9_beta
TrioCFD documentation
|
Same as EChaine except here the input string comes from a datafile. Keeps a track of the lines that have been read in the datafile so far, so in case of a TRUST crash, we can get the line in the datafile where the error occured. More...
#include <EChaineJDD.h>
Public Member Functions | |
| EChaineJDD () | |
| EChaineJDD (const char *str) | |
| ~EChaineJDD () override | |
| void | init (const char *str) |
| Entree & | operator>> (int &ob) override |
| Entree & | operator>> (double &ob) override |
| int | get (char *ob, std::streamsize bufsize) override |
| Reads a string from ostream_. bufsize is the size of the buffer allocated for ob (including. | |
| void | set_track_lines (bool b) |
| Entree & | operator>> (Entree &(*f)(Entree &)) |
| Entree & | operator>> (istream &(*f)(istream &)) |
| Entree & | operator>> (ios &(*f)(ios &)) |
| template<typename T> | |
| Entree & | operator>> (const TRUST_Ref< T > &) |
| Entree & | operator>> (const TRUST_Ref_Objet_U &) |
| virtual Entree & | operator>> (long &ob) |
| virtual Entree & | operator>> (long long &ob) |
| virtual Entree & | operator>> (float &ob) |
| virtual Entree & | operator>> (std::string &ob) |
| virtual Entree & | operator>> (Objet_U &ob) final |
| virtual int | get (int *ob, std::streamsize n) |
| virtual int | get (long *ob, std::streamsize n) |
| virtual int | get (long long *ob, std::streamsize n) |
| virtual int | get (float *ob, std::streamsize n) |
| virtual int | get (double *ob, std::streamsize n) |
| Public Member Functions inherited from Entree | |
| Entree () | |
| Entree (istream &is) | |
| Entree (const Entree &is) | |
| virtual | ~Entree () |
| void | set_bin (bool bin) override |
| Changes the file write mode. | |
| Entree & | operator= (istream &is) |
| Entree & | operator= (Entree &is) |
| virtual istream & | get_istream () |
| virtual const istream & | get_istream () const |
| void | set_istream (istream *is) |
| Entree & | operator>> (Entree &(*f)(Entree &)) |
| Entree & | operator>> (istream &(*f)(istream &)) |
| Entree & | operator>> (ios &(*f)(ios &)) |
| template<typename T> | |
| Entree & | operator>> (const TRUST_Ref< T > &) |
| Entree & | operator>> (const TRUST_Ref_Objet_U &) |
| virtual int | eof () |
| virtual int | jumpOfLines () |
| virtual int | fail () |
| virtual int | good () |
| virtual void | set_check_types (bool flag) |
| Indicates whether the stream should verify the types of read objects (ints and floating-point numbers). | |
| bool | check_types () const |
| virtual void | set_error_action (Error_Action) |
| Changes the error behaviour of the input; see error_handle_() and get_error_action(). | |
| Error_Action | get_error_action () |
| Returns error_action_ for this input (allows modifying it and restoring the previous value afterwards). | |
| operator istream & () | |
| istream & | putback (char ch) |
| bool | get_diffuse () |
| virtual void | set_diffuse (bool diffuse) |
| Sets the diffuse flag for this input stream. | |
| 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 () |
Static Public Attributes | |
| static int | file_cur_line_ = 1 |
Protected Member Functions | |
| template<typename _TYPE_> | |
| Entree & | operator_template (_TYPE_ &ob) |
| Protected Member Functions inherited from Entree | |
| int | error_handle (int fail_flag) |
| virtual int | error_handle_ (int fail_flag) |
| This function is called by operator>>, get, get_nom, ouvrir, fermer, lire, etc. | |
| 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 | |
| istringstream * | istrstream_ |
| bool | track_lines_ = true |
| Protected Attributes inherited from Entree | |
| bool | check_types_ = false |
| Error_Action | error_action_ |
| bool | diffuse_ |
| 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 | |
| Public Types inherited from Entree | |
| enum | Error_Action { ERROR_EXIT , ERROR_CONTINUE , ERROR_EXCEPTION } |
Same as EChaine except here the input string comes from a datafile. Keeps a track of the lines that have been read in the datafile so far, so in case of a TRUST crash, we can get the line in the datafile where the error occured.
Definition at line 28 of file EChaineJDD.h.
| EChaineJDD::EChaineJDD | ( | ) |
Definition at line 20 of file EChaineJDD.cpp.
| EChaineJDD::EChaineJDD | ( | const char * | str | ) |
Definition at line 26 of file EChaineJDD.cpp.
|
override |
Definition at line 33 of file EChaineJDD.cpp.
|
overridevirtual |
Reads a string from ostream_. bufsize is the size of the buffer allocated for ob (including.
the final null character). The string always contains a null character even on failure. The method returns 1 if reading is successful, 0 otherwise. If the buffer is too small, we currently call exit(), but in the future we could test: if strlen(ob)==bufsize-1, then call lire() again until the end is reached. If the next lire() returns a string of length zero, it means the string length was exactly bufsize-1. Warning: the behaviour differs between binary and ASCII mode. In binary mode, the string is read until the next '\0'. In ASCII mode, the string is read until the next separator (space, tab, newline).
Reimplemented from Entree.
Definition at line 46 of file EChaineJDD.cpp.
|
virtual |
Reimplemented from Entree.
Definition at line 83 of file Entree.cpp.
|
virtual |
Reimplemented from Entree.
Definition at line 82 of file Entree.cpp.
|
virtual |
Reimplemented from Entree.
Definition at line 79 of file Entree.cpp.
|
virtual |
Reimplemented from Entree.
Definition at line 80 of file Entree.cpp.
|
virtual |
Reimplemented from Entree.
Definition at line 81 of file Entree.cpp.
| void EChaineJDD::init | ( | const char * | str | ) |
Definition at line 35 of file EChaineJDD.cpp.
|
inline |
|
overridevirtual |
Reimplemented from Entree.
Definition at line 44 of file EChaineJDD.cpp.
Definition at line 60 of file Entree.cpp.
|
virtual |
Reimplemented from Entree.
Definition at line 72 of file Entree.cpp.
|
overridevirtual |
Reimplemented from Entree.
Definition at line 43 of file EChaineJDD.cpp.
| Entree & Entree::operator>> | ( | ios &(* | f )(ios &) | ) |
Definition at line 62 of file Entree.cpp.
| Entree & Entree::operator>> | ( | istream &(* | f )(istream &) | ) |
Definition at line 61 of file Entree.cpp.
|
virtual |
Reimplemented from Entree.
Definition at line 70 of file Entree.cpp.
|
virtual |
Reimplemented from Entree.
Definition at line 71 of file Entree.cpp.
Reimplemented from Entree.
Definition at line 77 of file Entree.cpp.
|
virtual |
Reimplemented from Entree.
Definition at line 74 of file Entree.cpp.
|
protected |
Definition at line 57 of file EChaineJDD.h.
|
inline |
Definition at line 43 of file EChaineJDD.h.
|
static |
Definition at line 45 of file EChaineJDD.h.
|
protected |
Definition at line 48 of file EChaineJDD.h.
|
protected |
Definition at line 49 of file EChaineJDD.h.