1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

Foundation Classes - Update type declaration #232

Refactor type handling in BinMDataStd and Interface modules;
update RTTI implementations in StepVisual and XCAFDoc
This commit is contained in:
dpasukhi 2025-01-04 11:06:47 +00:00
parent 6d28546add
commit 9e3e17d41e
6 changed files with 7 additions and 9 deletions

View File

@ -45,10 +45,9 @@ Handle(TDF_Attribute) BinMDataStd_GenericExtStringDriver::NewEmpty() const
//function : SourceType
//purpose :
//=======================================================================
Handle(Standard_Type)& BinMDataStd_GenericExtStringDriver::SourceType() const
const Handle(Standard_Type)& BinMDataStd_GenericExtStringDriver::SourceType() const
{
static Handle(Standard_Type) aSourceType = Standard_Type::Instance<TDataStd_GenericExtString>();
return aSourceType;
return Standard_Type::Instance<TDataStd_GenericExtString>();
}
//=======================================================================

View File

@ -38,7 +38,7 @@ public:
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
Standard_EXPORT virtual Handle(Standard_Type)& SourceType() const Standard_OVERRIDE;
Standard_EXPORT virtual const Handle(Standard_Type)& SourceType() const Standard_OVERRIDE;
//! persistent -> transient (retrieve)
Standard_EXPORT Standard_Boolean Paste (const BinObjMgt_Persistent& Source, const Handle(TDF_Attribute)& Target, BinObjMgt_RRelocationTable& RelocTable) const Standard_OVERRIDE;

View File

@ -44,8 +44,7 @@ static NCollection_DataMap<TCollection_AsciiString, Handle(Standard_Transient)>
static const Handle(Standard_Type)& typerep()
{
static Handle(Standard_Type) tr = STANDARD_TYPE(Interface_ReportEntity);
return tr;
return STANDARD_TYPE(Interface_ReportEntity);
}

View File

@ -14,7 +14,7 @@
#include <StepVisual_CoordinatesList.hxx>
#include <StepVisual_TessellatedItem.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_CoordinatesList,StepGeom_TessellatedItem)
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_CoordinatesList, StepVisual_TessellatedItem)
StepVisual_CoordinatesList::StepVisual_CoordinatesList () {}

View File

@ -15,7 +15,7 @@
#include <StepVisual_TessellatedGeometricSet.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_TessellatedGeometricSet,StepGeom_TessellatedItem)
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_TessellatedGeometricSet,StepVisual_TessellatedItem)
StepVisual_TessellatedGeometricSet::StepVisual_TessellatedGeometricSet () {}

View File

@ -36,7 +36,7 @@ namespace {
}
IMPLEMENT_DERIVED_ATTRIBUTE(XCAFDoc_NotesTool, XCAFDoc_NoteComment)
IMPLEMENT_DERIVED_ATTRIBUTE(XCAFDoc_NotesTool, TDataStd_GenericEmpty)
enum NotesTool_RootLabels
{