2 #include "SMESHDriver.h"
8 #include "DriverMED_R_SMESHDS_Document.h"
9 #include "DriverMED_R_SMESHDS_Mesh.h"
10 #include "DriverMED_R_SMDS_Mesh.h"
11 #include "DriverMED_W_SMESHDS_Document.h"
12 #include "DriverMED_W_SMESHDS_Mesh.h"
13 #include "DriverMED_W_SMDS_Mesh.h"
15 #include "DriverDAT_R_SMESHDS_Document.h"
16 #include "DriverDAT_R_SMESHDS_Mesh.h"
17 #include "DriverDAT_R_SMDS_Mesh.h"
18 #include "DriverDAT_W_SMESHDS_Document.h"
19 #include "DriverDAT_W_SMESHDS_Mesh.h"
20 #include "DriverDAT_W_SMDS_Mesh.h"
23 Document_Reader* SMESHDriver::GetDocumentReader(string Extension, string Class) {
24 if (Extension==string("MED")) {
25 DriverMED_R_SMESHDS_Document* myDriver = new DriverMED_R_SMESHDS_Document();
28 else if (Extension==string("DAT")) {
29 DriverDAT_R_SMESHDS_Document* myDriver = new DriverDAT_R_SMESHDS_Document();
33 MESSAGE("No driver known for this extension");
34 return (Document_Reader*)NULL;
40 Document_Writer* SMESHDriver::GetDocumentWriter(string Extension, string Class) {
41 if (Extension==string("MED")) {
42 DriverMED_W_SMESHDS_Document* myDriver = new DriverMED_W_SMESHDS_Document();
45 else if (Extension==string("DAT")) {
46 DriverDAT_W_SMESHDS_Document* myDriver = new DriverDAT_W_SMESHDS_Document();
50 MESSAGE("No driver known for this extension");
51 return (Document_Writer*)NULL;
57 Mesh_Reader* SMESHDriver::GetMeshReader(string Extension, string Class) {
58 if (Extension==string("MED")) {
60 if (strcmp(Class.c_str(),"SMESHDS_Mesh")==0) {
61 DriverMED_R_SMESHDS_Mesh* myDriver = new DriverMED_R_SMESHDS_Mesh();
64 else if (strcmp(Class.c_str(),"SMDS_Mesh")==0) {
65 DriverMED_R_SMDS_Mesh* myDriver = new DriverMED_R_SMDS_Mesh();
70 else if (Extension==string("DAT")) {
72 if (strcmp(Class.c_str(),"SMESHDS_Mesh")==0) {
73 DriverDAT_R_SMESHDS_Mesh* myDriver = new DriverDAT_R_SMESHDS_Mesh();
76 else if (strcmp(Class.c_str(),"SMDS_Mesh")==0) {
77 DriverDAT_R_SMDS_Mesh* myDriver = new DriverDAT_R_SMDS_Mesh();
86 Mesh_Writer* SMESHDriver::GetMeshWriter(string Extension, string Class) {
87 if (Extension==string("MED")) {
89 if (strcmp(Class.c_str(),"SMESHDS_Mesh")==0) {
90 DriverMED_W_SMESHDS_Mesh* myDriver = new DriverMED_W_SMESHDS_Mesh();
93 else if (strcmp(Class.c_str(),"SMDS_Mesh")==0) {
94 DriverMED_W_SMDS_Mesh* myDriver = new DriverMED_W_SMDS_Mesh();
99 else if (Extension==string("DAT")) {
101 if (strcmp(Class.c_str(),"SMESHDS_Mesh")==0) {
102 DriverDAT_W_SMESHDS_Mesh* myDriver = new DriverDAT_W_SMESHDS_Mesh();
105 else if (strcmp(Class.c_str(),"SMDS_Mesh")==0) {
106 DriverDAT_W_SMDS_Mesh* myDriver = new DriverDAT_W_SMDS_Mesh();