Back to index

salome-kernel  6.5.0
SALOMEDS_AttributeTableOfString_i.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  File   : SALOMEDS_AttributeTableOfString_i.hxx
00024 //  Author : Sergey RUIN
00025 //  Module : SALOME
00026 //
00027 #ifndef SALOMEDS_AttributeTableOfString_i_HeaderFile
00028 #define SALOMEDS_AttributeTableOfString_i_HeaderFile
00029 
00030 // IDL headers
00031 #include <SALOMEconfig.h>
00032 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
00033 
00034 #include "SALOMEDS_GenericAttribute_i.hxx"
00035 #include "SALOMEDSImpl_AttributeTableOfString.hxx"
00036 
00037 class SALOMEDS_AttributeTableOfString_i: public virtual POA_SALOMEDS::AttributeTableOfString,
00038   public virtual SALOMEDS_GenericAttribute_i {
00039     
00040 public:
00041   
00042   SALOMEDS_AttributeTableOfString_i(SALOMEDSImpl_AttributeTableOfString* theAttr, CORBA::ORB_ptr orb) 
00043     :SALOMEDS_GenericAttribute_i(theAttr, orb) {}; 
00044 
00045   ~SALOMEDS_AttributeTableOfString_i() {};
00046 
00047   virtual void SetTitle(const char* theTitle);
00048   virtual char* GetTitle();
00049   virtual void SetRowTitle(CORBA::Long theIndex, const char* theTitle)
00050     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00051   virtual char* GetRowTitle(CORBA::Long theIndex)
00052     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00053   virtual void SetRowTitles(const SALOMEDS::StringSeq& theTitles)
00054     throw (SALOMEDS::AttributeTable::IncorrectArgumentLength);
00055   virtual SALOMEDS::StringSeq* GetRowTitles();
00056   virtual void SetColumnTitle(CORBA::Long theIndex, const char* theTitle)
00057     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00058   virtual char* GetColumnTitle(CORBA::Long theIndex)
00059     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00060   virtual void SetColumnTitles(const SALOMEDS::StringSeq& theTitles)
00061     throw (SALOMEDS::AttributeTable::IncorrectArgumentLength);
00062   virtual SALOMEDS::StringSeq* GetColumnTitles();
00063 
00064   virtual void SetRowUnit(CORBA::Long theIndex, const char* theUnit)
00065     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00066   virtual char* GetRowUnit(CORBA::Long theIndex)
00067     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00068   virtual void SetRowUnits(const SALOMEDS::StringSeq& theUnits)
00069     throw (SALOMEDS::AttributeTable::IncorrectArgumentLength);
00070   virtual SALOMEDS::StringSeq* GetRowUnits();
00071 
00072   virtual CORBA::Long GetNbRows();
00073   virtual CORBA::Long GetNbColumns();
00074   virtual void AddRow(const SALOMEDS::StringSeq& theData)
00075     throw (SALOMEDS::AttributeTable::IncorrectArgumentLength);
00076   virtual void SetRow(CORBA::Long theRow, const SALOMEDS::StringSeq& theData)
00077     throw (SALOMEDS::AttributeTable::IncorrectArgumentLength, SALOMEDS::AttributeTable::IncorrectIndex);
00078   virtual SALOMEDS::StringSeq* GetRow(CORBA::Long theRow)
00079     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00080   virtual void AddColumn(const SALOMEDS::StringSeq& theData)
00081     throw (SALOMEDS::AttributeTable::IncorrectArgumentLength);
00082   virtual void SetColumn(CORBA::Long theColumn, const SALOMEDS::StringSeq& theData)
00083     throw (SALOMEDS::AttributeTable::IncorrectArgumentLength, SALOMEDS::AttributeTable::IncorrectIndex);
00084   virtual SALOMEDS::StringSeq* GetColumn(CORBA::Long theColumn)
00085     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00086   virtual void PutValue(const char* theValue, CORBA::Long theRow, CORBA::Long theColumn)
00087     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00088   virtual CORBA::Boolean HasValue(CORBA::Long theRow, CORBA::Long theColumn);
00089   virtual char* GetValue(CORBA::Long theRow, CORBA::Long theColumn)
00090     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00091   virtual void RemoveValue(CORBA::Long theRow, CORBA::Long theColumn)
00092     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00093 
00094   virtual SALOMEDS::LongSeq* GetRowSetIndices(CORBA::Long theRow);
00095   virtual void SetNbColumns(CORBA::Long theNbColumns);
00096 
00097   virtual SALOMEDS::LongSeq* SortRow(CORBA::Long theRow, SALOMEDS::AttributeTable::SortOrder sortOrder, 
00098                                      SALOMEDS::AttributeTable::SortPolicy sortPolicy)
00099     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00100   virtual SALOMEDS::LongSeq* SortColumn(CORBA::Long theColumn, SALOMEDS::AttributeTable::SortOrder sortOrder, 
00101                                         SALOMEDS::AttributeTable::SortPolicy sortPolicy)
00102     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00103   virtual SALOMEDS::LongSeq* SortByRow(CORBA::Long theRow, SALOMEDS::AttributeTable::SortOrder sortOrder, 
00104                                        SALOMEDS::AttributeTable::SortPolicy sortPolicy)
00105     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00106   virtual SALOMEDS::LongSeq* SortByColumn(CORBA::Long theColumn, SALOMEDS::AttributeTable::SortOrder sortOrder, 
00107                                           SALOMEDS::AttributeTable::SortPolicy sortPolicy)
00108     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00109 
00110   virtual void SwapCells(CORBA::Long theRow1, CORBA::Long theColumn1,
00111                       CORBA::Long theRow2, CORBA::Long theColumn2)
00112     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00113   virtual void SwapRows(CORBA::Long theRow1, CORBA::Long theRow2)
00114     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00115   virtual void SwapColumns(CORBA::Long theColumn1, CORBA::Long theColumn2)
00116     throw (SALOMEDS::AttributeTable::IncorrectIndex);
00117 
00118   virtual bool ReadFromFile(const SALOMEDS::TMPFile& theStream);
00119   virtual SALOMEDS::TMPFile* SaveToFile();
00120 };
00121 
00122 #endif