Entree#
#include <Entree.h>
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#
public : AbstractIO
Inherited by#
public : EChaine
public : EChaineJDD
public : Entree_Brute
public : Entree_Fichier_base
public : Entree_complete
public : InputCommBuffer
Inheritance graph#
If the image is too small, right-click and open in new tab
List of Public Methods#
List of Protected Methods#
List of Private Methods#
Complete Member Function Documentation#
check_types#
bool Entree::check_types() const
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#
Entree::Entree()
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#
Entree::Entree(const Entree &is)
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#
Entree::Entree(istream &is)
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#
int Entree::eof()
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::eof() <entree-public-int-entree-eof>`
[int Entree::eof()](#entree-public-int-entree-eof)
fail#
int Entree::fail()
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#
int Entree::get(char *buf, std::streamsize bufsize)
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#
int Entree::get(double *ob, std::streamsize n)
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#
int Entree::get(float *ob, std::streamsize n)
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#
int Entree::get(long *ob, std::streamsize n)
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#
int Entree::get(long long *ob, std::streamsize n)
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#
int Entree::get(True_int *ob, std::streamsize n)
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#
bool Entree::get_diffuse()
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#
Entree::Error_Action Entree::get_error_action()
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#
istream & Entree::get_istream()
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#
const istream & Entree::get_istream() const
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#
int Entree::good()
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#
int Entree::jumpOfLines()
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 &#
Entree::operator istream &()
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 =#
Entree & Entree::operator=(Entree &is)
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 =#
Entree & Entree::operator=(istream &is)
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>>#
Entree & Entree::operator>>(const TRUST_Ref< T > &)
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>>#
Entree & Entree::operator>>(const TRUST_Ref_Objet_U &)
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>>#
Entree & Entree::operator>>(double &ob)
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>>#
Entree & Entree::operator>>(Entree &(*f)(Entree &))
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>>#
Entree & Entree::operator>>(float &ob)
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>>#
Entree & Entree::operator>>(ios &(*f)(ios &))
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>>#
Entree & Entree::operator>>(istream &(*f)(istream &))
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>>#
Entree & Entree::operator>>(long &ob)
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>>#
Entree & Entree::operator>>(long long &ob)
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>>#
Entree & Entree::operator>>(Objet_U &ob) final
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>>#
Entree & Entree::operator>>(True_int &ob)
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#
istream & Entree::putback(char ch)
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#
void Entree::set_bin(bool bin) override
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#
void Entree::set_check_types(bool flag)
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#
void Entree::set_diffuse(bool diffuse)
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#
void Entree::set_error_action(Error_Action)
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#
void Entree::set_istream(istream *is)
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#
Entree::~Entree()
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#
int Entree::error_handle(int fail_flag)
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_#
int Entree::error_handle_(int fail_flag)
Cette fonction est appellee par operateur>>, get, get_nom ouvrir, fermer, lire, etc.
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::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#
template int Entree::get_template(_TYPE_ *ob, std::streamsize n)
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#
template Entree & Entree::operator_template(_TYPE_ &ob)
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#
bool Entree::check_types_
bool Entree::diffuse_
Error_Action Entree::error_action_
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