Entree#

#include <Entree.h>
Brief description

Class defining operators and methods for all reading operation in an input flow (file, keyboard communication buffer, etc.)

How to reference this class#

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree <class-entree>`
[Entree](#class-entree)

Detailed description#

Inherits from#

Inherited by#

Inheritance graph#

If the image is too small, right-click and open in new tab

../../../../../_images/classEntree__inherit__graph.png

List of Public Methods#

List of Protected Methods#

List of Private Methods#

Complete Member Function Documentation#

check_types#

Definition
bool Entree::check_types() const
Brief description
Detailed description
References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`bool Entree::check_types() const <entree-public-bool-entree-check-types-const>`
[bool Entree::check_types() const](#entree-public-bool-entree-check-types-const)

Entree#

Definition
Entree::Entree()
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree::Entree() <entree-public-entree-entree>`
[Entree::Entree()](#entree-public-entree-entree)

Entree#

Definition
Entree::Entree(const Entree &is)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree::Entree(const Entree &is) <entree-public-entree-entree-const-entree-ref-is>`
[Entree::Entree(const Entree &is)](#entree-public-entree-entree-const-entree-ref-is)

Entree#

Definition
Entree::Entree(istream &is)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree::Entree(istream &is) <entree-public-entree-entree-istream-ref-is>`
[Entree::Entree(istream &is)](#entree-public-entree-entree-istream-ref-is)

eof#

fail#

Definition
int Entree::fail()
Brief description
Detailed description
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`int Entree::fail() <entree-public-int-entree-fail>`
[int Entree::fail()](#entree-public-int-entree-fail)

get#

Definition
int Entree::get(char *buf, std::streamsize bufsize)
Brief description

Lecture d’une chaine dans ostream_ bufsize est la taille du buffer alloue pour ob (y compris.

Detailed description

le caractere 0 final). La chaine contient toujours un 0 meme en cas d’echec. La methode renvoie 1 si la lecture est bonne, 0 sinon. Si le buffer est trop petit, pour l’instant on fait exit() mais par la suite on pourra tester: si strlen(ob) = = bufsize-1, alors refaire lire() jusqu’a arriver au bout. Si le lire() suivant renvoie une chaine de longueur nulle, cela signifie que la taille de la chaine etait exactement bufsize-1. Attention: le comportement est different en binaire et en ascii. En binaire, on lit la chaine jusqu’au prochain ‘0’. En ascii, on lit la chaine jusqu’au prochain separateur (espace, tab, fin ligne)

References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`int Entree::get(char *buf, std::streamsize bufsize) <entree-public-int-entree-get-char-ptr-buf-std-streamsize-bufsize>`
[int Entree::get(char *buf, std::streamsize bufsize)](#entree-public-int-entree-get-char-ptr-buf-std-streamsize-bufsize)

get#

Definition
int Entree::get(double *ob, std::streamsize n)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`int Entree::get(double *ob, std::streamsize n) <entree-public-int-entree-get-double-ptr-ob-std-streamsize-n>`
[int Entree::get(double *ob, std::streamsize n)](#entree-public-int-entree-get-double-ptr-ob-std-streamsize-n)

get#

Definition
int Entree::get(float *ob, std::streamsize n)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`int Entree::get(float *ob, std::streamsize n) <entree-public-int-entree-get-float-ptr-ob-std-streamsize-n>`
[int Entree::get(float *ob, std::streamsize n)](#entree-public-int-entree-get-float-ptr-ob-std-streamsize-n)

get#

Definition
int Entree::get(long *ob, std::streamsize n)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`int Entree::get(long *ob, std::streamsize n) <entree-public-int-entree-get-long-ptr-ob-std-streamsize-n>`
[int Entree::get(long *ob, std::streamsize n)](#entree-public-int-entree-get-long-ptr-ob-std-streamsize-n)

get#

Definition
int Entree::get(long long *ob, std::streamsize n)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`int Entree::get(long long *ob, std::streamsize n) <entree-public-int-entree-get-long-long-ptr-ob-std-streamsize-n>`
[int Entree::get(long long *ob, std::streamsize n)](#entree-public-int-entree-get-long-long-ptr-ob-std-streamsize-n)

get#

Definition
int Entree::get(True_int *ob, std::streamsize n)
Brief description
Detailed description
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`int Entree::get(True_int *ob, std::streamsize n) <entree-public-int-entree-get-true-int-ptr-ob-std-streamsize-n>`
[int Entree::get(True_int *ob, std::streamsize n)](#entree-public-int-entree-get-true-int-ptr-ob-std-streamsize-n)

get_diffuse#

Definition
bool Entree::get_diffuse()
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`bool Entree::get_diffuse() <entree-public-bool-entree-get-diffuse>`
[bool Entree::get_diffuse()](#entree-public-bool-entree-get-diffuse)

get_error_action#

Definition
Entree::Error_Action Entree::get_error_action()
Brief description

renvoie error_action_ pour cette entree (permet de la modifier et de restaurer ensuite la valeur anterieure)

Detailed description
References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree::Error_Action Entree::get_error_action() <entree-public-entree-error-action-entree-get-error-action>`
[Entree::Error_Action Entree::get_error_action()](#entree-public-entree-error-action-entree-get-error-action)

get_istream#

Definition
istream & Entree::get_istream()
Brief description
Detailed description
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`istream & Entree::get_istream() <entree-public-istream-ref-entree-get-istream>`
[istream & Entree::get_istream()](#entree-public-istream-ref-entree-get-istream)

get_istream#

Definition
const istream & Entree::get_istream() const
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`const istream & Entree::get_istream() const <entree-public-const-istream-ref-entree-get-istream-const>`
[const istream & Entree::get_istream() const](#entree-public-const-istream-ref-entree-get-istream-const)

good#

Definition
int Entree::good()
Brief description
Detailed description
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`int Entree::good() <entree-public-int-entree-good>`
[int Entree::good()](#entree-public-int-entree-good)

jumpOfLines#

Definition
int Entree::jumpOfLines()
Brief description
Detailed description
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`int Entree::jumpOfLines() <entree-public-int-entree-jumpoflines>`
[int Entree::jumpOfLines()](#entree-public-int-entree-jumpoflines)

operator istream &#

Definition
Entree::operator istream &()
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree::operator istream &() <entree-public-entree-operator-istream-ref>`
[Entree::operator istream &()](#entree-public-entree-operator-istream-ref)

operator =#

Definition
Entree & Entree::operator=(Entree &is)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree & Entree::operator=(Entree &is) <entree-public-entree-ref-entree-operator-equal-entree-ref-is>`
[Entree & Entree::operator=(Entree &is)](#entree-public-entree-ref-entree-operator-equal-entree-ref-is)

operator =#

Definition
Entree & Entree::operator=(istream &is)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree & Entree::operator=(istream &is) <entree-public-entree-ref-entree-operator-equal-istream-ref-is>`
[Entree & Entree::operator=(istream &is)](#entree-public-entree-ref-entree-operator-equal-istream-ref-is)

operator>>#

Definition
Entree & Entree::operator>>(const TRUST_Ref< T > &)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree & Entree::operator>>(const TRUST_Ref< T > &) <entree-public-entree-ref-entree-operator-const-trust-ref-t-ref>`
[Entree & Entree::operator>>(const TRUST_Ref< T > &)](#entree-public-entree-ref-entree-operator-const-trust-ref-t-ref)

operator>>#

Definition
Entree & Entree::operator>>(const TRUST_Ref_Objet_U &)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree & Entree::operator>>(const TRUST_Ref_Objet_U &) <entree-public-entree-ref-entree-operator-const-trust-ref-objet-u-ref>`
[Entree & Entree::operator>>(const TRUST_Ref_Objet_U &)](#entree-public-entree-ref-entree-operator-const-trust-ref-objet-u-ref)

operator>>#

Definition
Entree & Entree::operator>>(double &ob)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree & Entree::operator>>(double &ob) <entree-public-entree-ref-entree-operator-double-ref-ob>`
[Entree & Entree::operator>>(double &ob)](#entree-public-entree-ref-entree-operator-double-ref-ob)

operator>>#

Definition
Entree & Entree::operator>>(Entree &(*f)(Entree &))
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree & Entree::operator>>(Entree &(*f)(Entree &)) <entree-public-entree-ref-entree-operator-entree-ref-ptr-f-entree-ref>`
[Entree & Entree::operator>>(Entree &(*f)(Entree &))](#entree-public-entree-ref-entree-operator-entree-ref-ptr-f-entree-ref)

operator>>#

Definition
Entree & Entree::operator>>(float &ob)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree & Entree::operator>>(float &ob) <entree-public-entree-ref-entree-operator-float-ref-ob>`
[Entree & Entree::operator>>(float &ob)](#entree-public-entree-ref-entree-operator-float-ref-ob)

operator>>#

Definition
Entree & Entree::operator>>(ios &(*f)(ios &))
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree & Entree::operator>>(ios &(*f)(ios &)) <entree-public-entree-ref-entree-operator-ios-ref-ptr-f-ios-ref>`
[Entree & Entree::operator>>(ios &(*f)(ios &))](#entree-public-entree-ref-entree-operator-ios-ref-ptr-f-ios-ref)

operator>>#

Definition
Entree & Entree::operator>>(istream &(*f)(istream &))
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree & Entree::operator>>(istream &(*f)(istream &)) <entree-public-entree-ref-entree-operator-istream-ref-ptr-f-istream-ref>`
[Entree & Entree::operator>>(istream &(*f)(istream &))](#entree-public-entree-ref-entree-operator-istream-ref-ptr-f-istream-ref)

operator>>#

Definition
Entree & Entree::operator>>(long &ob)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree & Entree::operator>>(long &ob) <entree-public-entree-ref-entree-operator-long-ref-ob>`
[Entree & Entree::operator>>(long &ob)](#entree-public-entree-ref-entree-operator-long-ref-ob)

operator>>#

Definition
Entree & Entree::operator>>(long long &ob)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree & Entree::operator>>(long long &ob) <entree-public-entree-ref-entree-operator-long-long-ref-ob>`
[Entree & Entree::operator>>(long long &ob)](#entree-public-entree-ref-entree-operator-long-long-ref-ob)

operator>>#

Definition
Entree & Entree::operator>>(Objet_U &ob) final
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree & Entree::operator>>(Objet_U &ob) final <entree-public-entree-ref-entree-operator-objet-u-ref-ob-final>`
[Entree & Entree::operator>>(Objet_U &ob) final](#entree-public-entree-ref-entree-operator-objet-u-ref-ob-final)

operator>>#

Definition
Entree & Entree::operator>>(True_int &ob)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree & Entree::operator>>(True_int &ob) <entree-public-entree-ref-entree-operator-true-int-ref-ob>`
[Entree & Entree::operator>>(True_int &ob)](#entree-public-entree-ref-entree-operator-true-int-ref-ob)

putback#

Definition
istream & Entree::putback(char ch)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`istream & Entree::putback(char ch) <entree-public-istream-ref-entree-putback-char-ch>`
[istream & Entree::putback(char ch)](#entree-public-istream-ref-entree-putback-char-ch)

set_bin#

Definition
void Entree::set_bin(bool bin) override
Brief description

Change le mode d’ecriture du fichier.

Detailed description

Cette methode peut etre appelee n’importe quand.

Reimplements:

References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Entree::set_bin(bool bin) override <entree-public-void-entree-set-bin-bool-bin-override>`
[void Entree::set_bin(bool bin) override](#entree-public-void-entree-set-bin-bool-bin-override)

set_check_types#

Definition
void Entree::set_check_types(bool flag)
Brief description

indique si le stream doit verifier les types des objets lus (ints et nombres flottants).

Detailed description

Exemple : l’entree contient 123.456 123.456 int i; check_types(0); is>> i; // i contient 123 check_types(1); is>> i; // Erreur : on lit la chaine 123.456 et on essaye de la convertir en int Voir operator>>(int &)

References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Entree::set_check_types(bool flag) <entree-public-void-entree-set-check-types-bool-flag>`
[void Entree::set_check_types(bool flag)](#entree-public-void-entree-set-check-types-bool-flag)

set_diffuse#

Definition
void Entree::set_diffuse(bool diffuse)
Brief description

ToDo TMA : commenter.

Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Entree::set_diffuse(bool diffuse) <entree-public-void-entree-set-diffuse-bool-diffuse>`
[void Entree::set_diffuse(bool diffuse)](#entree-public-void-entree-set-diffuse-bool-diffuse)

set_error_action#

Definition
void Entree::set_error_action(Error_Action)
Brief description

Change le comportement en cas d’erreur de l’entree, voir error_handle_() et get_error_action()

Detailed description
References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Entree::set_error_action(Error_Action) <entree-public-void-entree-set-error-action-error-action>`
[void Entree::set_error_action(Error_Action)](#entree-public-void-entree-set-error-action-error-action)

set_istream#

Definition
void Entree::set_istream(istream *is)
Brief description
Detailed description
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Entree::set_istream(istream *is) <entree-public-void-entree-set-istream-istream-ptr-is>`
[void Entree::set_istream(istream *is)](#entree-public-void-entree-set-istream-istream-ptr-is)

~Entree#

Definition
Entree::~Entree()
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree::~Entree() <entree-public-entree-dtor-entree>`
[Entree::~Entree()](#entree-public-entree-dtor-entree)

error_handle#

Definition
int Entree::error_handle(int fail_flag)
Brief description
Detailed description
References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`int Entree::error_handle(int fail_flag) <entree-protected-int-entree-error-handle-int-fail-flag>`
[int Entree::error_handle(int fail_flag)](#entree-protected-int-entree-error-handle-int-fail-flag)

error_handle_#

Definition
int Entree::error_handle_(int fail_flag)
Brief description

Cette fonction est appellee par operateur>>, get, get_nom ouvrir, fermer, lire, etc.

Detailed description
References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`int Entree::error_handle_(int fail_flag) <entree-protected-int-entree-error-handle-underscore-int-fail-flag>`
[int Entree::error_handle_(int fail_flag)](#entree-protected-int-entree-error-handle-underscore-int-fail-flag)

get_template#

Definition
template int Entree::get_template(_TYPE_ *ob, std::streamsize n)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`template int Entree::get_template(_TYPE_ *ob, std::streamsize n) <entree-private-template-int-entree-get-template-type-ptr-ob-std-streamsize-n>`
[template int Entree::get_template(_TYPE_ *ob, std::streamsize n)](#entree-private-template-int-entree-get-template-type-ptr-ob-std-streamsize-n)

operator_template#

Definition
template Entree & Entree::operator_template(_TYPE_ &ob)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`template Entree & Entree::operator_template(_TYPE_ &ob) <entree-private-template-entree-ref-entree-operator-template-type-ref-ob>`
[template Entree & Entree::operator_template(_TYPE_ &ob)](#entree-private-template-entree-ref-entree-operator-template-type-ref-ob)

Attributes Documentation#

check_types_ (protected)
bool Entree::check_types_
diffuse_ (protected)
bool Entree::diffuse_
error_action_ (protected)
Error_Action Entree::error_action_
istream_ (private)
istream* Entree::istream_

Enums#

Entree::Error_Action#

Location: trust-code/src/Kernel/Utilitaires/Entree.h:92

How to cite in this doc: Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Entree::Error\_Action <enum-none-entree-error-action>`
[Entree::Error\_Action](#enum-none-entree-error-action)
  • ERROR_EXIT

  • ERROR_CONTINUE

  • ERROR_EXCEPTION