Salome HOME
CCAR: import_hook.py was too strict in ensure_list (ImportError raised)
[modules/kernel.git] / src / HDFPersist / test3.cxx
index a1d61ba5ad6e728056b3c20d071ca67fd20ba818..e5583d024bbd90024b4dab97ee1e794fee1f7e3d 100644 (file)
@@ -1,33 +1,32 @@
-//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//  Copyright (C) 2007-2010  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
 //
-//  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.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//  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   : test3.cxx
 //  Module : SALOME
-
+//
 #include <iostream.h>
 #include "HDFOI.hxx"
 #include <stdlib.h>
-using namespace std;
 
 
 int main()
@@ -123,52 +122,52 @@ int main()
 
       MESSAGE( ">> File Exploration " );
       for (explorer->Init();explorer->More();explorer->Next())
-       {
-         object = explorer->Value();
-         MESSAGE( "--> Name of the object : " << object->GetName() );
-         switch (object->GetObjectType())
-           {
-           case HDF_FILE :
-             MESSAGE( "--> Type of the object : HDF_FILE : " );
-             break;
-
-           case HDF_GROUP :
-             MESSAGE( "--> Type of the object : HDF_GROUP : " );
-             break;
-
-           case HDF_DATASET :
-             MESSAGE( "--> Type of the object : HDF_DATASET : " );
-             break;
-
-           default :
-             MESSAGE( "--> PANIC !!! : " ); 
-           }
-       }
+        {
+          object = explorer->Value();
+          MESSAGE( "--> Name of the object : " << object->GetName() );
+          switch (object->GetObjectType())
+            {
+            case HDF_FILE :
+              MESSAGE( "--> Type of the object : HDF_FILE : " );
+              break;
+
+            case HDF_GROUP :
+              MESSAGE( "--> Type of the object : HDF_GROUP : " );
+              break;
+
+            case HDF_DATASET :
+              MESSAGE( "--> Type of the object : HDF_DATASET : " );
+              break;
+
+            default :
+              MESSAGE( "--> PANIC !!! : " ); 
+            }
+        }
       
       MESSAGE( ">> Group exploration" );
       explorer->Reset(hdf_group); 
       for (explorer->Init();explorer->More();explorer->Next())
-       {
-         object = explorer->Value();
-         MESSAGE( "--> Name of the object : " << object->GetName() );
-         switch (object->GetObjectType())
-           {
-           case HDF_FILE :
-             MESSAGE( "--> Type of the object : HDF_FILE : " );
-             break;
-
-           case HDF_GROUP :
-             MESSAGE( "--> Type of the object : HDF_GROUP : " );
-             break;
-
-           case HDF_DATASET :
-             MESSAGE( "--> Type of the object : HDF_DATASET : " );
-             break;
-
-           default :
-             MESSAGE( "--> !!! PANIC !!! : " );
-           }
-       }      
+        {
+          object = explorer->Value();
+          MESSAGE( "--> Name of the object : " << object->GetName() );
+          switch (object->GetObjectType())
+            {
+            case HDF_FILE :
+              MESSAGE( "--> Type of the object : HDF_FILE : " );
+              break;
+
+            case HDF_GROUP :
+              MESSAGE( "--> Type of the object : HDF_GROUP : " );
+              break;
+
+            case HDF_DATASET :
+              MESSAGE( "--> Type of the object : HDF_DATASET : " );
+              break;
+
+            default :
+              MESSAGE( "--> !!! PANIC !!! : " );
+            }
+        }      
       
       // memory clean
       MESSAGE( ">> MEMORY CLEAN " );