1 // File : SALOMEDS_AttributeTableOfReal_i.hxx
2 // Author : Michael Ponikarov
5 #ifndef SALOMEDS_AttributeTableOfReal_i_HeaderFile
6 #define SALOMEDS_AttributeTableOfReal_i_HeaderFile
9 #include <SALOMEconfig.h>
10 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
12 #include "SALOMEDS_GenericAttribute_i.hxx"
13 #include "SALOMEDSImpl_AttributeTableOfReal.hxx"
15 class SALOMEDS_AttributeTableOfReal_i: public virtual POA_SALOMEDS::AttributeTableOfReal,
16 public virtual SALOMEDS_GenericAttribute_i {
20 SALOMEDS_AttributeTableOfReal_i(const Handle(SALOMEDSImpl_AttributeTableOfReal)& theAttr, CORBA::ORB_ptr orb)
21 :SALOMEDS_GenericAttribute_i(theAttr, orb) {};
23 ~SALOMEDS_AttributeTableOfReal_i() {};
25 virtual void SetTitle(const char* theTitle);
26 virtual char* GetTitle();
27 virtual void SetRowTitle(CORBA::Long theIndex, const char* theTitle)
28 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
29 virtual void SetRowTitles(const SALOMEDS::StringSeq& theTitles)
30 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
31 virtual SALOMEDS::StringSeq* GetRowTitles();
32 virtual void SetColumnTitle(CORBA::Long theIndex, const char* theTitle)
33 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
34 virtual void SetColumnTitles(const SALOMEDS::StringSeq& theTitles)
35 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
36 virtual SALOMEDS::StringSeq* GetColumnTitles();
38 virtual void SetRowUnit(CORBA::Long theIndex, const char* theUnit)
39 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
40 virtual void SetRowUnits(const SALOMEDS::StringSeq& theUnits)
41 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
42 virtual SALOMEDS::StringSeq* GetRowUnits();
44 virtual CORBA::Long GetNbRows();
45 virtual CORBA::Long GetNbColumns();
46 virtual void AddRow(const SALOMEDS::DoubleSeq& theData)
47 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
48 virtual void SetRow(CORBA::Long theRow, const SALOMEDS::DoubleSeq& theData)
49 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength, SALOMEDS::AttributeTableOfReal::IncorrectIndex);
50 virtual SALOMEDS::DoubleSeq* GetRow(CORBA::Long theRow)
51 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
52 virtual void AddColumn(const SALOMEDS::DoubleSeq& theData)
53 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
54 virtual void SetColumn(CORBA::Long theColumn, const SALOMEDS::DoubleSeq& theData)
55 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength, SALOMEDS::AttributeTableOfReal::IncorrectIndex);
56 virtual SALOMEDS::DoubleSeq* GetColumn(CORBA::Long theColumn)
57 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
58 virtual void PutValue(CORBA::Double theValue, CORBA::Long theRow, CORBA::Long theColumn)
59 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
60 virtual CORBA::Boolean HasValue(CORBA::Long theRow, CORBA::Long theColumn);
61 virtual CORBA::Double GetValue(CORBA::Long theRow, CORBA::Long theColumn)
62 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
64 virtual SALOMEDS::LongSeq* GetRowSetIndices(CORBA::Long theRow);
65 virtual void SetNbColumns(CORBA::Long theNbColumns);
67 virtual bool ReadFromFile(const SALOMEDS::TMPFile& theStream);
68 virtual SALOMEDS::TMPFile* SaveToFile();