1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : SALOMEDS_SObject.hxx
21 // Author : Sergey RUIN
24 #ifndef __SALOMEDS_SOBJECT_H__
25 #define __SALOMEDS_SOBJECT_H__
30 #include <SALOMEDSClient.hxx>
33 #include <SALOMEconfig.h>
34 #include CORBA_SERVER_HEADER(SALOMEDS)
36 #include "SALOMEDSImpl_SObject.hxx"
38 class Standard_EXPORT SALOMEDS_SObject: public virtual SALOMEDSClient_SObject
43 SALOMEDSImpl_SObject* _local_impl;
44 SALOMEDS::SObject_var _corba_impl;
49 SALOMEDS_SObject(SALOMEDS::SObject_ptr theSObject);
50 SALOMEDS_SObject(const SALOMEDSImpl_SObject& theSObject);
51 virtual ~SALOMEDS_SObject();
53 virtual std::string GetID();
54 virtual _PTR(SComponent) GetFatherComponent();
55 virtual _PTR(SObject) GetFather();
56 virtual bool FindAttribute(_PTR(GenericAttribute)& anAttribute, const std::string& aTypeOfAttribute);
57 virtual bool ReferencedObject(_PTR(SObject)& theObject);
58 virtual bool FindSubObject(int theTag, _PTR(SObject)& theObject);
59 virtual _PTR(Study) GetStudy();
60 virtual std::string Name();
61 virtual void Name(const std::string& theName);
62 virtual std::vector<_PTR(GenericAttribute)> GetAllAttributes();
63 virtual std::string GetName();
64 virtual std::string GetComment();
65 virtual std::string GetIOR();
69 CORBA::Object_ptr GetObject();
70 SALOMEDS::SObject_ptr GetSObject();
72 SALOMEDS::SObject_ptr GetCORBAImpl() { return SALOMEDS::SObject::_duplicate(_corba_impl); }
73 SALOMEDSImpl_SObject* GetLocalImpl() { return _local_impl; }