*/
HYDRODATA_EXPORT virtual bool CanRemove();
- /**
- * Returns unique integer identifier of the object (may be used for ordering of objects)
- */
- HYDRODATA_EXPORT inline int ID() const { return myLab.Tag(); }
-
/**
* Copies all properties of this to the destinated object.
* Objects must be the same type.
* \param theDestination initialized object (from any document) - target of copying
*/
- HYDRODATA_EXPORT void CopyTo( Handle_HYDROData_Entity theDestination ) const;
+ HYDRODATA_EXPORT void CopyTo( const Handle(HYDROData_Entity)& theDestination ) const;
/**
* Returns the label of this object.
QStringList& theScript,
const Handle(HYDROData_Entity)& theRefObject,
const QString& theMethod ) const;
+
+ /**
+ * Dump the initial object creation to a Python script.
+ * You should call it from DumpToPython implementation before
+ * dumping fields of the object.
+ */
+ QStringList dumpObjectCreation( MapOfTreatedObjects& theTreatedObjects ) const;
+
+ /**
+ * Returns an object type name as a string for dumping to Python.
+ */
+ QString HYDROData_Entity::getPyTypeID() const;
+
protected:
Handle(TDataStd_ReferenceList) getReferenceList( const int theTag,