Salome HOME
dba9faad69e02795ac86f5a80212e4e5afe590ca
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_SComponentIterator_i.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   : SALOMEDS_SComponentIterator_i.hxx
21 //  Author : Sergey RUIN
22 //  Module : SALOME
23
24 #ifndef __SALOMEDS_SCOMPONENTITERATOR_I_H__
25 #define __SALOMEDS_SCOMPONENTITERATOR_I_H__
26
27 // std C++ headers
28 #include <iostream>
29
30 // IDL headers
31 #include <SALOMEconfig.h>
32 #include CORBA_SERVER_HEADER(SALOMEDS)
33 #include <SALOME_GenericObj_i.hh>
34
35 //SALOMEDS headers
36 #include "SALOMEDS_SComponent_i.hxx"
37 #include "SALOMEDSImpl_SComponentIterator.hxx"
38
39 class SALOMEDS_SComponentIterator_i:public virtual POA_SALOMEDS::SComponentIterator,
40                                     public virtual PortableServer::RefCountServantBase,
41                                     public virtual SALOME::GenericObj_i 
42 {
43
44 private:
45
46   CORBA::ORB_ptr                  _orb;
47   SALOMEDSImpl_SComponentIterator _impl;
48
49 public:
50   
51   SALOMEDS_SComponentIterator_i(const SALOMEDSImpl_SComponentIterator& theImpl, CORBA::ORB_ptr);
52   
53   ~SALOMEDS_SComponentIterator_i();
54   
55   virtual void Init();
56   virtual CORBA::Boolean More();
57   virtual void Next();
58   virtual SALOMEDS::SComponent_ptr Value();  
59 };
60 #endif