Salome HOME
Merge branch 'V9_5_BR'
[modules/shaper.git] / src / ModelAPI / ModelAPI_AttributeTables.h
index 2534897851eb4e02eacdf67379071a8dd21797ed..574e181ffbf0b7d5883a357a3165306bffd7cec3 100644 (file)
@@ -1,8 +1,21 @@
-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-
-// File:        ModelAPI_AttributeTables.h
-// Created:     14 Nov 2016
-// Author:      Mikhail Ponikarov
+// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
+//
+// 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
+// version 2.1 of the License, or (at your option) any later version.
+//
+// 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
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 #ifndef ModelAPI_AttributeTables_H_
 #define ModelAPI_AttributeTables_H_
@@ -18,7 +31,7 @@
 ///
 /// The type of values can be changed. But all the values in the tables must have the same one
 /// type. The currently allowed types now are: Boolean, Integer, Double, String.
-/// By default there is only one table, but it may be increased/decreased by adding/removing 
+/// By default there is only one table, but it may be increased/decreased by adding/removing
 /// tables one by one.
 /// The number of rows and columns are equal in all tables. If table, row or column is added,
 /// the previous values are kept unchanged. New cells are filled by zero, false or empty strings.
@@ -63,6 +76,10 @@ public:
   MODELAPI_EXPORT virtual Value value(
     const int theRow, const int theColumn, const int theTable = 0) = 0;
 
+  /// Returns the value in the format of string (usefull for the python connection)
+  MODELAPI_EXPORT virtual std::string valueStr(
+    const int theRow, const int theColumn, const int theTable = 0) = 0;
+
   /// Returns the type of this class of attributes
   MODELAPI_EXPORT static std::string typeId()
   {