Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef DRIVERFACTORY_HXX
00024 #define DRIVERFACTORY_HXX
00025
00026 #include <MEDMEM.hxx>
00027
00028 #include "MEDMEM_MedVersion.hxx"
00029 #include "MEDMEM_GenDriver.hxx"
00030 #include "MEDMEM_define.hxx"
00031
00032 #include "MEDMEM_FieldForward.hxx"
00033
00034 #include <string>
00035
00036 namespace MEDMEM {
00037
00038 class GMESH;
00039
00040 class GENDRIVER;
00041
00042 namespace DRIVERFACTORY {
00043
00044 MEDMEM_EXPORT extern bool globalVtkBinaryFormatForWriting;
00045
00046 MEDMEM_EXPORT bool getVtkBinaryFormatForWriting();
00047
00048 MEDMEM_EXPORT void setVtkBinaryFormatForWriting(bool isBinary);
00049
00050 MEDMEM_EXPORT driverTypes deduceDriverTypeFromFileName(const std::string & fileName);
00051
00052 driverTypes deduceDriverTypeFromFileName(const std::string & fileName);
00053
00054 MEDMEM_EXPORT GENDRIVER * buildDriverForMesh(driverTypes driverType,
00055 const std::string & fileName,
00056 GMESH *mesh,const string & driverName,
00057 MED_EN::med_mode_acces access);
00058
00059 template<class T, class INTERLACING_TAG>
00060 GENDRIVER * buildDriverForField(driverTypes driverType,
00061 const std::string & fileName,
00062 FIELD<T,INTERLACING_TAG> *fielde,
00063 MED_EN::med_mode_acces access);
00064 MEDMEM_EXPORT GENDRIVER * buildMeshDriverFromFile(const string & fileName,
00065 GMESH * ptrMesh,
00066 MED_EN::med_mode_acces access);
00067 template<class T, class INTERLACING_TAG>
00068 GENDRIVER * buildFieldDriverFromFile(const string & fileName,
00069 FIELD<T,INTERLACING_TAG> * ptrField,
00070 MED_EN::med_mode_acces access);
00071 MEDMEM_EXPORT GENDRIVER * buildConcreteMedDriverForMesh(const std::string & fileName,
00072 GMESH *mesh,
00073 const string & driverName,
00074 MED_EN::med_mode_acces access,
00075 MED_EN::medFileVersion version);
00076 template<class T, class INTERLACING_TAG>
00077 GENDRIVER * buildConcreteMedDriverForField(const std::string & fileName,
00078 FIELD<T,INTERLACING_TAG> *fielde,
00079 MED_EN::med_mode_acces access,
00080 MED_EN::medFileVersion version);
00081 }
00082 }
00083
00084 #include"MEDMEM_DriverFactory.ixx"
00085
00086 #endif