16#ifndef Entree_included
17#define Entree_included
20#include <AbstractIO.h>
50 void set_bin(
bool bin)
override;
79 virtual int get(
int *ob, std::streamsize n);
80 virtual int get(
long *ob, std::streamsize n);
81 virtual int get(
long long *ob, std::streamsize n);
82 virtual int get(
float *ob, std::streamsize n);
83 virtual int get(
double *ob, std::streamsize n);
85 virtual int get(
char *buf, std::streamsize bufsize);
107 if (!fail_flag)
return 1;
119 template <
typename _TYPE_>
120 int get_template(_TYPE_ *ob, std::streamsize n);
122 template <
typename _TYPE_>
123 Entree& operator_template(_TYPE_& ob);
126int is_a_binary_file(
Nom&);
128void convert_to(
const char *s,
int& ob);
129void convert_to(
const char *s,
long& ob);
130void convert_to(
const char *s,
long long& ob);
131void convert_to(
const char *s,
float& ob);
132void convert_to(
const char *s,
double& ob);
Class defining operators and methods for all reading operation in an input flow (file,...
virtual int error_handle_(int fail_flag)
This function is called by operator>>, get, get_nom, ouvrir, fermer, lire, etc.
int error_handle(int fail_flag)
Entree & operator>>(const TRUST_Ref_Objet_U &)
Entree & operator=(istream &is)
virtual int get(int *ob, std::streamsize n)
istream & putback(char ch)
virtual void set_diffuse(bool diffuse)
Sets the diffuse flag for this input stream.
Entree & operator>>(const TRUST_Ref< T > &)
virtual int jumpOfLines()
virtual void set_error_action(Error_Action)
Changes the error behaviour of the input; see error_handle_() and get_error_action().
Error_Action error_action_
Entree & operator>>(Entree &(*f)(Entree &))
virtual istream & get_istream()
void set_bin(bool bin) override
Changes the file write mode.
void set_istream(istream *is)
Error_Action get_error_action()
Returns error_action_ for this input (allows modifying it and restoring the previous value afterwards...
virtual void set_check_types(bool flag)
Indicates whether the stream should verify the types of read objects (ints and floating-point numbers...
class Nom: a character string for naming TRUST objects.
Base class for TRUST objects (Objet_U).