Salome HOME
755058cab651dd234992bbb43f6f6d345d7bd683
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeTableOfReal.hxx
1 //  File   : SALOMEDS_AttributeTableOfReal.hxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5 #ifndef SALOMEDS_AttributeTableOfReal_HeaderFile
6 #define SALOMEDS_AttributeTableOfReal_HeaderFile
7
8 #include "SALOMEDSClient_AttributeTableOfReal.hxx"
9 #include "SALOMEDS_GenericAttribute.hxx"
10 #include "SALOMEDSImpl_AttributeTableOfReal.hxx"
11
12 // IDL headers
13 #include <SALOMEconfig.h>
14 #include CORBA_SERVER_HEADER(SALOMEDS)
15 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
16
17 #include <vector>
18
19 class SALOMEDS_AttributeTableOfReal: public SALOMEDS_GenericAttribute, public SALOMEDSClient_AttributeTableOfReal
20 {
21 public:  
22   SALOMEDS_AttributeTableOfReal(const Handle(SALOMEDSImpl_AttributeTableOfReal)& theAttr);
23   SALOMEDS_AttributeTableOfReal(SALOMEDS::AttributeTableOfReal_ptr theAttr);
24   ~SALOMEDS_AttributeTableOfReal();
25
26   virtual void SetTitle(const std::string& theTitle);
27   virtual std::string GetTitle();
28   virtual void SetRowTitle(int theIndex, const std::string& theTitle);
29   virtual void SetRowTitles(const std::vector<std::string>& theTitles);
30   virtual std::vector<std::string> GetRowTitles();
31   virtual void SetColumnTitle(int theIndex, const std::string& theTitle);
32   virtual void SetColumnTitles(const std::vector<std::string>& theTitles);
33   virtual std::vector<std::string> GetColumnTitles();
34
35   virtual void SetRowUnit(int theIndex, const std::string& theUnit);
36   virtual void SetRowUnits(const std::vector<std::string>& theUnits);
37   virtual std::vector<std::string> GetRowUnits();
38
39   virtual int GetNbRows();
40   virtual int GetNbColumns();
41   virtual void AddRow(const std::vector<double>& theData);
42   virtual void SetRow(int theRow, const std::vector<double>& theData);
43   virtual std::vector<double> GetRow(int theRow);
44   virtual void AddColumn(const std::vector<double>& theData);
45   virtual void SetColumn(int theColumn, const std::vector<double>& theData);
46   virtual std::vector<double> GetColumn(int theColumn);
47   virtual void PutValue(double theValue, int theRow, int theColumn);
48   virtual bool HasValue(int theRow, int theColumn);
49   virtual double GetValue(int theRow, int theColumn);
50
51   virtual std::vector<int> GetRowSetIndices(int theRow);
52   virtual void SetNbColumns(int theNbColumns);    
53
54 };
55
56 #endif