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"
20 // This driver pilots within a VTK class read/write accesses of fields/meshes
21 class VTK_MED_DRIVER : public GENDRIVER
25 MED * const _ptrMed ; // Store 'VTK_DRIVER (0..n)----(1) VTK' associations
26 ofstream * _vtkFile ; // The _vtkFile used to write Meshes and Fields to _filename
31 //writeField(FIELD * myField) ;
32 //writeMesh(MESH * myMesh) ;
36 void openConst() const ;
37 void closeConst() const ;
40 VTK_MED_DRIVER(const string & fileName, MED * const ptrMed);
41 VTK_MED_DRIVER(const VTK_MED_DRIVER & driver);
43 // OPERATEUR DE RECOPIE AVEC _vtkFile ??
45 //virtual void write ( void ) ;
46 void write ( void ) const ;
47 virtual void read ( void ) {} ;
48 // virtual void writeFrom ( void ) const ;
49 // virtual void read ( void ) ;
50 GENDRIVER * copy (void ) const ;
53 void writeMesh(MESH * myMesh) const ;
54 void writeSupport(SUPPORT * mySupport) const ;
55 void writeField(FIELD_ * myField,string name) const ;
60 #endif /* VTK_MED_DRIVER_HXX */