2 // File : SALOMEDS_ChildIterator_i.cxx
3 // Created : Wed Nov 28 16:15:25 2001
4 // Author : Yves FRICAUD
8 // Copyright : Open CASCADE 2001
11 #include "SALOMEDS_ChildIterator_i.hxx"
12 #include "SALOMEDS_SObject_i.hxx"
13 #include "utilities.h"
17 //============================================================================
18 /*! Function : constructor
21 //============================================================================
22 SALOMEDS_ChildIterator_i::SALOMEDS_ChildIterator_i(TDF_Label lab,
26 _orb = CORBA::ORB::_duplicate(orb);
30 //============================================================================
31 /*! Function : destructor
34 //============================================================================
35 SALOMEDS_ChildIterator_i::~SALOMEDS_ChildIterator_i()
39 //============================================================================
43 //============================================================================
44 void SALOMEDS_ChildIterator_i::Init()
46 _it.Initialize (_lab);
49 //============================================================================
53 //============================================================================
54 void SALOMEDS_ChildIterator_i::InitEx(CORBA::Boolean allLevels)
56 _it.Initialize (_lab, allLevels);
59 //============================================================================
63 //============================================================================
64 CORBA::Boolean SALOMEDS_ChildIterator_i::More()
69 //============================================================================
73 //============================================================================
74 void SALOMEDS_ChildIterator_i::Next()
80 //============================================================================
84 //============================================================================
86 SALOMEDS::SObject_ptr SALOMEDS_ChildIterator_i::Value()
88 TDF_Label L = _it.Value();
89 SALOMEDS_SObject_i * so_servant = new SALOMEDS_SObject_i (L,_orb);
90 SALOMEDS::SObject_var so = SALOMEDS::SObject::_narrow(so_servant->_this());