1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : SALOMEDS_AttributeTableOfReal_i.hxx
21 // Author : Michael Ponikarov
24 #ifndef SALOMEDS_AttributeTableOfReal_i_HeaderFile
25 #define SALOMEDS_AttributeTableOfReal_i_HeaderFile
28 #include <SALOMEconfig.h>
29 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
31 #include "SALOMEDS_GenericAttribute_i.hxx"
32 #include "SALOMEDSImpl_AttributeTableOfReal.hxx"
34 class SALOMEDS_AttributeTableOfReal_i: public virtual POA_SALOMEDS::AttributeTableOfReal,
35 public virtual SALOMEDS_GenericAttribute_i {
39 SALOMEDS_AttributeTableOfReal_i(const Handle(SALOMEDSImpl_AttributeTableOfReal)& theAttr, CORBA::ORB_ptr orb)
40 :SALOMEDS_GenericAttribute_i(theAttr, orb) {};
42 ~SALOMEDS_AttributeTableOfReal_i() {};
44 virtual void SetTitle(const char* theTitle);
45 virtual char* GetTitle();
46 virtual void SetRowTitle(CORBA::Long theIndex, const char* theTitle)
47 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
48 virtual void SetRowTitles(const SALOMEDS::StringSeq& theTitles)
49 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
50 virtual SALOMEDS::StringSeq* GetRowTitles();
51 virtual void SetColumnTitle(CORBA::Long theIndex, const char* theTitle)
52 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
53 virtual void SetColumnTitles(const SALOMEDS::StringSeq& theTitles)
54 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
55 virtual SALOMEDS::StringSeq* GetColumnTitles();
57 virtual void SetRowUnit(CORBA::Long theIndex, const char* theUnit)
58 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
59 virtual void SetRowUnits(const SALOMEDS::StringSeq& theUnits)
60 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
61 virtual SALOMEDS::StringSeq* GetRowUnits();
63 virtual CORBA::Long GetNbRows();
64 virtual CORBA::Long GetNbColumns();
65 virtual void AddRow(const SALOMEDS::DoubleSeq& theData)
66 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
67 virtual void SetRow(CORBA::Long theRow, const SALOMEDS::DoubleSeq& theData)
68 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength, SALOMEDS::AttributeTableOfReal::IncorrectIndex);
69 virtual SALOMEDS::DoubleSeq* GetRow(CORBA::Long theRow)
70 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
71 virtual void AddColumn(const SALOMEDS::DoubleSeq& theData)
72 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
73 virtual void SetColumn(CORBA::Long theColumn, const SALOMEDS::DoubleSeq& theData)
74 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength, SALOMEDS::AttributeTableOfReal::IncorrectIndex);
75 virtual SALOMEDS::DoubleSeq* GetColumn(CORBA::Long theColumn)
76 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
77 virtual void PutValue(CORBA::Double theValue, CORBA::Long theRow, CORBA::Long theColumn)
78 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
79 virtual CORBA::Boolean HasValue(CORBA::Long theRow, CORBA::Long theColumn);
80 virtual CORBA::Double GetValue(CORBA::Long theRow, CORBA::Long theColumn)
81 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
83 virtual SALOMEDS::LongSeq* GetRowSetIndices(CORBA::Long theRow);
84 virtual void SetNbColumns(CORBA::Long theNbColumns);
86 virtual bool ReadFromFile(const SALOMEDS::TMPFile& theStream);
87 virtual SALOMEDS::TMPFile* SaveToFile();