Salome HOME
Merge br_enable_import_mesh. Enable import mesh and save/load SMESH study.
[modules/smesh.git] / src / Driver / Document_Reader.h
index 5c534c9c04b9028a3d18965253d49f74c81842d8..719665856e41efe11303f2e3663e840b991747e4 100644 (file)
@@ -1,4 +1,4 @@
-//  SMESH Driver : implementaion of driver for reading and writing     
+//  SMESH Driver : implementaion of driver for reading and writing  
 //
 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
 #define _INCLUDE_DOCUMENT_READER
 
 #include "SMESHDS_Document.hxx"
+#include "Mesh_Reader.h"
 #include <string>
 
-class Document_Reader {
-  
-  public :
-    virtual void Read() =0;
-    void SetFile(string);
-    void SetDocument(Handle(SMESHDS_Document)&);
+class Document_Reader
+{
+  public:
+       virtual void Read();
+       void SetFile(string);
+       void SetDocument(SMESHDS_Document *);
+       Document_Reader(Mesh_Reader*);
 
-  protected :
-    Handle_SMESHDS_Document myDocument;
-    string myFile; 
+  protected:
+       SMESHDS_Document * myDocument;
+       string myFile;
+
+  private:
+       Mesh_Reader* myReader;
 };
 #endif