Back to index

salome-kernel  6.5.0
SALOMEDS_AttributeFlags_i.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  File   : SALOMEDS_AttributeFlags_i.hxx
00024 //  Author : Sergey RUIN
00025 //  Module : SALOME
00026 //  $Header:
00027 //
00028 #ifndef SALOMEDS_AttributeFlags_i_HeaderFile
00029 #define SALOMEDS_AttributeFlags_i_HeaderFile
00030 
00031 // IDL headers
00032 
00033 #include <SALOMEconfig.h>
00034 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
00035 
00036 #include "SALOMEDS_GenericAttribute_i.hxx"
00037 #include "SALOMEDSImpl_AttributeFlags.hxx"
00038 
00039 /*
00040   Class       : SALOMEDS_AttributeFlags_i
00041   Description : This class is intended for storing different object attributes that
00042                 have only two states (0 and 1).
00043 
00044                 Avalable attributes:
00045 
00046                 IS_VISIBLE - is equal to 1 if object is visible in 3D view (0 - overwise).
00047                              This attribute is valid for active view only.
00048 */
00049 
00050 class SALOMEDS_AttributeFlags_i: public virtual POA_SALOMEDS::AttributeFlags,
00051                                  public virtual SALOMEDS_GenericAttribute_i
00052 {
00053 public:
00054   
00055                       SALOMEDS_AttributeFlags_i( SALOMEDSImpl_AttributeFlags* theAttr, CORBA::ORB_ptr orb )
00056                         :SALOMEDS_GenericAttribute_i(theAttr, orb) {};
00057 
00058   virtual             ~SALOMEDS_AttributeFlags_i() {};
00059 
00060   CORBA::Long         GetFlags();
00061   void                SetFlags( CORBA::Long theFlags );
00062 
00063   CORBA::Boolean      Get( CORBA::Long theFlag );
00064   void                Set( CORBA::Long theFlag, CORBA::Boolean theValue );
00065   
00066 };
00067 
00068 #endif