1 #ifndef MED_MESH_DRIVER22_HXX
2 #define MED_MESH_DRIVER22_HXX
4 #include "MEDMEM_MedMeshDriver.hxx"
5 #include "MEDMEM_define.hxx"
6 #include "MEDMEM_Compatibility21_22.hxx"
12 Generic part : implement open and close methods.
22 class MED_MESH_DRIVER22 : public virtual MED_MESH_DRIVER
26 med_2_2::med_idt _medIdt ;
31 static const med_2_2::med_geometrie_element all_cell_type[MED_NBR_GEOMETRIE_MAILLE];
33 static const char * const all_cell_type_tab [MED_NBR_GEOMETRIE_MAILLE];
42 MED_MESH_DRIVER22(const string & fileName,
44 MED_EN::med_mode_acces accessMode) ;
48 MED_MESH_DRIVER22(const MED_MESH_DRIVER22 & driver) ;
53 virtual ~MED_MESH_DRIVER22() ;
61 Driver Med for MESH : Read only.
63 Implement read method.
67 class MED_MESH_RDONLY_DRIVER22 : public virtual IMED_MESH_RDONLY_DRIVER, public virtual MED_MESH_DRIVER22
75 MED_MESH_RDONLY_DRIVER22() ;
79 MED_MESH_RDONLY_DRIVER22(const string & fileName, MESH * ptrMesh) ;
83 MED_MESH_RDONLY_DRIVER22(const MED_MESH_RDONLY_DRIVER22 & driver) ;
88 virtual ~MED_MESH_RDONLY_DRIVER22() ;
91 Read MESH in the specified file.
97 int getCONNECTIVITY();
99 int getNodalConnectivity(CONNECTIVITY * Connectivity) ;
100 int getNodesFamiliesNumber(int * MEDArrayNodeFamily) ;
101 int getCellsFamiliesNumber(int** Arrays, CONNECTIVITY* Connectivity, MED_EN::medEntityMesh entity) ;
104 GENDRIVER * copy ( void ) const ;
110 Driver Med for MESH : Write only.
112 Implement write method.
116 class MED_MESH_WRONLY_DRIVER22 : public virtual IMED_MESH_WRONLY_DRIVER, public virtual MED_MESH_DRIVER22 {
123 MED_MESH_WRONLY_DRIVER22() ;
127 MED_MESH_WRONLY_DRIVER22(const string & fileName, MESH * ptrMesh) ;
131 MED_MESH_WRONLY_DRIVER22(const MED_MESH_WRONLY_DRIVER22 & driver) ;
136 virtual ~MED_MESH_WRONLY_DRIVER22() ;
139 Write MESH in the specified file.
141 void write( void ) const;
144 int writeCoordinates () const;
145 int writeConnectivities (MED_EN::medEntityMesh entity) const;
146 int writeFamilyNumbers () const;
147 int writeFamilies (vector<FAMILY*> & families) const;
148 int writeGRID() const;
150 GENDRIVER * copy ( void ) const ;
156 Driver Med for MESH : Read write.
157 - Use read method from MED_MESH_RDONLY_DRIVER
158 - Use write method from MED_MESH_WRONLY_DRIVER
162 class MED_MESH_RDWR_DRIVER22 : public IMED_MESH_RDWR_DRIVER, public MED_MESH_RDONLY_DRIVER22, public MED_MESH_WRONLY_DRIVER22 {
169 MED_MESH_RDWR_DRIVER22() ;
173 MED_MESH_RDWR_DRIVER22(const string & fileName, MESH * ptrMesh) ;
177 MED_MESH_RDWR_DRIVER22(const MED_MESH_RDWR_DRIVER22 & driver) ;
182 ~MED_MESH_RDWR_DRIVER22() ;
185 Write MESH in the specified file.
187 void write(void) const;
189 Read MESH in the specified file.
194 GENDRIVER * copy(void) const ;
199 #endif /* MED_MESH_DRIVER22_HXX */