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