Salome HOME
PR: merge from branch BR_UnitTests tag mergeto_trunk_17oct05
[modules/yacs.git] / src / SALOMEDS / SALOMEDS_AttributeTableOfInteger_i.hxx
1 //  File   : SALOMEDS_AttributeTableOfInteger_i.hxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5 #ifndef SALOMEDS_AttributeTableOfInteger_i_HeaderFile
6 #define SALOMEDS_AttributeTableOfInteger_i_HeaderFile
7
8 // IDL headers
9 #include <SALOMEconfig.h>
10 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
11
12 #include "SALOMEDS_GenericAttribute_i.hxx"
13 #include "SALOMEDSImpl_AttributeTableOfInteger.hxx"
14
15 class SALOMEDS_AttributeTableOfInteger_i: public virtual POA_SALOMEDS::AttributeTableOfInteger,
16                                           public virtual SALOMEDS_GenericAttribute_i 
17 {
18     
19 public:
20   
21   SALOMEDS_AttributeTableOfInteger_i(const Handle(SALOMEDSImpl_AttributeTableOfInteger)& theAttr, CORBA::ORB_ptr orb) 
22     :SALOMEDS_GenericAttribute_i(theAttr, orb) {}; 
23
24   ~SALOMEDS_AttributeTableOfInteger_i() {};
25
26   virtual void SetTitle(const char* theTitle);
27   virtual char* GetTitle();
28   virtual void SetRowTitle(CORBA::Long theIndex, const char* theTitle)
29     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
30   virtual void SetRowTitles(const SALOMEDS::StringSeq& theTitles)
31     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
32   virtual SALOMEDS::StringSeq* GetRowTitles();
33   virtual void SetColumnTitle(CORBA::Long theIndex, const char* theTitle)
34     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
35   virtual void SetColumnTitles(const SALOMEDS::StringSeq& theTitles)
36     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
37   virtual SALOMEDS::StringSeq* GetColumnTitles();
38
39   virtual void SetRowUnit(CORBA::Long theIndex, const char* theUnit)
40     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
41   virtual void SetRowUnits(const SALOMEDS::StringSeq& theUnits)
42     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
43   virtual SALOMEDS::StringSeq* GetRowUnits();
44
45   virtual CORBA::Long GetNbRows();
46   virtual CORBA::Long GetNbColumns();
47   virtual void AddRow(const SALOMEDS::LongSeq& theData)
48     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
49   virtual void SetRow(CORBA::Long theRow, const SALOMEDS::LongSeq& theData)
50     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength, SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
51   virtual SALOMEDS::LongSeq* GetRow(CORBA::Long theRow)
52     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
53   virtual void AddColumn(const SALOMEDS::LongSeq& theData)
54     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
55   virtual void SetColumn(CORBA::Long theColumn, const SALOMEDS::LongSeq& theData)
56     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength, SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
57   virtual SALOMEDS::LongSeq* GetColumn(CORBA::Long theColumn)
58     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
59   virtual void PutValue(CORBA::Long theValue, CORBA::Long theRow, CORBA::Long theColumn)
60     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
61   virtual CORBA::Boolean HasValue(CORBA::Long theRow, CORBA::Long theColumn);
62   virtual CORBA::Long GetValue(CORBA::Long theRow, CORBA::Long theColumn)
63     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
64
65   virtual SALOMEDS::LongSeq* GetRowSetIndices(CORBA::Long theRow);
66   virtual void SetNbColumns(CORBA::Long theNbColumns);
67
68   virtual bool ReadFromFile(const SALOMEDS::TMPFile& theStream);
69   virtual SALOMEDS::TMPFile* SaveToFile();
70 };
71
72 #endif