From: Gordan Segon Date: Fri, 10 Oct 2025 12:07:03 +0000 (+0200) Subject: Coding - Add RTTI support for TFunction_Logbook class (#741) X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=a042bed1751413edfb4731536bfde9cdcc451a13;p=occt.git Coding - Add RTTI support for TFunction_Logbook class (#741) - Added RTTI macro declarations and implementations for TFunction_Logbook - Improved type identification for debugging and error reporting --- diff --git a/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Logbook.cxx b/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Logbook.cxx index 5c039629e1..ecac6f3d0c 100644 --- a/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Logbook.cxx +++ b/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Logbook.cxx @@ -22,6 +22,8 @@ #include #include +IMPLEMENT_STANDARD_RTTIEXT(TFunction_Logbook, TDF_Attribute) + //======================================================================= // function : GetID // purpose : Static method to get an ID diff --git a/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Logbook.hxx b/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Logbook.hxx index 5e7e13b365..10dd439d05 100644 --- a/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Logbook.hxx +++ b/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Logbook.hxx @@ -116,6 +116,8 @@ public: //! Prints th data of the attributes (touched, impacted and valid labels). Standard_EXPORT virtual Standard_OStream& Dump(Standard_OStream& anOS) const Standard_OVERRIDE; + DEFINE_STANDARD_RTTIEXT(TFunction_Logbook, TDF_Attribute) + private: TDF_LabelMap myTouched; TDF_LabelMap myImpacted;