Salome HOME
merge from branch BR_V5_DEV
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeTableOfInteger_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_AttributeTableOfInteger_i.hxx
23 //  Author : Sergey RUIN
24 //  Module : SALOME
25 //
26 #ifndef SALOMEDS_AttributeTableOfInteger_i_HeaderFile
27 #define SALOMEDS_AttributeTableOfInteger_i_HeaderFile
28
29 // IDL headers
30 #include <SALOMEconfig.h>
31 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
32
33 #include "SALOMEDS_GenericAttribute_i.hxx"
34 #include "SALOMEDSImpl_AttributeTableOfInteger.hxx"
35
36 class SALOMEDS_AttributeTableOfInteger_i: public virtual POA_SALOMEDS::AttributeTableOfInteger,
37                                           public virtual SALOMEDS_GenericAttribute_i 
38 {
39     
40 public:
41   
42   SALOMEDS_AttributeTableOfInteger_i(SALOMEDSImpl_AttributeTableOfInteger* theAttr, CORBA::ORB_ptr orb) 
43     :SALOMEDS_GenericAttribute_i(theAttr, orb) {}; 
44
45   ~SALOMEDS_AttributeTableOfInteger_i() {};
46
47   virtual void SetTitle(const char* theTitle);
48   virtual char* GetTitle();
49   virtual void SetRowTitle(CORBA::Long theIndex, const char* theTitle)
50     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
51   virtual void SetRowTitles(const SALOMEDS::StringSeq& theTitles)
52     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
53   virtual SALOMEDS::StringSeq* GetRowTitles();
54   virtual void SetColumnTitle(CORBA::Long theIndex, const char* theTitle)
55     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
56   virtual void SetColumnTitles(const SALOMEDS::StringSeq& theTitles)
57     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
58   virtual SALOMEDS::StringSeq* GetColumnTitles();
59
60   virtual void SetRowUnit(CORBA::Long theIndex, const char* theUnit)
61     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
62   virtual void SetRowUnits(const SALOMEDS::StringSeq& theUnits)
63     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
64   virtual SALOMEDS::StringSeq* GetRowUnits();
65
66   virtual CORBA::Long GetNbRows();
67   virtual CORBA::Long GetNbColumns();
68   virtual void AddRow(const SALOMEDS::LongSeq& theData)
69     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
70   virtual void SetRow(CORBA::Long theRow, const SALOMEDS::LongSeq& theData)
71     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength, SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
72   virtual SALOMEDS::LongSeq* GetRow(CORBA::Long theRow)
73     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
74   virtual void AddColumn(const SALOMEDS::LongSeq& theData)
75     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
76   virtual void SetColumn(CORBA::Long theColumn, const SALOMEDS::LongSeq& theData)
77     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength, SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
78   virtual SALOMEDS::LongSeq* GetColumn(CORBA::Long theColumn)
79     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
80   virtual void PutValue(CORBA::Long theValue, CORBA::Long theRow, CORBA::Long theColumn)
81     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
82   virtual CORBA::Boolean HasValue(CORBA::Long theRow, CORBA::Long theColumn);
83   virtual CORBA::Long GetValue(CORBA::Long theRow, CORBA::Long theColumn)
84     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
85
86   virtual SALOMEDS::LongSeq* GetRowSetIndices(CORBA::Long theRow);
87   virtual void SetNbColumns(CORBA::Long theNbColumns);
88
89   virtual bool ReadFromFile(const SALOMEDS::TMPFile& theStream);
90   virtual SALOMEDS::TMPFile* SaveToFile();
91 };
92
93 #endif