Salome HOME
Version ok de MED avec MEDGUI.
[modules/med.git] / src / MEDMEM / MEDMEM_DriversDef.hxx
1 # ifndef DRIVERS_DEF_HXX
2 # define DRIVERS_DEF_HXX
3
4 // STL
5 # include <string>
6 # include <list>
7 # include <map>
8
9 using namespace std ;
10
11 #include "MEDMEM_define.hxx"
12 namespace MED_FR {
13
14 // Returns the (string) name of the geometry of 
15 // an element given by a med_geometrie_element value
16 class GEO_NAME : public map<int,string>
17 {
18   
19 public :
20   
21   GEO_NAME ();
22   
23   string & operator[]( const MED_FR::med_geometrie_element &c ) const;
24 } ;
25
26
27 static const GEO_NAME geoNames ;
28   
29 // Returns the (string) name of the type of 
30 // an entity given by a med_entite_maillage value
31 class ENT_NAME : public map<int,string>
32 {
33   
34 public :
35   ENT_NAME ();
36   string & operator[]( const MED_FR::med_entite_maillage &c ) const;
37 } ;
38
39 static const ENT_NAME entNames ;
40
41 class MESH_ENTITIES : public map<int, const list<MED_FR::med_geometrie_element> >
42 {
43
44 public :
45
46   MESH_ENTITIES ();
47   const list<MED_FR::med_geometrie_element> & operator[]( const  MED_FR::med_entite_maillage &c ) const;
48   
49 private:
50   // This operator is used to initialize class objects of type  const list<med_geometrie_element>
51   list<MED_FR::med_geometrie_element> & operator[]( const  MED_FR::med_entite_maillage &c );
52   
53 } ;
54
55 static const MESH_ENTITIES meshEntities ;
56
57 } // End Of NameSpace MED_FR
58
59 #endif
60