Update to mach the changes in SMDS

This commit is contained in:
jrt 2003-09-04 10:56:52 +00:00
parent 8358c7288e
commit b7daa91df6
6 changed files with 50 additions and 49 deletions

View 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, // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@ -29,11 +29,12 @@ using namespace std;
#include "utilities.h" #include "utilities.h"
void Document_Reader::SetFile(string aFile) { void Document_Reader::SetFile(string aFile)
myFile = aFile; {
myFile = aFile;
} }
void Document_Reader::SetDocument(Handle(SMESHDS_Document)& aDoc) { void Document_Reader::SetDocument(SMESHDS_Document * aDoc)
myDocument = aDoc; {
myDocument = aDoc;
} }

View 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, // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@ -30,15 +30,15 @@
#include "SMESHDS_Document.hxx" #include "SMESHDS_Document.hxx"
#include <string> #include <string>
class Document_Reader { class Document_Reader
{
public : public:
virtual void Read() =0; virtual void Read() = 0;
void SetFile(string); void SetFile(string);
void SetDocument(Handle(SMESHDS_Document)&); void SetDocument(SMESHDS_Document *);
protected : protected:
Handle_SMESHDS_Document myDocument; SMESHDS_Document * myDocument;
string myFile; string myFile;
}; };
#endif #endif

View 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, // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@ -27,11 +27,12 @@
using namespace std; using namespace std;
#include "Document_Writer.h" #include "Document_Writer.h"
void Document_Writer::SetFile(string aFile) { void Document_Writer::SetFile(string aFile)
myFile = aFile; {
myFile = aFile;
} }
void Document_Writer::SetDocument(Handle(SMESHDS_Document)& aDoc) { void Document_Writer::SetDocument(SMESHDS_Document * aDoc)
myDocument = aDoc; {
myDocument = aDoc;
} }

View 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, // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@ -30,16 +30,15 @@
#include "SMESHDS_Document.hxx" #include "SMESHDS_Document.hxx"
#include <string> #include <string>
class Document_Writer { class Document_Writer
{
public : public:virtual void Write() = 0;
virtual void Write() =0; void SetFile(string);
void SetFile(string); void SetDocument(SMESHDS_Document *);
void SetDocument(Handle(SMESHDS_Document)&);
protected : protected: SMESHDS_Document * myDocument;
Handle_SMESHDS_Document myDocument; string myFile;
string myFile;
}; };
#endif #endif

View 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, // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@ -28,16 +28,16 @@
#define _INCLUDE_MESH_READER #define _INCLUDE_MESH_READER
#include <string> #include <string>
#include "Handle_SMDS_Mesh.hxx" #include "SMDS_Mesh.hxx"
class Mesh_Reader { class Mesh_Reader
{
public : public:virtual void Add() = 0;
virtual void Add() =0; virtual void Read() = 0;
virtual void Read() =0; virtual void SetMesh(SMDS_Mesh *) = 0;
virtual void SetMesh(Handle(SMDS_Mesh)&) =0; virtual void SetMeshId(int) = 0;
virtual void SetMeshId(int) =0; virtual void SetFile(string) = 0;
virtual void SetFile(string) =0;
}; };
#endif #endif

View 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, // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@ -28,16 +28,16 @@
#define _INCLUDE_MESH_WRITER #define _INCLUDE_MESH_WRITER
#include <string> #include <string>
#include "Handle_SMDS_Mesh.hxx" #include "SMDS_Mesh.hxx"
class Mesh_Writer { class Mesh_Writer
{
public : public:virtual void Add() = 0;
virtual void Add() =0; virtual void Write() = 0;
virtual void Write() =0; virtual void SetMesh(SMDS_Mesh *) = 0;
virtual void SetMesh(Handle(SMDS_Mesh)&) =0; virtual void SetFile(string) = 0;
virtual void SetFile(string) =0; virtual void SetMeshId(int) = 0;
virtual void SetMeshId(int) =0;
}; };
#endif #endif