Salome HOME
Python containers are no more supported
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeTableOfInteger.hxx
index 34e51b024359df112acc8d666d8d0f3f909fe161..9bf5ca8bed577b7a3c8a1e6c3be656774c65c94b 100644 (file)
@@ -1,26 +1,29 @@
-// Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-// 
+//
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either 
+// License as published by the Free Software Foundation; either
 // version 2.1 of the License.
-// 
-// This library is distributed in the hope that it will be useful 
-// but WITHOUT ANY WARRANTY; without even the implied warranty of 
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 // Lesser General Public License for more details.
 //
-// You should have received a copy of the GNU Lesser General Public  
-// License along with this library; if not, write to the Free Software 
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 //  File   : SALOMEDS_AttributeTableOfInteger.hxx
 //  Author : Sergey RUIN
 //  Module : SALOME
-
+//
 #ifndef SALOMEDS_AttributeTableOfInteger_HeaderFile
 #define SALOMEDS_AttributeTableOfInteger_HeaderFile
 
 class SALOMEDS_AttributeTableOfInteger: public SALOMEDS_GenericAttribute, public SALOMEDSClient_AttributeTableOfInteger
 {
 public:  
-  SALOMEDS_AttributeTableOfInteger(const Handle(SALOMEDSImpl_AttributeTableOfInteger)& theAttr);
+  SALOMEDS_AttributeTableOfInteger(SALOMEDSImpl_AttributeTableOfInteger* theAttr);
   SALOMEDS_AttributeTableOfInteger(SALOMEDS::AttributeTableOfInteger_ptr theAttr);
   ~SALOMEDS_AttributeTableOfInteger();
 
   virtual void SetTitle(const std::string& theTitle);
   virtual std::string GetTitle();
   virtual void SetRowTitle(int theIndex, const std::string& theTitle);
+  virtual std::string GetRowTitle(int theIndex);
   virtual void SetRowTitles(const std::vector<std::string>& theTitles);
   virtual std::vector<std::string> GetRowTitles();
   virtual void SetColumnTitle(int theIndex, const std::string& theTitle);
+  virtual std::string GetColumnTitle(int theIndex);
   virtual void SetColumnTitles(const std::vector<std::string>& theTitles);
   virtual std::vector<std::string> GetColumnTitles();
 
   virtual void SetRowUnit(int theIndex, const std::string& theUnit);
+  virtual std::string GetRowUnit(int theIndex);
   virtual void SetRowUnits(const std::vector<std::string>& theUnits);
   virtual std::vector<std::string> GetRowUnits();
 
@@ -66,10 +72,18 @@ public:
   virtual void PutValue(int theValue, int theRow, int theColumn);
   virtual bool HasValue(int theRow, int theColumn);
   virtual int GetValue(int theRow, int theColumn);
+  virtual void RemoveValue(int theRow, int theColumn);
 
   virtual std::vector<int> GetRowSetIndices(int theRow);
   virtual void SetNbColumns(int theNbColumns);    
 
+  virtual std::vector<int> SortRow(int theRow, SortOrder theOrder, SortPolicy thePolicy);
+  virtual std::vector<int> SortColumn(int theColumn, SortOrder theOrder, SortPolicy thePolicy);
+  virtual std::vector<int> SortByRow(int theRow, SortOrder theOrder, SortPolicy thePolicy);
+  virtual std::vector<int> SortByColumn(int theColumn, SortOrder theOrder, SortPolicy thePolicy);
+  virtual void SwapCells(int theRow1, int theColumn1, int theRow2, int theColumn2);
+  virtual void SwapRows(int theRow1, int theRow2);
+  virtual void SwapColumns(int theColumn1, int theColumn2);
 };
 
 #endif