Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeParameter_i.hxx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License.
8 // 
9 // This library is distributed in the hope that it will be useful 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public  
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20 //  File   : SALOMEDS_AttributeParameter_i.hxx
21 //  Author : Sergey RUIN
22 //  Module : SALOME
23 //  $Header:
24
25 #ifndef SALOMEDS_AttributeParameter_i_HeaderFile
26 #define SALOMEDS_AttributeParameter_i_HeaderFile
27
28 // IDL headers
29 #include <SALOMEconfig.h>
30 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
31
32 #include "SALOMEDS_GenericAttribute_i.hxx"
33 #include "SALOMEDSImpl_AttributeParameter.hxx"
34
35 /*!
36  Class: SALOMEDS_AttributeParameter
37  Description : AttributeParameter is a universal container of basic types 
38 */
39
40 class SALOMEDS_AttributeParameter_i: public virtual POA_SALOMEDS::AttributeParameter,
41                                      public virtual SALOMEDS_GenericAttribute_i 
42 {
43 public:
44   
45   SALOMEDS_AttributeParameter_i(const Handle(SALOMEDSImpl_AttributeParameter)& theAttr, CORBA::ORB_ptr orb) 
46     :SALOMEDS_GenericAttribute_i(theAttr, orb) {}; 
47
48   ~SALOMEDS_AttributeParameter_i() {};
49
50
51   virtual void SetInt(const char* theID, CORBA::Long theValue);
52   virtual CORBA::Long GetInt(const char* theID);
53
54   virtual void SetReal(const char* theID, const CORBA::Double theValue);
55   virtual CORBA::Double GetReal(const char* theID);
56
57   virtual void SetString(const char* theID, const char* theValue);
58   virtual char* GetString(const char* theID);
59   
60   virtual void SetBool(const char* theID, CORBA::Boolean theValue);
61   virtual CORBA::Boolean GetBool(const char* theID);
62   
63   virtual void SetRealArray(const char* theID, const SALOMEDS::DoubleSeq& theArray);
64   virtual SALOMEDS::DoubleSeq* GetRealArray(const char* theID);
65
66   virtual void SetIntArray(const char* theID, const SALOMEDS::LongSeq& theArray);
67   virtual SALOMEDS::LongSeq* GetIntArray(const char* theID);
68
69   virtual void SetStrArray(const char* theID, const SALOMEDS::StringSeq& theArray);
70   virtual SALOMEDS::StringSeq* GetStrArray(const char* theID);
71   
72   virtual CORBA::Boolean IsSet(const char* theID, CORBA::Long theType);
73   
74   virtual CORBA::Boolean RemoveID(const char* theID, CORBA::Long theType);
75
76   virtual SALOMEDS::AttributeParameter_ptr GetFather();
77   virtual CORBA::Boolean HasFather();
78   virtual CORBA::Boolean IsRoot();
79
80   virtual void Clear();
81
82   virtual SALOMEDS::StringSeq* GetIDs(CORBA::Long theType);
83
84 };
85
86
87
88
89 #endif