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