1 // File : SALOMEDS_SObject_i.hxx
2 // Created : Wed Nov 28 16:25:50 2001
3 // Author : Yves FRICAUD
7 // Copyright : Open CASCADE 2001
10 #ifndef __SALOMEDS_SOBJECT_I_H__
11 #define __SALOMEDS_SOBJECT_I_H__
19 #include <SALOMEconfig.h>
20 #include CORBA_SERVER_HEADER(SALOMEDS)
23 #include <TDF_Label.hxx>
25 #include <TDF_Tool.hxx>
26 #include <TDF_Reference.hxx>
27 #include <Standard_GUID.hxx>
28 #include <Standard_NoSuchObject.hxx>
29 #include <TDataStd_Name.hxx>
30 #include <TDataStd_Comment.hxx>
31 #include <TDataStd_Integer.hxx>
32 #include <TDataStd_Real.hxx>
34 #include <TCollection_AsciiString.hxx>
36 class SALOMEDS_SObject_i: public POA_SALOMEDS::SObject,
37 public PortableServer::RefCountServantBase {
44 vector<string> _liste_ba_type;
48 SALOMEDS_SObject_i(const TDF_Label, CORBA::ORB_ptr);
50 ~SALOMEDS_SObject_i();
52 virtual char* GetID();
53 virtual SALOMEDS::SComponent_ptr GetFatherComponent();
54 virtual SALOMEDS::SObject_ptr GetFather() ;
55 virtual CORBA::Boolean FindAttribute(SALOMEDS::GenericAttribute_out anAttribute, const char* aTypeOfAttribute);
56 virtual CORBA::Boolean ReferencedObject(SALOMEDS::SObject_out obj) ;
57 virtual CORBA::Boolean FindSubObject(long atag, SALOMEDS::SObject_out obj );
59 virtual SALOMEDS::Study_ptr GetStudy() ;
61 virtual void Name(const char*);
62 virtual SALOMEDS::ListOfAttributes* GetAllAttributes();
65 virtual CORBA::Short Tag();
67 static char* AttributeIDToType(Standard_GUID);
69 static Standard_GUID ReturnGUIDForAttribute(const char* aTypeOfAttribute);