TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
EChaine Class Reference

Une entree dont la source est une chaine de caracteres. More...

#include <EChaine.h>

Inheritance diagram for EChaine:
[legend]
Collaboration diagram for EChaine:
[legend]

Public Member Functions

 EChaine ()
 EChaine (const char *str)
 ~EChaine () override
void init (const char *str)
Public Member Functions inherited from Entree
 Entree ()
 Entree (istream &is)
 Entree (const Entree &is)
virtual ~Entree ()
void set_bin (bool bin) override
 Change le mode d'ecriture du fichier.
Entreeoperator= (istream &is)
Entreeoperator= (Entree &is)
virtual istream & get_istream ()
virtual const istream & get_istream () const
void set_istream (istream *is)
Entreeoperator>> (Entree &(*f)(Entree &))
Entreeoperator>> (istream &(*f)(istream &))
Entreeoperator>> (ios &(*f)(ios &))
template<typename T>
Entreeoperator>> (const TRUST_Ref< T > &)
Entreeoperator>> (const TRUST_Ref_Objet_U &)
virtual Entreeoperator>> (int &ob)
virtual Entreeoperator>> (long &ob)
virtual Entreeoperator>> (long long &ob)
virtual Entreeoperator>> (float &ob)
virtual Entreeoperator>> (double &ob)
virtual Entreeoperator>> (std::string &ob)
virtual Entreeoperator>> (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)
virtual int get (char *buf, std::streamsize bufsize)
 Lecture d'une chaine dans ostream_ bufsize est la taille du buffer alloue pour ob (y compris.
virtual int eof ()
virtual int jumpOfLines ()
virtual int fail ()
virtual int good ()
virtual void set_check_types (bool flag)
 indique si le stream doit verifier les types des objets lus (ints et nombres flottants).
bool check_types () const
virtual void set_error_action (Error_Action)
 Change le comportement en cas d'erreur de l'entree, voir error_handle_() et get_error_action().
Error_Action get_error_action ()
 renvoie error_action_ pour cette entree (permet de la modifier et de restaurer ensuite la valeur anterieure)
 operator istream & ()
istream & putback (char ch)
bool get_diffuse ()
virtual void set_diffuse (bool diffuse)
 ToDo TMA : commenter.
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

istringstream * istrstream_
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 }
Protected Member Functions inherited from Entree
int error_handle (int fail_flag)
virtual int error_handle_ (int fail_flag)
 Cette fonction est appellee par operateur>>, 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.

Detailed Description

Une entree dont la source est une chaine de caracteres.

Le constructeur cree sa propre copie de la chaine, de sorte que la chaine d'origine peut etre modifiee ensuite sans modifier la EChaine.

Definition at line 30 of file EChaine.h.

Constructor & Destructor Documentation

◆ EChaine() [1/2]

EChaine::EChaine ( )

Definition at line 18 of file EChaine.cpp.

◆ EChaine() [2/2]

EChaine::EChaine ( const char * str)

Definition at line 24 of file EChaine.cpp.

◆ ~EChaine()

EChaine::~EChaine ( )
override

Definition at line 31 of file EChaine.cpp.

Member Function Documentation

◆ init()

void EChaine::init ( const char * str)

Definition at line 33 of file EChaine.cpp.

Member Data Documentation

◆ istrstream_

istringstream* EChaine::istrstream_
protected

Definition at line 40 of file EChaine.h.


The documentation for this class was generated from the following files:
  • /home/docs/checkouts/readthedocs.org/user_builds/cea-trust-platform/checkouts/master/src/Kernel/Utilitaires/EChaine.h
  • /home/docs/checkouts/readthedocs.org/user_builds/cea-trust-platform/checkouts/master/src/Kernel/Utilitaires/EChaine.cpp