]> OCCT Git - occt.git/commitdiff
Coding - Add RTTI support for TFunction_Logbook class (#741)
authorGordan Segon <gsegon@finitemagnetics.com>
Fri, 10 Oct 2025 12:07:03 +0000 (14:07 +0200)
committerGitHub <noreply@github.com>
Fri, 10 Oct 2025 12:07:03 +0000 (13:07 +0100)
- Added RTTI macro declarations and implementations for TFunction_Logbook
- Improved type identification for debugging and error reporting

src/ApplicationFramework/TKLCAF/TFunction/TFunction_Logbook.cxx
src/ApplicationFramework/TKLCAF/TFunction/TFunction_Logbook.hxx

index 5c039629e1cff8beb2b4a9e11381b49e6570e5ef..ecac6f3d0c4710dc9ba67f99495b87b803aea326 100644 (file)
@@ -22,6 +22,8 @@
 #include <TFunction_Logbook.hxx>
 #include <Standard_GUID.hxx>
 
+IMPLEMENT_STANDARD_RTTIEXT(TFunction_Logbook, TDF_Attribute)
+
 //=======================================================================
 // function : GetID
 // purpose  : Static method to get an ID
index 5e7e13b365e9ff9593b17a5a9541302253938d41..10dd439d055a84db36abcfea4f2d4c2a9413a186 100644 (file)
@@ -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;