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.hxx
21 // Author : Sergey RUIN
24 #ifndef SALOMEDS_AttributeTableOfReal_HeaderFile
25 #define SALOMEDS_AttributeTableOfReal_HeaderFile
27 #include "SALOMEDSClient_AttributeTableOfReal.hxx"
28 #include "SALOMEDS_GenericAttribute.hxx"
29 #include "SALOMEDSImpl_AttributeTableOfReal.hxx"
32 #include <SALOMEconfig.h>
33 #include CORBA_SERVER_HEADER(SALOMEDS)
34 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
38 class SALOMEDS_AttributeTableOfReal: public SALOMEDS_GenericAttribute, public SALOMEDSClient_AttributeTableOfReal
41 SALOMEDS_AttributeTableOfReal(const Handle(SALOMEDSImpl_AttributeTableOfReal)& theAttr);
42 SALOMEDS_AttributeTableOfReal(SALOMEDS::AttributeTableOfReal_ptr theAttr);
43 ~SALOMEDS_AttributeTableOfReal();
45 virtual void SetTitle(const std::string& theTitle);
46 virtual std::string GetTitle();
47 virtual void SetRowTitle(int theIndex, const std::string& theTitle);
48 virtual void SetRowTitles(const std::vector<std::string>& theTitles);
49 virtual std::vector<std::string> GetRowTitles();
50 virtual void SetColumnTitle(int theIndex, const std::string& theTitle);
51 virtual void SetColumnTitles(const std::vector<std::string>& theTitles);
52 virtual std::vector<std::string> GetColumnTitles();
54 virtual void SetRowUnit(int theIndex, const std::string& theUnit);
55 virtual void SetRowUnits(const std::vector<std::string>& theUnits);
56 virtual std::vector<std::string> GetRowUnits();
58 virtual int GetNbRows();
59 virtual int GetNbColumns();
60 virtual void AddRow(const std::vector<double>& theData);
61 virtual void SetRow(int theRow, const std::vector<double>& theData);
62 virtual std::vector<double> GetRow(int theRow);
63 virtual void AddColumn(const std::vector<double>& theData);
64 virtual void SetColumn(int theColumn, const std::vector<double>& theData);
65 virtual std::vector<double> GetColumn(int theColumn);
66 virtual void PutValue(double theValue, int theRow, int theColumn);
67 virtual bool HasValue(int theRow, int theColumn);
68 virtual double GetValue(int theRow, int theColumn);
70 virtual std::vector<int> GetRowSetIndices(int theRow);
71 virtual void SetNbColumns(int theNbColumns);