1 // File : SALOMEDSImpl_UseCaseIterator.cxx
5 #include "SALOMEDSImpl_UseCaseIterator.hxx"
6 #include "SALOMEDSImpl_SObject.hxx"
7 #include "SALOMEDSImpl_Study.hxx"
11 IMPLEMENT_STANDARD_HANDLE( SALOMEDSImpl_UseCaseIterator, MMgt_TShared )
12 IMPLEMENT_STANDARD_RTTIEXT( SALOMEDSImpl_UseCaseIterator, MMgt_TShared )
14 //============================================================================
15 /*! Function : constructor
18 //============================================================================
19 SALOMEDSImpl_UseCaseIterator::SALOMEDSImpl_UseCaseIterator(const TDF_Label& theLabel,
20 const Standard_GUID& theGUID,
22 :_guid(theGUID), _levels(allLevels)
24 if(theLabel.FindAttribute(_guid, _node)) {
25 _it.Initialize (_node, _levels);
29 //============================================================================
30 /*! Function : destructor
33 //============================================================================
34 SALOMEDSImpl_UseCaseIterator::~SALOMEDSImpl_UseCaseIterator()
38 //============================================================================
42 //============================================================================
43 void SALOMEDSImpl_UseCaseIterator::Init(bool allLevels)
45 _it.Initialize (_node, allLevels);
48 //============================================================================
52 //============================================================================
53 bool SALOMEDSImpl_UseCaseIterator::More()
58 //============================================================================
62 //============================================================================
63 void SALOMEDSImpl_UseCaseIterator::Next()
69 //============================================================================
73 //============================================================================
75 Handle(SALOMEDSImpl_SObject) SALOMEDSImpl_UseCaseIterator::Value()
77 TDF_Label L = _it.Value()->Label();
78 return SALOMEDSImpl_Study::SObject(L);