EChaineJDD#

#include <EChaineJDD.h>

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.

How to cite this class in this doc#

:ref:`EChaineJDD <class-echainejdd>`
[EChaineJDD](#class-echainejdd)

Detailed description#

Inherits from#

List of Public Methods#

List of Protected Methods#

Complete Member Function Documentation#

EChaineJDD
EChaineJDD::EChaineJDD()
References
How to cite in this doc:
:ref:`EChaineJDD::EChaineJDD() <public-echainejdd-echainejdd>`
[EChaineJDD::EChaineJDD()](#public-echainejdd-echainejdd)
EChaineJDD
EChaineJDD::EChaineJDD(const char *str)
References
How to cite in this doc:
:ref:`EChaineJDD::EChaineJDD(const char *str) <public-echainejdd-echainejdd-const-char-ptr-str>`
[EChaineJDD::EChaineJDD(const char *str)](#public-echainejdd-echainejdd-const-char-ptr-str)
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.

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)

Reimplements:

How to cite in this doc:
:ref:`int Entree::get(char *buf, std::streamsize bufsize) <public-int-entree-get-char-ptr-buf-std-streamsize-bufsize>`
[int Entree::get(char *buf, std::streamsize bufsize)](#public-int-entree-get-char-ptr-buf-std-streamsize-bufsize)
get
int EChaineJDD::get(char *ob, std::streamsize bufsize) override

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

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)

Reimplements:

References
Referenced By
How to cite in this doc:
:ref:`int EChaineJDD::get(char *ob, std::streamsize bufsize) override <public-int-echainejdd-get-char-ptr-ob-std-streamsize-bufsize-override>`
[int EChaineJDD::get(char *ob, std::streamsize bufsize) override](#public-int-echainejdd-get-char-ptr-ob-std-streamsize-bufsize-override)
get
int Entree::get(double *ob, std::streamsize n)

Reimplements:

How to cite in this doc:
:ref:`int Entree::get(double *ob, std::streamsize n) <public-int-entree-get-double-ptr-ob-std-streamsize-n>`
[int Entree::get(double *ob, std::streamsize n)](#public-int-entree-get-double-ptr-ob-std-streamsize-n)
get
int Entree::get(float *ob, std::streamsize n)

Reimplements:

How to cite in this doc:
:ref:`int Entree::get(float *ob, std::streamsize n) <public-int-entree-get-float-ptr-ob-std-streamsize-n>`
[int Entree::get(float *ob, std::streamsize n)](#public-int-entree-get-float-ptr-ob-std-streamsize-n)
get
int Entree::get(long *ob, std::streamsize n)

Reimplements:

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

Reimplements:

How to cite in this doc:
:ref:`int Entree::get(long long *ob, std::streamsize n) <public-int-entree-get-long-long-ptr-ob-std-streamsize-n>`
[int Entree::get(long long *ob, std::streamsize n)](#public-int-entree-get-long-long-ptr-ob-std-streamsize-n)
get
int Entree::get(True_int *ob, std::streamsize n)

Reimplements:

How to cite in this doc:
:ref:`int Entree::get(True_int *ob, std::streamsize n) <public-int-entree-get-true-int-ptr-ob-std-streamsize-n>`
[int Entree::get(True_int *ob, std::streamsize n)](#public-int-entree-get-true-int-ptr-ob-std-streamsize-n)
init
void EChaineJDD::init(const char *str)
References
Referenced By
How to cite in this doc:
:ref:`void EChaineJDD::init(const char *str) <public-void-echainejdd-init-const-char-ptr-str>`
[void EChaineJDD::init(const char *str)](#public-void-echainejdd-init-const-char-ptr-str)
operator>>
Entree & Entree::operator>>(const TRUST_Ref< T > &)
How to cite in this doc:
:ref:`Entree & Entree::operator>>(const TRUST_Ref< T > &) <public-entree-ref-entree-operator-const-trust-ref-t-ref>`
[Entree & Entree::operator>>(const TRUST_Ref< T > &)](#public-entree-ref-entree-operator-const-trust-ref-t-ref)
operator>>
Entree & Entree::operator>>(const TRUST_Ref_Objet_U &)
How to cite in this doc:
:ref:`Entree & Entree::operator>>(const TRUST_Ref_Objet_U &) <public-entree-ref-entree-operator-const-trust-ref-objet-u-ref>`
[Entree & Entree::operator>>(const TRUST_Ref_Objet_U &)](#public-entree-ref-entree-operator-const-trust-ref-objet-u-ref)
operator>>
Entree & Entree::operator>>(double &ob)

Reimplements:

How to cite in this doc:
:ref:`Entree & Entree::operator>>(double &ob) <public-entree-ref-entree-operator-double-ref-ob>`
[Entree & Entree::operator>>(double &ob)](#public-entree-ref-entree-operator-double-ref-ob)
operator>>
Entree & EChaineJDD::operator>>(double &ob) override

Reimplements:

How to cite in this doc:
:ref:`Entree & EChaineJDD::operator>>(double &ob) override <public-entree-ref-echainejdd-operator-double-ref-ob-override>`
[Entree & EChaineJDD::operator>>(double &ob) override](#public-entree-ref-echainejdd-operator-double-ref-ob-override)
operator>>
Entree & Entree::operator>>(Entree &(*f)(Entree &))
How to cite in this doc:
:ref:`Entree & Entree::operator>>(Entree &(*f)(Entree &)) <public-entree-ref-entree-operator-entree-ref-ptr-f-entree-ref>`
[Entree & Entree::operator>>(Entree &(*f)(Entree &))](#public-entree-ref-entree-operator-entree-ref-ptr-f-entree-ref)
operator>>
Entree & Entree::operator>>(float &ob)

Reimplements:

How to cite in this doc:
:ref:`Entree & Entree::operator>>(float &ob) <public-entree-ref-entree-operator-float-ref-ob>`
[Entree & Entree::operator>>(float &ob)](#public-entree-ref-entree-operator-float-ref-ob)
operator>>
Entree & Entree::operator>>(ios &(*f)(ios &))
How to cite in this doc:
:ref:`Entree & Entree::operator>>(ios &(*f)(ios &)) <public-entree-ref-entree-operator-ios-ref-ptr-f-ios-ref>`
[Entree & Entree::operator>>(ios &(*f)(ios &))](#public-entree-ref-entree-operator-ios-ref-ptr-f-ios-ref)
operator>>
Entree & Entree::operator>>(istream &(*f)(istream &))
How to cite in this doc:
:ref:`Entree & Entree::operator>>(istream &(*f)(istream &)) <public-entree-ref-entree-operator-istream-ref-ptr-f-istream-ref>`
[Entree & Entree::operator>>(istream &(*f)(istream &))](#public-entree-ref-entree-operator-istream-ref-ptr-f-istream-ref)
operator>>
Entree & Entree::operator>>(long &ob)

Reimplements:

How to cite in this doc:
:ref:`Entree & Entree::operator>>(long &ob) <public-entree-ref-entree-operator-long-ref-ob>`
[Entree & Entree::operator>>(long &ob)](#public-entree-ref-entree-operator-long-ref-ob)
operator>>
Entree & Entree::operator>>(long long &ob)

Reimplements:

How to cite in this doc:
:ref:`Entree & Entree::operator>>(long long &ob) <public-entree-ref-entree-operator-long-long-ref-ob>`
[Entree & Entree::operator>>(long long &ob)](#public-entree-ref-entree-operator-long-long-ref-ob)
operator>>
Entree & Entree::operator>>(Objet_U &ob) final

Reimplements:

How to cite in this doc:
:ref:`Entree & Entree::operator>>(Objet_U &ob) final <public-entree-ref-entree-operator-objet-u-ref-ob-final>`
[Entree & Entree::operator>>(Objet_U &ob) final](#public-entree-ref-entree-operator-objet-u-ref-ob-final)
operator>>
Entree & Entree::operator>>(True_int &ob)

Reimplements:

How to cite in this doc:
:ref:`Entree & Entree::operator>>(True_int &ob) <public-entree-ref-entree-operator-true-int-ref-ob>`
[Entree & Entree::operator>>(True_int &ob)](#public-entree-ref-entree-operator-true-int-ref-ob)
operator>>
Entree & EChaineJDD::operator>>(True_int &ob) override

Reimplements:

How to cite in this doc:
:ref:`Entree & EChaineJDD::operator>>(True_int &ob) override <public-entree-ref-echainejdd-operator-true-int-ref-ob-override>`
[Entree & EChaineJDD::operator>>(True_int &ob) override](#public-entree-ref-echainejdd-operator-true-int-ref-ob-override)
set_track_lines
void EChaineJDD::set_track_lines(bool b)
References
Referenced By
How to cite in this doc:
:ref:`void EChaineJDD::set_track_lines(bool b) <public-void-echainejdd-set-track-lines-bool-b>`
[void EChaineJDD::set_track_lines(bool b)](#public-void-echainejdd-set-track-lines-bool-b)
~EChaineJDD
EChaineJDD::~EChaineJDD() override
How to cite in this doc:
:ref:`EChaineJDD::~EChaineJDD() override <public-echainejdd-dtor-echainejdd-override>`
[EChaineJDD::~EChaineJDD() override](#public-echainejdd-dtor-echainejdd-override)
operator_template
Entree & EChaineJDD::operator_template(_TYPE_ &ob)
References
How to cite in this doc:
:ref:`Entree & EChaineJDD::operator_template(_TYPE_ &ob) <protected-entree-ref-echainejdd-operator-template-type-ref-ob>`
[Entree & EChaineJDD::operator_template(_TYPE_ &ob)](#protected-entree-ref-echainejdd-operator-template-type-ref-ob)

Attributes Documentation#

file_cur_line_ (public)
int EChaineJDD::file_cur_line_ = 1
istrstream_ (protected)
istringstream* EChaineJDD::istrstream_
track_lines_ (protected)
bool EChaineJDD::track_lines_