16#include <Lecture_Champ.h>
17#include <Champ_base.h>
22Lecture_Champ::Lecture_Champ()
33 Cerr <<
"Reading Fields\n";
41 if(
Motcle(nom)!= accolade_ouverte)
43 Cerr <<
"We expected a { while reading " <<
que_suis_je() << finl;
44 Cerr <<
"and not : " << nom << finl;
53 if (
Motcle(nom) == accolade_fermee)
59 is >> liste_champs(lu);
60 liste_champs(lu)->nommer(nom);
65 Cerr <<
"Unknown field name : " << nom << finl;
66 Cerr <<
"Expected names :" << finl;
67 Cerr << noms_champs << finl;
76 Cerr <<
"Error while reading input fields." << finl;
77 Cerr <<
"We expected "<< noms_champs.size() <<
" fields." << finl;
class Champ_base This class is the base of the fields hierarchy.
Class defining operators and methods for all reading operation in an input flow (file,...
LIST(OWN_PTR(Champ_base)) liste_champs
Entree & lire_champs(Entree &is, LIST(Nom)&noms_champs)
A character string (Nom) in uppercase.
class Nom: a character string for naming TRUST objects.
bool contient(const Nom &nom) const
Base class for TRUST objects (Objet_U).
const Nom & que_suis_je() const
Returns the string identifying the class.
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.