1 // File : SALOMEDS_AttributeTableOfInteger_i.hxx
2 // Author : Sergey RUIN
5 #ifndef SALOMEDS_AttributeTableOfInteger_i_HeaderFile
6 #define SALOMEDS_AttributeTableOfInteger_i_HeaderFile
9 #include <SALOMEconfig.h>
10 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
12 #include "SALOMEDS_GenericAttribute_i.hxx"
13 #include "SALOMEDSImpl_AttributeTableOfInteger.hxx"
15 class SALOMEDS_AttributeTableOfInteger_i: public virtual POA_SALOMEDS::AttributeTableOfInteger,
16 public virtual SALOMEDS_GenericAttribute_i
21 SALOMEDS_AttributeTableOfInteger_i(const Handle(SALOMEDSImpl_AttributeTableOfInteger)& theAttr, CORBA::ORB_ptr orb)
22 :SALOMEDS_GenericAttribute_i(theAttr, orb) {};
24 ~SALOMEDS_AttributeTableOfInteger_i() {};
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();
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();
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);
65 virtual SALOMEDS::LongSeq* GetRowSetIndices(CORBA::Long theRow);
66 virtual void SetNbColumns(CORBA::Long theNbColumns);
68 virtual bool ReadFromFile(const SALOMEDS::TMPFile& theStream);
69 virtual SALOMEDS::TMPFile* SaveToFile();