SMESH_IDSource can be not-published object

+    operator<<(SMESH::SMESH_IDSource_ptr theArg);
This commit is contained in:
eap 2010-03-19 14:56:03 +00:00
parent 43cfddbeaa
commit 8a6ef93bb1
2 changed files with 16 additions and 0 deletions

View File

@ -221,6 +221,19 @@ namespace SMESH
return *this;
}
TPythonDump&
TPythonDump::
operator<<(SMESH::SMESH_IDSource_ptr theArg)
{
SMESH_Gen_i* aSMESHGen = SMESH_Gen_i::GetSMESHGen();
SALOMEDS::Study_var aStudy = aSMESHGen->GetCurrentStudy();
SALOMEDS::SObject_var aSObject = SMESH_Gen_i::ObjectToSObject(aStudy,theArg);
if(!aSObject->_is_nil())
return *this << aSObject;
SMESH::long_array_var anElementsId = theArg->GetIDs();
return *this << anElementsId;
}
TPythonDump&
TPythonDump::
operator<<(SMESH::FilterLibrary_i* theArg)

View File

@ -120,6 +120,9 @@ namespace SMESH
TPythonDump&
operator<<(SMESH::SMESH_Hypothesis_ptr theArg);
TPythonDump&
operator<<(SMESH::SMESH_IDSource_ptr theArg);
TPythonDump&
operator<<(SALOMEDS::SObject_ptr theArg);