Salome HOME
NRI : Remove dependence with VISU.
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_SObject_i.hxx
1 //  File      : SALOMEDS_SObject_i.hxx
2 //  Created   : Wed Nov 28 16:25:50 2001
3 //  Author    : Yves FRICAUD
4
5 //  Project   : SALOME
6 //  Module    : SALOMEDS
7 //  Copyright : Open CASCADE 2001
8 //  $Header$
9
10 #ifndef __SALOMEDS_SOBJECT_I_H__
11 #define __SALOMEDS_SOBJECT_I_H__
12
13 // std C++ headers
14 #include <iostream.h>
15 #include <vector>
16 #include <string>
17
18 // IDL headers
19 #include <SALOMEconfig.h>
20 #include CORBA_SERVER_HEADER(SALOMEDS)
21
22 // Cascade headers
23 #include <TDF_Label.hxx>
24 #include <stdio.h>
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>
33
34 #include <TCollection_AsciiString.hxx>
35
36 class SALOMEDS_SObject_i: public POA_SALOMEDS::SObject,
37                           public PortableServer::RefCountServantBase {
38 protected:
39   CORBA::ORB_ptr           _orb;
40   TDF_Label                _lab;
41   char*                    _name;  
42   char*                    _value;
43   char*                    _type;
44   vector<string>           _liste_ba_type;
45
46 public:
47   
48   SALOMEDS_SObject_i(const TDF_Label, CORBA::ORB_ptr);
49   
50   ~SALOMEDS_SObject_i();
51   
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 );
58
59   virtual SALOMEDS::Study_ptr    GetStudy() ;
60   virtual char* Name();
61   virtual void  Name(const char*);
62   virtual SALOMEDS::ListOfAttributes* GetAllAttributes();
63
64
65   virtual CORBA::Short Tag();
66
67   static char* AttributeIDToType(Standard_GUID);
68   
69   static Standard_GUID           ReturnGUIDForAttribute(const char* aTypeOfAttribute);
70
71 };
72 #endif