Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/kernel.git] / src / HDFPersist / test6.cxx
index e208ee1b2b4087827f6c760dd83261b0b2e2a021..5ec952c52e379f19a7dcb111cf5f30d2dbd70dcf 100644 (file)
@@ -1,4 +1,29 @@
-using namespace std;
+// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007  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.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//  File   : test6.cxx
+//  Module : SALOME
+//
 #include <iostream.h>
 #include "HDFOI.hxx"
 #include <stdlib.h>
@@ -35,10 +60,10 @@ int main()
       MESSAGE( "--> There are " << m << " objects in the group" );
       
       for (i=0;i<m;i++) 
-       {
-         geom->InternalObjectIndentify(i,name);
-         MESSAGE( "--> First Level Internal Object Name : " << name );
-       }        
+        {
+          geom->InternalObjectIndentify(i,name);
+          MESSAGE( "--> First Level Internal Object Name : " << name );
+        }        
 
       geom1 = new HDFgroup("GEOM_1",geom);
       MESSAGE( ">> The HDF group object is created for 'GEOM_1' with 'GEOM' as father" );
@@ -91,7 +116,7 @@ int main()
       MESSAGE( ">> The same operations have been done for the file 'mesh.hdf'" )
       MESSAGE( "   and the groups MESH_1 and MESH_2" )
       MESSAGE( "--> This file has been mounted on the group 'MESH' of the file 'study.hdf' ")
-             
+              
       study->CloseOnDisk();
       MESSAGE( ">> The study.hdf file is closed" );