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"
22 Driver Vtk for MESH (only for writing).
24 Generic part : implement open and close methods.
27 class VTK_MESH_DRIVER : public GENDRIVER
32 ofstream * _vtkFile ; // The _vtkFile used to write Meshes and Fields to _filename
44 VTK_MESH_DRIVER(const string & fileName, MESH * ptrMesh) ;
48 VTK_MESH_DRIVER(const VTK_MESH_DRIVER & driver) ;
58 void openConst() const throw (MEDEXCEPTION);
59 void closeConst() const throw (MEDEXCEPTION);
61 void write( void ) const throw (MEDEXCEPTION) ;
62 void read ( void ) throw (MEDEXCEPTION) ;
65 Set the name of the MESH asked in file.
67 It could be different than the name of the MESH object.
69 void setMeshName(const string & meshName) ;
71 Get the name of the MESH asked in file.
73 string getMeshName() const ;
76 GENDRIVER * copy ( void ) const;
80 #endif /* VTK_MESH_DRIVER_HXX */