From 865bd882dcc88a45abd5a3bb4844f53df1359def Mon Sep 17 00:00:00 2001 From: ptv Date: Fri, 16 Dec 2005 10:58:37 +0000 Subject: [PATCH] migration to HDF persistance --- src/HDFPersistCopy/HDFPersistCopy.cxx | 43 ++++++++++++++++++++++++ src/HDFPersistCopy/HDFascii.cc | 2 +- src/HDFPersistCopy/HDFattribute.hxx | 4 ++- src/HDFPersistCopy/HDFcontainerObject.cc | 2 ++ src/HDFPersistCopy/HDFexplorer.hxx | 3 +- src/HDFPersistCopy/HDFobject.cc | 2 ++ 6 files changed, 53 insertions(+), 3 deletions(-) create mode 100755 src/HDFPersistCopy/HDFPersistCopy.cxx diff --git a/src/HDFPersistCopy/HDFPersistCopy.cxx b/src/HDFPersistCopy/HDFPersistCopy.cxx new file mode 100755 index 000000000..7d5eb5d96 --- /dev/null +++ b/src/HDFPersistCopy/HDFPersistCopy.cxx @@ -0,0 +1,43 @@ +// SALOME HDFPersist : implementation of HDF persitent ( save/ restore ) +// +// 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 : HDFPersistCopy.cxx +// Module : SALOME + + +// This file for WNT compilation in Microsoft Visual Studio only + +#ifdef WIN32 + +#include "HDFobject.cc" +#include "HDFinternalObject.cc" +#include "HDFattribute.cc" +#include "HDFcontainerObject.cc" +#include "HDFdataset.cc" +#include "HDFfile.cc" +#include "HDFgroup.cc" +#include "HDFexplorer.cc" +#include "HDFconvert.cc" +#include "HDFascii.cc" + +#endif diff --git a/src/HDFPersistCopy/HDFascii.cc b/src/HDFPersistCopy/HDFascii.cc index 1e0ee9f80..738506c36 100644 --- a/src/HDFPersistCopy/HDFascii.cc +++ b/src/HDFPersistCopy/HDFascii.cc @@ -319,7 +319,7 @@ void SaveDatasetInASCIIfile(HDFdataset *hdf_dataset, FILE* fp, int ident) #ifndef WNT for(unsigned j=0; jGetAttributeName(j); HDFattribute *hdf_attribute = new HDFattribute(name, hdf_dataset); diff --git a/src/HDFPersistCopy/HDFattribute.hxx b/src/HDFPersistCopy/HDFattribute.hxx index fb84a893e..beeeb6efd 100644 --- a/src/HDFPersistCopy/HDFattribute.hxx +++ b/src/HDFPersistCopy/HDFattribute.hxx @@ -34,7 +34,9 @@ extern "C" #include "HDFinternalObject.hxx" #include "HDFcontainerObject.hxx" -class HDFattribute : public HDFobject +#include + +class Standard_EXPORT HDFattribute : public HDFobject { private : HDFinternalObject *_father; diff --git a/src/HDFPersistCopy/HDFcontainerObject.cc b/src/HDFPersistCopy/HDFcontainerObject.cc index 1a84b1db1..327d1acf6 100644 --- a/src/HDFPersistCopy/HDFcontainerObject.cc +++ b/src/HDFPersistCopy/HDFcontainerObject.cc @@ -30,8 +30,10 @@ extern "C" } #include "HDFcontainerObject.hxx" #include "HDFexception.hxx" +#ifndef WIN32 #include "utilities.h" using namespace std; +#endif HDFcontainerObject::HDFcontainerObject(char *name) : HDFinternalObject(name) diff --git a/src/HDFPersistCopy/HDFexplorer.hxx b/src/HDFPersistCopy/HDFexplorer.hxx index 8c1523576..4b283e170 100644 --- a/src/HDFPersistCopy/HDFexplorer.hxx +++ b/src/HDFPersistCopy/HDFexplorer.hxx @@ -29,8 +29,9 @@ #include "HDFinternalObject.hxx" #include "HDFcontainerObject.hxx" +#include -class HDFexplorer { +class Standard_EXPORT HDFexplorer { private : int _size; HDFcontainerObject *_container; diff --git a/src/HDFPersistCopy/HDFobject.cc b/src/HDFPersistCopy/HDFobject.cc index 28b87a63f..9d98360cc 100644 --- a/src/HDFPersistCopy/HDFobject.cc +++ b/src/HDFPersistCopy/HDFobject.cc @@ -30,8 +30,10 @@ extern "C" #include "hdfi.h" #include } +#ifndef WIN32 #include "utilities.h" using namespace std; +#endif HDFobject::HDFobject(char *name) { -- 2.39.2