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