1 #ifndef VTK_MESH_DRIVER_HXX
2 #define VTK_MESH_DRIVER_HXX
6 #include "MEDMEM_define.hxx"
7 #include "MEDMEM_GenDriver.hxx"
9 #include "MEDMEM_STRING.hxx"
10 #include "MEDMEM_Exception.hxx"
11 #include "utilities.h"
18 Driver Vtk for MESH (only for writing).
20 Generic part : implement open and close methods.
28 class VTK_MESH_DRIVER : public GENDRIVER
33 ofstream * _vtkFile ; // The _vtkFile used to write Meshes and Fields to _filename
45 VTK_MESH_DRIVER(const string & fileName, MESH * ptrMesh) ;
49 VTK_MESH_DRIVER(const VTK_MESH_DRIVER & driver) ;
59 void openConst() const throw (MEDEXCEPTION);
60 void closeConst() const throw (MEDEXCEPTION);
62 void write( void ) const throw (MEDEXCEPTION) ;
63 void read ( void ) throw (MEDEXCEPTION) ;
66 Set the name of the MESH asked in file.
68 It could be different than the name of the MESH object.
70 void setMeshName(const string & meshName) ;
72 Get the name of the MESH asked in file.
74 string getMeshName() const ;
77 GENDRIVER * copy ( void ) const;
82 #endif /* VTK_MESH_DRIVER_HXX */