1 // SALOME SALOMEDS : data structure of SALOME and sources of Salome data server
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : SALOMEDS_UseCaseIterator_i.cxx
8 // Author : Yves FRICAUD
12 #include "SALOMEDS_UseCaseIterator_i.hxx"
13 #include "SALOMEDS_SObject_i.hxx"
14 #include "utilities.h"
18 //============================================================================
19 /*! Function : constructor
22 //============================================================================
23 SALOMEDS_UseCaseIterator_i::SALOMEDS_UseCaseIterator_i(SALOMEDS_Study_i* theStudy,
24 const TDF_Label& theLabel,
25 const Standard_GUID& theGUID,
26 const Standard_Boolean theIsAllLevels):
28 _levels(theIsAllLevels),
31 if(theLabel.FindAttribute(_guid, _node)) {
32 _it.Initialize (_node, _levels);
36 //============================================================================
37 /*! Function : destructor
40 //============================================================================
41 SALOMEDS_UseCaseIterator_i::~SALOMEDS_UseCaseIterator_i()
45 //============================================================================
49 //============================================================================
50 void SALOMEDS_UseCaseIterator_i::Init(CORBA::Boolean allLevels)
52 _it.Initialize (_node, allLevels);
55 //============================================================================
59 //============================================================================
60 CORBA::Boolean SALOMEDS_UseCaseIterator_i::More()
65 //============================================================================
69 //============================================================================
70 void SALOMEDS_UseCaseIterator_i::Next()
76 //============================================================================
80 //============================================================================
82 SALOMEDS::SObject_ptr SALOMEDS_UseCaseIterator_i::Value()
84 TDF_Label L = _it.Value()->Label();
85 return SALOMEDS_SObject_i::NewRef(_study,L)._retn();