Salome HOME
7fec24e58e88b765ec1ef5b41221000c7160eeb8
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_GenericAttribute_i.hxx
1 //  File      : SALOMEDS_GenericAttribute_i.hxx
2 //  Created   : Fri Jul 05 15:49:37 2002
3 //  Author    : Yves FRICAUD
4
5 //  Project   : SALOME
6 //  Module    : SALOMEDS
7 //  Copyright : Open CASCADE 2002
8 //  $Header$
9
10 #ifndef _GENERIC_ATTRIBUTE_I_HXX_
11 #define _GENERIC_ATTRIBUTE_I_HXX_
12
13 // IDL headers
14 #include <SALOMEconfig.h>
15 #include CORBA_SERVER_HEADER(SALOMEDS)
16 #include <TDF_Attribute.hxx>
17 #include "SALOMEDS_SObject_i.hxx"
18 #include "SALOMEDS_IORAttribute.hxx"
19
20 class SALOMEDS_GenericAttribute_i: public POA_SALOMEDS::GenericAttribute,
21                                    public PortableServer::RefCountServantBase {
22 protected:
23   Handle(TDF_Attribute) _myAttr;
24   CORBA::ORB_ptr        _myOrb;
25 public:
26   SALOMEDS_GenericAttribute_i() {};
27   
28   void CheckLocked() throw (SALOMEDS::GenericAttribute::LockProtection);
29   
30   ~SALOMEDS_GenericAttribute_i() {};
31
32 //  CORBA::Boolean  GetPtr(SALOMEDS::SObject_out so) {
33 //    SALOMEDS_SObject_i* sob_impl = new  SALOMEDS_SObject_i(_myAttr->Label(), _myOrb);
34 //    SALOMEDS::SObject_var sob = sob_impl->_this();
35 //    return sob._retn();
36 //  };
37
38
39 };
40
41 #endif