From b7daa91df6fddbc6236595a75d3ce735e1359aa1 Mon Sep 17 00:00:00 2001 From: jrt Date: Thu, 4 Sep 2003 10:56:52 +0000 Subject: [PATCH] Update to mach the changes in SMDS --- src/Driver/Document_Reader.cxx | 13 +++++++------ src/Driver/Document_Reader.h | 20 ++++++++++---------- src/Driver/Document_Writer.cxx | 13 +++++++------ src/Driver/Document_Writer.h | 17 ++++++++--------- src/Driver/Mesh_Reader.h | 18 +++++++++--------- src/Driver/Mesh_Writer.h | 18 +++++++++--------- 6 files changed, 50 insertions(+), 49 deletions(-) diff --git a/src/Driver/Document_Reader.cxx b/src/Driver/Document_Reader.cxx index df54fbf55..26dcf1450 100644 --- a/src/Driver/Document_Reader.cxx +++ b/src/Driver/Document_Reader.cxx @@ -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 @@ -29,11 +29,12 @@ using namespace std; #include "utilities.h" -void Document_Reader::SetFile(string aFile) { - myFile = aFile; +void Document_Reader::SetFile(string aFile) +{ + myFile = aFile; } -void Document_Reader::SetDocument(Handle(SMESHDS_Document)& aDoc) { - myDocument = aDoc; +void Document_Reader::SetDocument(SMESHDS_Document * aDoc) +{ + myDocument = aDoc; } - diff --git a/src/Driver/Document_Reader.h b/src/Driver/Document_Reader.h index 5c534c9c0..2766466c2 100644 --- a/src/Driver/Document_Reader.h +++ b/src/Driver/Document_Reader.h @@ -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 @@ -30,15 +30,15 @@ #include "SMESHDS_Document.hxx" #include -class Document_Reader { - - public : - virtual void Read() =0; - void SetFile(string); - void SetDocument(Handle(SMESHDS_Document)&); +class Document_Reader +{ + public: + virtual void Read() = 0; + void SetFile(string); + void SetDocument(SMESHDS_Document *); - protected : - Handle_SMESHDS_Document myDocument; - string myFile; + protected: + SMESHDS_Document * myDocument; + string myFile; }; #endif diff --git a/src/Driver/Document_Writer.cxx b/src/Driver/Document_Writer.cxx index 2d723f123..8704c1284 100644 --- a/src/Driver/Document_Writer.cxx +++ b/src/Driver/Document_Writer.cxx @@ -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 @@ -27,11 +27,12 @@ using namespace std; #include "Document_Writer.h" -void Document_Writer::SetFile(string aFile) { - myFile = aFile; +void Document_Writer::SetFile(string aFile) +{ + myFile = aFile; } -void Document_Writer::SetDocument(Handle(SMESHDS_Document)& aDoc) { - myDocument = aDoc; +void Document_Writer::SetDocument(SMESHDS_Document * aDoc) +{ + myDocument = aDoc; } - diff --git a/src/Driver/Document_Writer.h b/src/Driver/Document_Writer.h index a326b92b6..4aea9605c 100644 --- a/src/Driver/Document_Writer.h +++ b/src/Driver/Document_Writer.h @@ -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 @@ -30,16 +30,15 @@ #include "SMESHDS_Document.hxx" #include -class Document_Writer { +class Document_Writer +{ - public : - virtual void Write() =0; - void SetFile(string); - void SetDocument(Handle(SMESHDS_Document)&); + public:virtual void Write() = 0; + void SetFile(string); + void SetDocument(SMESHDS_Document *); - protected : - Handle_SMESHDS_Document myDocument; - string myFile; + protected: SMESHDS_Document * myDocument; + string myFile; }; #endif diff --git a/src/Driver/Mesh_Reader.h b/src/Driver/Mesh_Reader.h index 95602c31e..251f2bb9d 100644 --- a/src/Driver/Mesh_Reader.h +++ b/src/Driver/Mesh_Reader.h @@ -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 @@ -28,16 +28,16 @@ #define _INCLUDE_MESH_READER #include -#include "Handle_SMDS_Mesh.hxx" +#include "SMDS_Mesh.hxx" -class Mesh_Reader { +class Mesh_Reader +{ - public : - virtual void Add() =0; - virtual void Read() =0; - virtual void SetMesh(Handle(SMDS_Mesh)&) =0; - virtual void SetMeshId(int) =0; - virtual void SetFile(string) =0; + public:virtual void Add() = 0; + virtual void Read() = 0; + virtual void SetMesh(SMDS_Mesh *) = 0; + virtual void SetMeshId(int) = 0; + virtual void SetFile(string) = 0; }; #endif diff --git a/src/Driver/Mesh_Writer.h b/src/Driver/Mesh_Writer.h index dc5333dbb..e382f27b6 100644 --- a/src/Driver/Mesh_Writer.h +++ b/src/Driver/Mesh_Writer.h @@ -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 @@ -28,16 +28,16 @@ #define _INCLUDE_MESH_WRITER #include -#include "Handle_SMDS_Mesh.hxx" +#include "SMDS_Mesh.hxx" -class Mesh_Writer { +class Mesh_Writer +{ - public : - virtual void Add() =0; - virtual void Write() =0; - virtual void SetMesh(Handle(SMDS_Mesh)&) =0; - virtual void SetFile(string) =0; - virtual void SetMeshId(int) =0; + public:virtual void Add() = 0; + virtual void Write() = 0; + virtual void SetMesh(SMDS_Mesh *) = 0; + virtual void SetFile(string) = 0; + virtual void SetMeshId(int) = 0; }; #endif -- 2.39.2