X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FDriverUNV%2FDriverUNV_R_SMESHDS_Mesh.cxx;h=752e786e436bdd5f1beaaaf6f5639e4bf3f370c6;hp=f687047d160352c9a2ad4d22ae348fad7f9f316b;hb=8d2ecd75b04ac82778c48882c4f19d4561be0985;hpb=4791f5b30ea7a9c1247aa551750dc71cb83b99aa diff --git a/src/DriverUNV/DriverUNV_R_SMESHDS_Mesh.cxx b/src/DriverUNV/DriverUNV_R_SMESHDS_Mesh.cxx index f687047d1..752e786e4 100644 --- a/src/DriverUNV/DriverUNV_R_SMESHDS_Mesh.cxx +++ b/src/DriverUNV/DriverUNV_R_SMESHDS_Mesh.cxx @@ -1,74 +1,56 @@ -// SMESH DriverUNV : driver to read and write 'unv' files -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : DriverUNV_R_SMESHDS_Mesh.cxx -// Module : SMESH - using namespace std; #include "DriverUNV_R_SMESHDS_Mesh.h" #include "DriverUNV_R_SMDS_Mesh.h" #include "utilities.h" -DriverUNV_R_SMESHDS_Mesh::DriverUNV_R_SMESHDS_Mesh() { -; +DriverUNV_R_SMESHDS_Mesh::DriverUNV_R_SMESHDS_Mesh() +{ + ; } -DriverUNV_R_SMESHDS_Mesh::~DriverUNV_R_SMESHDS_Mesh() { -; +DriverUNV_R_SMESHDS_Mesh::~DriverUNV_R_SMESHDS_Mesh() +{ + ; } -void DriverUNV_R_SMESHDS_Mesh::SetMesh(Handle(SMDS_Mesh)& aMesh) { - //myMesh = Handle(SMESHDS_Mesh)::DownCast(aMesh); - myMesh = aMesh; +void DriverUNV_R_SMESHDS_Mesh::SetMesh(SMDS_Mesh * aMesh) +{ + //myMesh = SMESHDS_Mesh *::DownCast(aMesh); + myMesh = aMesh; } -void DriverUNV_R_SMESHDS_Mesh::SetFile(string aFile) { - myFile = aFile; +void DriverUNV_R_SMESHDS_Mesh::SetFile(string aFile) +{ + myFile = aFile; } -void DriverUNV_R_SMESHDS_Mesh::SetFileId(FILE* aFileId) { - myFileId = aFileId; +void DriverUNV_R_SMESHDS_Mesh::SetFileId(FILE * aFileId) +{ + myFileId = aFileId; } -void DriverUNV_R_SMESHDS_Mesh::SetMeshId(int aMeshId) { - myMeshId = aMeshId; +void DriverUNV_R_SMESHDS_Mesh::SetMeshId(int aMeshId) +{ + myMeshId = aMeshId; } -void DriverUNV_R_SMESHDS_Mesh::Add() { - ; +void DriverUNV_R_SMESHDS_Mesh::Add() +{ + ; } -void DriverUNV_R_SMESHDS_Mesh::Read() { - string myClass = string("SMDS_Mesh"); - string myExtension = string("UNV"); +void DriverUNV_R_SMESHDS_Mesh::Read() +{ + string myClass = string("SMDS_Mesh"); + string myExtension = string("UNV"); - DriverUNV_R_SMDS_Mesh* myReader = new DriverUNV_R_SMDS_Mesh; + DriverUNV_R_SMDS_Mesh *myReader = new DriverUNV_R_SMDS_Mesh; - myReader->SetMesh(myMesh); - myReader->SetFile(myFile); - //myReader->SetFileId(myFileId); + myReader->SetMesh(myMesh); + myReader->SetFile(myFile); + //myReader->SetFileId(myFileId); - myReader->Read(); + myReader->Read(); }