1 #ifndef MED_MESH_DRIVER21_HXX
2 #define MED_MESH_DRIVER21_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_DRIVER21 : public virtual MED_MESH_DRIVER
26 med_2_1::med_idt _medIdt;
31 static const med_2_1::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_DRIVER21(const string & fileName,
44 MED_EN::med_mode_acces accessMode) ;
48 MED_MESH_DRIVER21(const MED_MESH_DRIVER21 & driver) ;
53 virtual ~MED_MESH_DRIVER21() ;
61 Driver Med for MESH : Read only.
63 Implement read method.
67 class MED_MESH_RDONLY_DRIVER21 : public virtual IMED_MESH_RDONLY_DRIVER , public virtual MED_MESH_DRIVER21
75 MED_MESH_RDONLY_DRIVER21() ;
79 MED_MESH_RDONLY_DRIVER21(const string & fileName, MESH * ptrMesh) ;
83 MED_MESH_RDONLY_DRIVER21(const MED_MESH_RDONLY_DRIVER21 & driver) ;
88 virtual ~MED_MESH_RDONLY_DRIVER21() ;
92 int getCONNECTIVITY();
94 int getNodalConnectivity(CONNECTIVITY * Connectivity) ;
95 int getNodesFamiliesNumber(int * MEDArrayNodeFamily) ;
96 int getCellsFamiliesNumber(int** Arrays, CONNECTIVITY* Connectivity, MED_EN::medEntityMesh entity) ;
99 GENDRIVER * copy ( void ) const ;
105 Driver Med for MESH : Write only.
107 Implement write method.
111 class MED_MESH_WRONLY_DRIVER21 : public virtual IMED_MESH_WRONLY_DRIVER, public virtual MED_MESH_DRIVER21 {
118 MED_MESH_WRONLY_DRIVER21() ;
122 MED_MESH_WRONLY_DRIVER21(const string & fileName, MESH * ptrMesh) ;
126 MED_MESH_WRONLY_DRIVER21(const MED_MESH_WRONLY_DRIVER21 & driver) ;
131 virtual ~MED_MESH_WRONLY_DRIVER21() ;
134 Write MESH in the specified file.
136 void write( void ) const;
139 int writeCoordinates () const;
140 int writeConnectivities (MED_EN::medEntityMesh entity) const;
141 int writeFamilyNumbers () const;
142 int writeFamilies (vector<FAMILY*> & families) const;
143 int writeGRID() const;
145 GENDRIVER * copy ( void ) const ;
151 Driver Med for MESH : Read write.
152 - Use read method from MED_MESH_RDONLY_DRIVER
153 - Use write method from MED_MESH_WRONLY_DRIVER
157 class MED_MESH_RDWR_DRIVER21 : public IMED_MESH_RDWR_DRIVER, public MED_MESH_RDONLY_DRIVER21, public MED_MESH_WRONLY_DRIVER21 {
164 MED_MESH_RDWR_DRIVER21() ;
168 MED_MESH_RDWR_DRIVER21(const string & fileName, MESH * ptrMesh) ;
172 MED_MESH_RDWR_DRIVER21(const MED_MESH_RDWR_DRIVER21 & driver) ;
177 ~MED_MESH_RDWR_DRIVER21() ;
180 Write MESH in the specified file.
182 void write(void) const;
184 Read MESH in the specified file.
189 GENDRIVER * copy(void) const ;
194 #endif /* MED_MESH_DRIVER21_HXX */