Handle(My_Class)

Hi,

Just wondering if anyone could guide me on creating smart pointers (Handle) of my own classes inheriting from cascade classes.

Thanks,
Canuck

Forum supervisor's picture

Hello,

To define a handle class, use macros DECLARE_STANDARD_HANDLE() and IMPLEMENT_STANDARD_HANDLE() defined in Standard_DefineMacro.hxx.
To provide CASCADE RTTI, use DEFINE_STANDARD_RTTI() and IMPLEMENT_STANDARD_RTTIEXT().

Best regards,
Forum Supervisor