1 # ifndef DRIVERS_DEF_HXX
2 # define DRIVERS_DEF_HXX
11 #include "MEDMEM_define.hxx"
12 #include "utilities.h"
15 /*! This Class inherits from map. /n
16 It is a constant map association int (which is a med_geometrie_element) and string. /n
17 Operator [] returns the (string) name of the geometry of an element
18 given by a med_geometrie_element value. /n
19 Such a static map is instancied and can be used in any code to have
20 the name of the geometry of an element : MED_FR:GEO_NAME
21 A simple test/use case can be found in test/testUGeoNameMeshEntities.cxx */
22 //----------------------------------------
23 class GEO_NAME : public map<int,string>
24 //----------------------------------------
31 string & operator[]( const MED_FR::med_geometrie_element &c ) const;
34 static const GEO_NAME geoNames ;
36 // ____________________________
38 /*! This Class inherits from map. /n
39 It is a constant map association int (which is a med_entite_maillage) and string. /n
40 Operator[] returns the (string) name of the type of an entity given by
41 a med_entite_maillage value. /n
42 Such a static map is instancied and can be used in any code to have
43 the name of the geometry of an element : MED_FR:ENT_NAME
44 A simple test/use case can be found in test/testUGeoNameMeshEntities.cxx */
46 //----------------------------------------
47 class ENT_NAME : public map<int,string>
48 //----------------------------------------
55 string & operator[]( const MED_FR::med_entite_maillage &c ) const;
58 static const ENT_NAME entNames ;
60 // ____________________________
62 /*! This Class inherits from map. /n
63 It is a constant map association int (which is a med_entite_maillage) and a list. /n
64 Operator[] returns the list of all exisiting med_geometrie_element for
65 a med_entite_maillage value. /n
66 Such a static map is instancied and can be used in any code to have
67 the name of the geometry of an element : MED_FR:MESH_ENTITIES
68 A simple test/use case can be found in test/testUGeoNameMeshEntities.cxx */
71 //--------------------------------------------------------------------------------
72 class MESH_ENTITIES : public map<int, const list<MED_FR::med_geometrie_element> >
73 //--------------------------------------------------------------------------------
80 const list<MED_FR::med_geometrie_element> & operator[]( const MED_FR::med_entite_maillage &c ) const;
83 /*! This operator is used to initialize class objects of
84 type const list<med_geometrie_element> */
85 list<MED_FR::med_geometrie_element> & operator[]( const MED_FR::med_entite_maillage &c );
89 static const MESH_ENTITIES meshEntities ;
91 } // End Of NameSpace MED_FR