]> SALOME platform Git repositories - modules/kernel.git/blob - src/SALOMEDS/SALOMEDS_AttributeTableOfReal_i.hxx
Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeTableOfReal_i.hxx
1 //  File      : SALOMEDS_AttributeTableOfReal_i.hxx
2 //  Created   : Tue Oct  8 10:13:30 2002
3 //  Author    : Michael Ponikarov
4 //  Project   : SALOME
5 //  Module    : SALOMEDS
6 //  Copyright : Open CASCADE
7 //  $Header$
8
9
10 #ifndef SALOMEDS_AttributeTableOfReal_i_HeaderFile
11 #define SALOMEDS_AttributeTableOfReal_i_HeaderFile
12
13 // IDL headers
14 #include "SALOMEDS_TableOfRealAttribute.hxx"
15 #include <SALOMEconfig.h>
16 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
17 #include "SALOMEDS_GenericAttribute_i.hxx"
18
19 class SALOMEDS_AttributeTableOfReal_i: public virtual POA_SALOMEDS::AttributeTableOfReal,
20   public virtual SALOMEDS_GenericAttribute_i {
21     
22 public:
23   
24   SALOMEDS_AttributeTableOfReal_i(const Handle(SALOMEDS_TableOfRealAttribute)& theTableOfRealAttr, 
25                                      CORBA::ORB_ptr orb) 
26   {
27     _myOrb = CORBA::ORB::_duplicate(orb);
28     _myAttr = theTableOfRealAttr;
29   };
30   ~SALOMEDS_AttributeTableOfReal_i() {};
31
32  virtual void SetTitle(const char* theTitle);
33   virtual char* GetTitle();
34   virtual void SetRowTitle(CORBA::Long theIndex, const char* theTitle)
35     throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
36   virtual void SetRowTitles(const SALOMEDS::StringSeq& theTitles)
37     throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
38   virtual SALOMEDS::StringSeq* GetRowTitles();
39   virtual void SetColumnTitle(CORBA::Long theIndex, const char* theTitle)
40     throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
41   virtual void SetColumnTitles(const SALOMEDS::StringSeq& theTitles)
42     throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
43   virtual SALOMEDS::StringSeq* GetColumnTitles();
44
45   virtual void SetRowUnit(CORBA::Long theIndex, const char* theUnit)
46     throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
47   virtual void SetRowUnits(const SALOMEDS::StringSeq& theUnits)
48     throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
49   virtual SALOMEDS::StringSeq* GetRowUnits();
50
51   virtual CORBA::Long GetNbRows();
52   virtual CORBA::Long GetNbColumns();
53   virtual void AddRow(const SALOMEDS::DoubleSeq& theData)
54     throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
55   virtual void SetRow(CORBA::Long theRow, const SALOMEDS::DoubleSeq& theData)
56     throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength, SALOMEDS::AttributeTableOfReal::IncorrectIndex);
57   virtual SALOMEDS::DoubleSeq* GetRow(CORBA::Long theRow)
58     throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
59   virtual void AddColumn(const SALOMEDS::DoubleSeq& theData)
60     throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
61   virtual void SetColumn(CORBA::Long theColumn, const SALOMEDS::DoubleSeq& theData)
62     throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength, SALOMEDS::AttributeTableOfReal::IncorrectIndex);
63   virtual SALOMEDS::DoubleSeq* GetColumn(CORBA::Long theColumn)
64     throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
65   virtual void PutValue(CORBA::Double theValue, CORBA::Long theRow, CORBA::Long theColumn)
66     throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
67   virtual CORBA::Boolean HasValue(CORBA::Long theRow, CORBA::Long theColumn);
68   virtual CORBA::Double GetValue(CORBA::Long theRow, CORBA::Long theColumn)
69     throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
70
71   virtual SALOMEDS::LongSeq* GetRowSetIndices(CORBA::Long theRow);
72   virtual void SetNbColumns(CORBA::Long theNbColumns);
73
74   virtual bool ReadFromFile(const SALOMEDS::TMPFile& theStream);
75   virtual SALOMEDS::TMPFile* SaveToFile();
76 };
77
78 #endif