Salome HOME
PR: merge from branch BR_UnitTests tag mergeto_trunk_17oct05
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeFlags_i.hxx
1 //  File   : SALOMEDS_AttributeFlags_i.hxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4 //  $Header:
5
6 #ifndef SALOMEDS_AttributeFlags_i_HeaderFile
7 #define SALOMEDS_AttributeFlags_i_HeaderFile
8
9 // IDL headers
10
11 #include <SALOMEconfig.h>
12 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
13
14 #include "SALOMEDS_GenericAttribute_i.hxx"
15 #include "SALOMEDSImpl_AttributeFlags.hxx"
16
17 /*
18   Class       : SALOMEDS_AttributeFlags_i
19   Description : This class is intended for storing different object attributes that
20                 have only two states (0 and 1).
21
22                 Avalable attributes:
23
24                 IS_VISIBLE - is equal to 1 if object is visible in 3D view (0 - overwise).
25                              This attribute is valid for active view only.
26 */
27
28 class SALOMEDS_AttributeFlags_i: public virtual POA_SALOMEDS::AttributeFlags,
29                                  public virtual SALOMEDS_GenericAttribute_i
30 {
31 public:
32   
33                       SALOMEDS_AttributeFlags_i( const Handle(SALOMEDSImpl_AttributeFlags)& theAttr, CORBA::ORB_ptr orb )
34                         :SALOMEDS_GenericAttribute_i(theAttr, orb) {};
35
36   virtual             ~SALOMEDS_AttributeFlags_i() {};
37
38   CORBA::Long         GetFlags();
39   void                SetFlags( CORBA::Long theFlags );
40
41   CORBA::Boolean      Get( CORBA::Long theFlag );
42   void                Set( CORBA::Long theFlag, CORBA::Boolean theValue );
43   
44 };
45
46 #endif