1 #ifndef VTK_MED_DRIVER_HXX
2 #define VTK_MED_DRIVER_HXX
5 #include "MEDMEM_STRING.hxx"
7 #include "MEDMEM_Exception.hxx"
9 #include "MEDMEM_GenDriver.hxx"
21 // This driver pilots within a VTK class read/write accesses of fields/meshes
22 class VTK_MED_DRIVER : public GENDRIVER
26 MED * const _ptrMed ; // Store 'VTK_DRIVER (0..n)----(1) VTK' associations
27 ofstream * _vtkFile ; // The _vtkFile used to write Meshes and Fields to _filename
32 //writeField(FIELD * myField) ;
33 //writeMesh(MESH * myMesh) ;
37 void openConst() const ;
38 void closeConst() const ;
41 VTK_MED_DRIVER(const string & fileName, MED * const ptrMed);
42 VTK_MED_DRIVER(const VTK_MED_DRIVER & driver);
44 // OPERATEUR DE RECOPIE AVEC _vtkFile ??
46 //virtual void write ( void ) ;
47 void write ( void ) const ;
48 virtual void read ( void ) {} ;
49 // virtual void writeFrom ( void ) const ;
50 // virtual void read ( void ) ;
51 GENDRIVER * copy (void ) const ;
54 void writeMesh(MESH * myMesh) const ;
55 void writeSupport(SUPPORT * mySupport) const ;
56 void writeField(FIELD_ * myField,string name) const ;
62 #endif /* VTK_MED_DRIVER_HXX */