Salome HOME
SWP12966 - MutiFile is not saved correctly
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_SObject_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_SObject_i.hxx
21 //  Author : Sergey RUIN
22 //  Module : SALOME
23
24 #ifndef __SALOMEDS_SOBJECT_I_H__
25 #define __SALOMEDS_SOBJECT_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 // Cascade headers
36 #include "SALOMEDSImpl_SObject.hxx"
37
38 class Standard_EXPORT SALOMEDS_SObject_i: public virtual POA_SALOMEDS::SObject,
39                           public virtual PortableServer::RefCountServantBase,
40                           public virtual SALOME::GenericObj_i
41 {
42 protected:
43   CORBA::ORB_ptr                _orb;
44   Handle(SALOMEDSImpl_SObject)  _impl;
45
46 public:
47
48   static SALOMEDS::SObject_ptr New(const Handle(SALOMEDSImpl_SObject)&, CORBA::ORB_ptr); 
49   
50   SALOMEDS_SObject_i(const Handle(SALOMEDSImpl_SObject)&, CORBA::ORB_ptr);
51   
52   virtual ~SALOMEDS_SObject_i();
53   
54   virtual char* GetID();
55   virtual SALOMEDS::SComponent_ptr GetFatherComponent();
56   virtual SALOMEDS::SObject_ptr    GetFather() ;
57   virtual CORBA::Boolean FindAttribute(SALOMEDS::GenericAttribute_out anAttribute, const char* aTypeOfAttribute);
58   virtual CORBA::Boolean ReferencedObject(SALOMEDS::SObject_out obj) ;
59   virtual CORBA::Boolean FindSubObject(CORBA::Long atag, SALOMEDS::SObject_out obj );
60
61   virtual SALOMEDS::Study_ptr    GetStudy() ;
62   virtual char* Name();
63   virtual void  Name(const char*);
64   virtual SALOMEDS::ListOfAttributes* GetAllAttributes();
65
66   virtual CORBA::Object_ptr GetObject();
67
68   virtual char* GetName();
69   virtual char* GetComment();
70   virtual char* GetIOR();
71
72   virtual CORBA::Short Tag();
73   virtual CORBA::Short Depth();
74
75   virtual CORBA::Long GetLocalImpl(const char* theHostname, CORBA::Long thePID, CORBA::Boolean& isLocal);
76 };
77
78 #endif