1 // File : SALOMEDS_SObject.hxx
2 // Author : Sergey RUIN
5 #ifndef __SALOMEDS_SOBJECT_H__
6 #define __SALOMEDS_SOBJECT_H__
11 #include <SALOMEDSClient.hxx>
14 #include <SALOMEconfig.h>
15 #include CORBA_SERVER_HEADER(SALOMEDS)
17 #include "SALOMEDS_SObject_i.hxx"
18 #include "SALOMEDSImpl_SObject.hxx"
20 class SALOMEDS_SObject: public virtual SALOMEDSClient_SObject
25 Handle(SALOMEDSImpl_SObject) _local_impl;
26 SALOMEDS::SObject_var _corba_impl;
31 SALOMEDS_SObject(SALOMEDS::SObject_ptr theSObject);
32 SALOMEDS_SObject(const Handle(SALOMEDSImpl_SObject)& theSObject);
33 virtual ~SALOMEDS_SObject();
35 virtual std::string GetID();
36 virtual _PTR(SComponent) GetFatherComponent();
37 virtual _PTR(SObject) GetFather();
38 virtual bool FindAttribute(_PTR(GenericAttribute)& anAttribute, const std::string& aTypeOfAttribute);
39 virtual bool ReferencedObject(_PTR(SObject)& theObject);
40 virtual bool FindSubObject(int theTag, _PTR(SObject)& theObject);
41 virtual _PTR(Study) GetStudy();
42 virtual std::string Name();
43 virtual void Name(const std::string& theName);
44 virtual vector<_PTR(GenericAttribute)> GetAllAttributes();
45 virtual std::string GetName();
46 virtual std::string GetComment();
47 virtual std::string GetIOR();
51 CORBA::Object_ptr GetObject();
52 SALOMEDS::SObject_ptr GetSObject();
54 SALOMEDS::SObject_ptr GetCORBAImpl() { return SALOMEDS::SObject::_duplicate(_corba_impl); }
55 Handle(SALOMEDSImpl_SObject) GetLocalImpl() { return _local_impl; }