Salome HOME
Copyrights update
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeTableOfInteger.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.hxx
21 //  Author : Sergey RUIN
22 //  Module : SALOME
23
24 #ifndef SALOMEDS_AttributeTableOfInteger_HeaderFile
25 #define SALOMEDS_AttributeTableOfInteger_HeaderFile
26
27 #include "SALOMEDSClient_AttributeTableOfInteger.hxx"
28 #include "SALOMEDS_GenericAttribute.hxx"
29 #include "SALOMEDSImpl_AttributeTableOfInteger.hxx"
30
31 // IDL headers
32 #include <SALOMEconfig.h>
33 #include CORBA_SERVER_HEADER(SALOMEDS)
34 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
35
36 #include <vector>
37
38 class SALOMEDS_AttributeTableOfInteger: public SALOMEDS_GenericAttribute, public SALOMEDSClient_AttributeTableOfInteger
39 {
40 public:  
41   SALOMEDS_AttributeTableOfInteger(const Handle(SALOMEDSImpl_AttributeTableOfInteger)& theAttr);
42   SALOMEDS_AttributeTableOfInteger(SALOMEDS::AttributeTableOfInteger_ptr theAttr);
43   ~SALOMEDS_AttributeTableOfInteger();
44
45   virtual void SetTitle(const std::string& theTitle);
46   virtual std::string GetTitle();
47   virtual void SetRowTitle(int theIndex, const std::string& theTitle);
48   virtual void SetRowTitles(const std::vector<std::string>& theTitles);
49   virtual std::vector<std::string> GetRowTitles();
50   virtual void SetColumnTitle(int theIndex, const std::string& theTitle);
51   virtual void SetColumnTitles(const std::vector<std::string>& theTitles);
52   virtual std::vector<std::string> GetColumnTitles();
53
54   virtual void SetRowUnit(int theIndex, const std::string& theUnit);
55   virtual void SetRowUnits(const std::vector<std::string>& theUnits);
56   virtual std::vector<std::string> GetRowUnits();
57
58   virtual int GetNbRows();
59   virtual int GetNbColumns();
60   virtual void AddRow(const std::vector<int>& theData);
61   virtual void SetRow(int theRow, const std::vector<int>& theData);
62   virtual std::vector<int> GetRow(int theRow);
63   virtual void AddColumn(const std::vector<int>& theData);
64   virtual void SetColumn(int theColumn, const std::vector<int>& theData);
65   virtual std::vector<int> GetColumn(int theColumn);
66   virtual void PutValue(int theValue, int theRow, int theColumn);
67   virtual bool HasValue(int theRow, int theColumn);
68   virtual int GetValue(int theRow, int theColumn);
69
70   virtual std::vector<int> GetRowSetIndices(int theRow);
71   virtual void SetNbColumns(int theNbColumns);    
72
73 };
74
75 #endif