TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Entree_Brute Class Reference

An Entree whose main source of data is an arbitrary binary buffer set using the set_data() method. More...

#include <Entree_Brute.h>

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

Public Member Functions

 Entree_Brute ()
 ~Entree_Brute () override
void set_bin (bool bin) override
 Changes the file write mode.
void set_data (const char *data, unsigned sz)
Public Member Functions inherited from Entree
 Entree ()
 Entree (istream &is)
 Entree (const Entree &is)
virtual ~Entree ()
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)
 Reads a string from ostream_. bufsize is the size of the buffer allocated for ob (including.
virtual int eof ()
virtual int jumpOfLines ()
virtual int fail ()
virtual int good ()
virtual void set_check_types (bool flag)
 Indicates whether the stream should verify the types of read objects (ints and floating-point numbers).
bool check_types () const
virtual void set_error_action (Error_Action)
 Changes the error behaviour of the input; see error_handle_() and get_error_action().
Error_Action get_error_action ()
 Returns error_action_ for this input (allows modifying it and restoring the previous value afterwards).
 operator istream & ()
istream & putback (char ch)
bool get_diffuse ()
virtual void set_diffuse (bool diffuse)
 Sets the diffuse flag for this input stream.
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_
char * data_
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)
 This function is called by operator>>, 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

An Entree whose main source of data is an arbitrary binary buffer set using the set_data() method.

This Entree can then be used to feed any standard TRUST objects.

See also
EChaine

Definition at line 29 of file Entree_Brute.h.

Constructor & Destructor Documentation

◆ Entree_Brute()

Entree_Brute::Entree_Brute ( )

Definition at line 22 of file Entree_Brute.cpp.

◆ ~Entree_Brute()

Entree_Brute::~Entree_Brute ( )
override

Definition at line 31 of file Entree_Brute.cpp.

Member Function Documentation

◆ set_bin()

void Entree_Brute::set_bin ( bool bin)
overridevirtual

Changes the file write mode.

This method can be called at any time.

Reimplemented from Entree.

Definition at line 36 of file Entree_Brute.cpp.

◆ set_data()

void Entree_Brute::set_data ( const char * data,
unsigned sz )

Definition at line 46 of file Entree_Brute.cpp.

Member Data Documentation

◆ data_

char* Entree_Brute::data_
protected

Definition at line 41 of file Entree_Brute.h.

◆ istrstream_

istringstream* Entree_Brute::istrstream_
protected

Definition at line 40 of file Entree_Brute.h.


The documentation for this class was generated from the following files: