1 // SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 // File : HDFcontainerObject.cc
31 #include "HDFcontainerObject.hxx"
32 #include "HDFexception.hxx"
33 //#include "utilities.h"
36 HDFcontainerObject::HDFcontainerObject(const char *name)
37 : HDFinternalObject(name)
44 HDFcontainerObject::~HDFcontainerObject()
46 HDFinternalObject *sonToDelete = 0;
49 sonToDelete = _firstson;
50 _firstson = _firstson->GetNextBrother();
51 // MESSAGE("son to delete: " << sonToDelete);
54 // MESSAGE("destruction: " << this);
57 int HDFcontainerObject::nInternalObjects()
62 void HDFcontainerObject::InternalObjectIndentify(int rank, char *object_name)
67 void HDFcontainerObject::AddSon(HDFinternalObject *son)
69 // MESSAGE("add son ") MESSAGE("add to this" << this);
70 // MESSAGE("add son " << son);
71 // MESSAGE("firstson " << _firstson);
72 // MESSAGE("lastson " << _lastson);
81 _lastson->SetNextBrother(son);
82 son->SetPreviousBrother(_lastson);
86 // MESSAGE("firstson " << _firstson);
87 // MESSAGE("lastson " << _lastson);
90 HDFinternalObject *HDFcontainerObject::GetFirstSon()
95 HDFinternalObject *HDFcontainerObject::GetLastSon()
100 int HDFcontainerObject::nSons()