Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/kernel.git] / src / SALOMEDSImpl / SALOMEDSImpl_SComponentIterator.hxx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License.
8 // 
9 // This library is distributed in the hope that it will be useful 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public  
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20 //  File   : SALOMEDSImpl_SComponentIterator_i.hxx
21 //  Author : Sergey RUIN
22 //  Module : SALOME
23
24 #ifndef __SALOMEDSIMPL_SCOMPONENTITERATOR_H__
25 #define __SALOMEDSIMPL_SCOMPONENTITERATOR_H__
26
27
28 //SALOMEDSImpl headers
29 #include "SALOMEDSImpl_SComponent.hxx"
30
31 // Cascade headers
32 #include "DF_ChildIterator.hxx"
33 #include "DF_Label.hxx"
34 #include "DF_Document.hxx"
35 #include <stdio.h>
36
37 class Standard_EXPORT SALOMEDSImpl_SComponentIterator
38 {
39 private:
40
41   DF_ChildIterator        _it;
42   DF_Label                _lab;
43
44 public:
45   
46   SALOMEDSImpl_SComponentIterator(const SALOMEDSImpl_SComponentIterator& theIterator) 
47   {
48     _it = theIterator._it;
49     _lab = theIterator._lab;
50   } 
51
52   SALOMEDSImpl_SComponentIterator() {};
53   
54   SALOMEDSImpl_SComponentIterator(DF_Document* theDocument);
55  
56   ~SALOMEDSImpl_SComponentIterator() {};
57   
58   virtual void Init();
59   virtual bool More();
60   virtual void Next();
61   virtual SALOMEDSImpl_SComponent Value();  
62
63   SALOMEDSImpl_SComponentIterator* GetPersistentCopy() const;
64 };
65 #endif