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