X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=samples%2Fmfc%2Fstandard%2F06_Ocaf%2Fsrc%2FTOcafFunction_BoxDriver.cxx;h=40979bf567f98b3bc5271ab6f422303899ebf14a;hp=09f0069268b0de7e89c6fe55d05eee99beebb64b;hb=d7a28edad2489665b15c94d194b5e6359e64f0fc;hpb=7337535943c5be0b2ab318fbd560137454f20353 diff --git a/samples/mfc/standard/06_Ocaf/src/TOcafFunction_BoxDriver.cxx b/samples/mfc/standard/06_Ocaf/src/TOcafFunction_BoxDriver.cxx index 09f0069268..40979bf567 100755 --- a/samples/mfc/standard/06_Ocaf/src/TOcafFunction_BoxDriver.cxx +++ b/samples/mfc/standard/06_Ocaf/src/TOcafFunction_BoxDriver.cxx @@ -12,6 +12,8 @@ #include "BRepPrimAPI_MakeBox.hxx" #include "TNaming_Builder.hxx" +IMPLEMENT_STANDARD_RTTIEXT (TOcafFunction_BoxDriver, TFunction_Driver) + //======================================================================= //function : GetID //purpose : @@ -118,32 +120,3 @@ Standard_Integer TOcafFunction_BoxDriver::Execute(Handle(TFunction_Logbook)& /*l // If there are no any mistakes we return 0: return 0; } - -TOcafFunction_BoxDriver::~TOcafFunction_BoxDriver() {} - -// DownCast method -// allow safe downcasting -// -const Handle(TOcafFunction_BoxDriver) TOcafFunction_BoxDriver::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(TOcafFunction_BoxDriver) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(TOcafFunction_BoxDriver))) { - _anOtherObject = Handle(TOcafFunction_BoxDriver)::DownCast (AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& TOcafFunction_BoxDriver::DynamicType() const -{ - return STANDARD_TYPE(TOcafFunction_BoxDriver) ; -} -Standard_Boolean TOcafFunction_BoxDriver::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(TOcafFunction_BoxDriver) == AType || TFunction_Driver::IsKind(AType)); -} - - -