Salome HOME
+ operator<<(const SMESH::string_array& theArg);
authoreap <eap@opencascade.com>
Fri, 28 Oct 2011 12:51:17 +0000 (12:51 +0000)
committereap <eap@opencascade.com>
Fri, 28 Oct 2011 12:51:17 +0000 (12:51 +0000)
src/SMESH_I/SMESH_DumpPython.cxx
src/SMESH_I/SMESH_PythonDump.hxx

index 013824fc8ed01552084021f5fadd20341e4e32e0..680d724eb25d810e87ab77d13f9275d807c74472 100644 (file)
@@ -178,6 +178,19 @@ namespace SMESH
     return *this;
   }
 
+  TPythonDump&
+  TPythonDump::operator<<(const SMESH::string_array& theArray)
+  {
+    myStream << "[ ";
+    for (int i = 1; i <= theArray.length(); i++) {
+      myStream << "'" << theArray[i-1] << "'";
+      if ( i < theArray.length() )
+        myStream << ", ";
+    }
+    myStream << " ]";
+    return *this;
+  }
+
   TPythonDump&
   TPythonDump::
   operator<<(SALOMEDS::SObject_ptr aSObject)
index 8233241dccdee823c71c7bc4b0e98bf0d3cbf679..f641e29835a9be94604f5d7ba0050057eea85ea9 100644 (file)
@@ -38,7 +38,7 @@ class Resource_DataMapOfAsciiStringAsciiString;
 
 // ===========================================================================================
 /*!
- * \brief Tool converting SMESH engine calls into commands defined in smesh.py
+ * \brief Tool converting SMESH engine calls into commands defined in smeshDC.py
  *
  * Implementation is in SMESH_2smeshpy.cxx
  */
@@ -119,6 +119,9 @@ namespace SMESH
     TPythonDump&
     operator<<(const SMESH::double_array& theArg);
 
+    TPythonDump&
+    operator<<(const SMESH::string_array& theArg);
+
     TPythonDump&
     operator<<(SMESH::SMESH_Hypothesis_ptr theArg);