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:
parent
6d28546add
commit
9e3e17d41e
@ -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>();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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 () {}
|
||||
|
||||
|
@ -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 () {}
|
||||
|
@ -36,7 +36,7 @@ namespace {
|
||||
|
||||
}
|
||||
|
||||
IMPLEMENT_DERIVED_ATTRIBUTE(XCAFDoc_NotesTool, XCAFDoc_NoteComment)
|
||||
IMPLEMENT_DERIVED_ATTRIBUTE(XCAFDoc_NotesTool, TDataStd_GenericEmpty)
|
||||
|
||||
enum NotesTool_RootLabels
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user