{
}
-void HYDROData_Entity::CopyTo(Handle_HYDROData_Entity theDestination) const
+void HYDROData_Entity::CopyTo( const Handle(HYDROData_Entity)& theDestination ) const
{
TDF_CopyLabel aCopy(myLab, theDestination->Label());
aCopy.Perform();
*/
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.
Handle(HYDROData_Image) anImage3 =
Handle(HYDROData_Image)::DownCast(aDoc->CreateObject(KIND_IMAGE));
- CPPUNIT_ASSERT(anImage1->ID() != anImage2->ID());
- CPPUNIT_ASSERT(anImage2->ID() != anImage3->ID());
-
// check initially there is no references
CPPUNIT_ASSERT_EQUAL(anImage3->NbReferences(), 0);