TDataStd_Name::Set(myLab, TCollection_ExtendedString(theName.toLatin1().constData()));
}
-QStringList HYDROData_Entity::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const
+QStringList HYDROData_Entity::DumpToPython( const QString& thePyScriptPath,
+ MapOfTreatedObjects& theTreatedObjects ) const
{
QStringList anEmptyList;
return anEmptyList;
for ( ; anIter.More(); anIter.Next() )
{
Handle(HYDROData_Entity) anObject = anIter.Current();
+ if( anObject.IsNull() )
+ continue;
HYDROData_SequenceOfObjects aRefSeq = anObject->GetAllReferenceObjects();
for ( int i = 1, n = aRefSeq.Length(); i <= n; ++i )
{
}
}
-void HYDROData_Entity::setPythonReferenceObject( MapOfTreatedObjects& theTreatedObjects,
+void HYDROData_Entity::setPythonReferenceObject( const QString& thePyScriptPath,
+ MapOfTreatedObjects& theTreatedObjects,
QStringList& theScript,
const Handle(HYDROData_Entity)& theRefObject,
const QString& theMethod ) const
{
- if ( !checkObjectPythonDefinition( theTreatedObjects, theScript, theRefObject ) )
+ if ( !checkObjectPythonDefinition( thePyScriptPath, theTreatedObjects, theScript, theRefObject ) )
return;
QString aRefObjName = theRefObject->GetObjPyName();
.arg( anObjName ).arg( theMethod ).arg( aRefObjName );
}
-bool HYDROData_Entity::checkObjectPythonDefinition( MapOfTreatedObjects& theTreatedObjects,
+bool HYDROData_Entity::checkObjectPythonDefinition( const QString& thePyScriptPath,
+ MapOfTreatedObjects& theTreatedObjects,
QStringList& theScript,
const Handle(HYDROData_Entity)& theRefObject ) const
{
return true;
// The definition of reference object must be dumped before this
- QStringList aRefObjDump = theRefObject->DumpToPython( theTreatedObjects );
+ QStringList aRefObjDump = theRefObject->DumpToPython( thePyScriptPath, theTreatedObjects );
if ( aRefObjDump.isEmpty() )
return false;