X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHDFPersist%2Ftest3.cxx;h=e5583d024bbd90024b4dab97ee1e794fee1f7e3d;hb=cbeb1b9ad4789b0fe4ea7f8efcaf98f7f8fec2f6;hp=2daacd250ea7a011a48a68a26141a250461569e4;hpb=4655b0b0eb5345da6a86852021014b0cbae2ad30;p=modules%2Fkernel.git diff --git a/src/HDFPersist/test3.cxx b/src/HDFPersist/test3.cxx index 2daacd250..e5583d024 100644 --- a/src/HDFPersist/test3.cxx +++ b/src/HDFPersist/test3.cxx @@ -1,4 +1,29 @@ -using namespace std; +// 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 +// +// 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 #include "HDFOI.hxx" #include @@ -97,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 " );