29char hoteos_from_file_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Eos/hoteos_from_file.C,v 1.2 2015/12/08 10:52:18 j_novak Exp $" ;
50#include "utilitaires.h"
73 fread_be(&identificator,
sizeof(
int), 1, fich) ;
75 switch(identificator) {
88 cout <<
"Hot_eos::hoteos_from_file : unknown type of EOS !" << endl ;
89 cout <<
" identificator = " << identificator << endl ;
108 cerr <<
"Hot_eos::hoteos_from_file: file cannot be opened!" << endl ;
113 fich >> identificator ; fich.ignore(1000,
'\n') ;
117 switch(identificator) {
130 cout <<
"Hot_eos::hoteos_from_file : unknown type of EOS !" << endl ;
131 cout <<
" identificator = " << identificator << endl ;
Base class for temperature-dependent equations of state (abstract class).
static Hot_eos * hoteos_from_file(FILE *)
Construction of an EOS from a binary file.
Hot (temperature-dependent) tabulated equation of state, read from a file.
virtual int identify() const
Returns a number to identify the sub-classe of Hot_eos the object belongs to.
Ideal-gas (temperature-dependent) equation of state, with mass-term in the energy density.
virtual int identify() const
Returns a number to identify the sub-classe of Hot_eos the object belongs to.
int fread_be(int *aa, int size, int nb, FILE *fich)
Reads integer(s) from a binary file according to the big endian convention.