1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 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
23 // File : SALOMEDS_ChildIterator_i.cxx
24 // Author : Sergey RUIN
27 #include "SALOMEDS_ChildIterator_i.hxx"
28 #include "SALOMEDS_SObject_i.hxx"
29 #include "SALOMEDS.hxx"
30 #include "SALOMEDSImpl_SObject.hxx"
31 #include "SALOMEDSImpl_Study.hxx"
32 #include "utilities.h"
34 //============================================================================
35 /*! Function : constructor
38 //============================================================================
39 SALOMEDS_ChildIterator_i::SALOMEDS_ChildIterator_i(const SALOMEDSImpl_ChildIterator& theImpl,
41 : _it(theImpl.GetPersistentCopy())
43 SALOMEDS::Locker lock;
44 _orb = CORBA::ORB::_duplicate(orb);
47 //============================================================================
48 /*! Function : destructor
51 //============================================================================
52 SALOMEDS_ChildIterator_i::~SALOMEDS_ChildIterator_i()
57 //============================================================================
61 //============================================================================
62 void SALOMEDS_ChildIterator_i::Init()
64 SALOMEDS::Locker lock;
68 //============================================================================
72 //============================================================================
73 void SALOMEDS_ChildIterator_i::InitEx(CORBA::Boolean allLevels)
75 SALOMEDS::Locker lock;
76 _it->InitEx (allLevels);
79 //============================================================================
83 //============================================================================
84 CORBA::Boolean SALOMEDS_ChildIterator_i::More()
86 SALOMEDS::Locker lock;
90 //============================================================================
94 //============================================================================
95 void SALOMEDS_ChildIterator_i::Next()
97 SALOMEDS::Locker lock;
102 //============================================================================
106 //============================================================================
108 SALOMEDS::SObject_ptr SALOMEDS_ChildIterator_i::Value()
110 SALOMEDS::Locker lock;
111 SALOMEDSImpl_SObject aSO = _it->Value();
112 SALOMEDS::SObject_var so = SALOMEDS_SObject_i::New (aSO, _orb);