From a042bed1751413edfb4731536bfde9cdcc451a13 Mon Sep 17 00:00:00 2001 From: Gordan Segon Date: Fri, 10 Oct 2025 14:07:03 +0200 Subject: [PATCH] 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 --- src/ApplicationFramework/TKLCAF/TFunction/TFunction_Logbook.cxx | 2 ++ src/ApplicationFramework/TKLCAF/TFunction/TFunction_Logbook.hxx | 2 ++ 2 files changed, 4 insertions(+) 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; -- 2.39.5