|
TrioCFD 1.9.9_beta
TrioCFD documentation
|
This class behaves like EChaine until the end of the string is reached. More...
#include <Entree_complete.h>
Public Member Functions | |
| Entree_complete (const char *str, Entree &entree2) | |
| ~Entree_complete () override | |
| Entree & | operator>> (int &ob) override |
| Entree & | operator>> (long &ob) override |
| Entree & | operator>> (long long &ob) override |
| Entree & | operator>> (float &ob) override |
| Entree & | operator>> (double &ob) override |
| int | get (int *ob, std::streamsize n) override |
| int | get (long *ob, std::streamsize n) override |
| int | get (long long *ob, std::streamsize n) override |
| int | get (float *ob, std::streamsize n) override |
| int | get (double *ob, std::streamsize n) override |
| int | get (char *buf, std::streamsize bufsize) override |
| Reads a string from ostream_. bufsize is the size of the buffer allocated for ob (including. | |
| int | eof () override |
| int | fail () override |
| int | good () override |
| void | set_bin (bool bin) override |
| Changing the type of input is forbidden. | |
| void | set_error_action (Error_Action) override |
| Sets the value on both source inputs. Warning, the value of entree2 is modified! | |
| void | set_check_types (bool flag) override |
| Sets the flag on both source inputs. Warning, the flag of entree2 is modified! | |
| 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>> (std::string &ob) |
| virtual Entree & | operator>> (Objet_U &ob) final |
| Public Member Functions inherited from Entree | |
| Entree () | |
| Entree (istream &is) | |
| Entree (const Entree &is) | |
| virtual | ~Entree () |
| 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 | jumpOfLines () |
| bool | check_types () const |
| 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 () |
Protected Member Functions | |
| Entree & | get_input () |
| 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 | |
| int | num_entree_ |
| int | str_size_ |
| EChaine | chaine_str_ |
| Entree * | entree2_ |
| 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 } |
This class behaves like EChaine until the end of the string is reached.
The remainder is read from entree2 passed as parameter. check_types() and error_action() are identical to those of entree2.
Definition at line 28 of file Entree_complete.h.
| Entree_complete::Entree_complete | ( | const char * | str, |
| Entree & | entree2 ) |
Definition at line 22 of file Entree_complete.cpp.
|
override |
Definition at line 38 of file Entree_complete.cpp.
|
overridevirtual |
Reimplemented from Entree.
Definition at line 73 of file Entree_complete.cpp.
|
overridevirtual |
Reimplemented from Entree.
Definition at line 79 of file Entree_complete.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 52 of file Entree_complete.cpp.
|
overridevirtual |
Reimplemented from Entree.
Definition at line 71 of file Entree_complete.cpp.
|
overridevirtual |
Reimplemented from Entree.
Definition at line 68 of file Entree_complete.cpp.
|
overridevirtual |
Reimplemented from Entree.
Definition at line 59 of file Entree_complete.cpp.
|
overridevirtual |
Reimplemented from Entree.
Definition at line 62 of file Entree_complete.cpp.
|
overridevirtual |
Reimplemented from Entree.
Definition at line 65 of file Entree_complete.cpp.
|
protected |
Definition at line 40 of file Entree_complete.cpp.
|
overridevirtual |
Reimplemented from Entree.
Definition at line 85 of file Entree_complete.cpp.
|
inline |
|
overridevirtual |
Reimplemented from Entree.
Definition at line 70 of file Entree_complete.cpp.
Definition at line 60 of file Entree.cpp.
|
overridevirtual |
Reimplemented from Entree.
Definition at line 67 of file Entree_complete.cpp.
|
overridevirtual |
Reimplemented from Entree.
Definition at line 58 of file Entree_complete.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.
|
overridevirtual |
Reimplemented from Entree.
Definition at line 61 of file Entree_complete.cpp.
|
overridevirtual |
Reimplemented from Entree.
Definition at line 64 of file Entree_complete.cpp.
Reimplemented from Entree.
Definition at line 77 of file Entree.cpp.
|
virtual |
Reimplemented from Entree.
Definition at line 74 of file Entree.cpp.
|
overridevirtual |
Changing the type of input is forbidden.
exit()
Reimplemented from Entree.
Definition at line 96 of file Entree_complete.cpp.
|
overridevirtual |
Sets the flag on both source inputs. Warning, the flag of entree2 is modified!
Reimplemented from Entree.
Definition at line 110 of file Entree_complete.cpp.
|
overridevirtual |
Sets the value on both source inputs. Warning, the value of entree2 is modified!
See Entree::set_error_action()
Reimplemented from Entree.
Definition at line 122 of file Entree_complete.cpp.
|
protected |
Definition at line 62 of file Entree_complete.h.
|
protected |
Definition at line 64 of file Entree_complete.h.
|
protected |
Definition at line 60 of file Entree_complete.h.
|
protected |
Definition at line 61 of file Entree_complete.h.