+ operator<<(const SMESH::string_array& theArg);

This commit is contained in:
eap 2011-10-28 12:51:17 +00:00
parent 66bf37ad1a
commit edba852a43
2 changed files with 17 additions and 1 deletions

View 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)

View 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);