Salome HOME
ENV: Windows porting.
[modules/kernel.git] / src / SALOMEDSClient / SALOMEDSClient_AttributeTableOfString.hxx
1 //  File   : SALOMEDSClient_AttributeTableOfString.hxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5 #ifndef SALOMEDSClient_AttributeTableOfString_HeaderFile
6 #define SALOMEDSClient_AttributeTableOfString_HeaderFile
7
8 #include <vector>
9 #include <string>
10 #include "SALOMEDSClient_definitions.hxx" 
11 #include "SALOMEDSClient_GenericAttribute.hxx" 
12
13 class SALOMEDSClient_AttributeTableOfString: public virtual SALOMEDSClient_GenericAttribute
14 {    
15 public:
16
17   virtual void SetTitle(const std::string& theTitle) = 0;
18   virtual std::string GetTitle() = 0;
19   virtual void SetRowTitle(int theIndex, const std::string& theTitle) = 0;
20   virtual void SetRowTitles(const std::vector<std::string>& theTitles) = 0;
21   virtual std::vector<std::string> GetRowTitles() = 0;
22   virtual void SetColumnTitle(int theIndex, const std::string& theTitle) = 0;
23   virtual void SetColumnTitles(const std::vector<std::string>& theTitles) = 0;
24   virtual std::vector<std::string> GetColumnTitles() = 0; 
25
26   virtual void SetRowUnit(int theIndex, const std::string& theUnit) = 0;
27   virtual void SetRowUnits(const std::vector<std::string>& theUnits) = 0;
28   virtual std::vector<std::string> GetRowUnits() = 0;
29
30   virtual int GetNbRows() = 0;
31   virtual int GetNbColumns() = 0;
32   virtual void AddRow(const std::vector<std::string>& theData) = 0;
33   virtual void SetRow(int theRow, const std::vector<std::string>& theData) = 0;
34   virtual std::vector<std::string> GetRow(int theRow) = 0;
35   virtual void AddColumn(const std::vector<std::string>& theData) = 0;
36   virtual void SetColumn(int theColumn, const std::vector<std::string>& theData) = 0;
37   virtual std::vector<std::string> GetColumn(int theColumn) = 0;
38   virtual void PutValue(const std::string& theValue, int theRow, int theColumn) = 0;
39   virtual bool HasValue(int theRow, int theColumn) = 0;
40   virtual std::string GetValue(int theRow, int theColumn) = 0;
41
42   virtual std::vector<int> GetRowSetIndices(int theRow) = 0;
43   virtual void SetNbColumns(int theNbColumns) = 0;
44
45 };
46
47 #endif