1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic

Automatic restore of IMPLEMENT_STANDARD_RTTIEXT macro (upgrade -rtti)
This commit is contained in:
abv
2015-12-04 14:15:06 +03:00
parent f5f4ebd07b
commit 92efcf78a6
4556 changed files with 7149 additions and 2882 deletions

View File

@@ -27,6 +27,8 @@
#include <StepData_Protocol.hxx>
#include <StepData_UndefinedEntity.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_DefaultGeneral,StepData_GeneralModule)
// DefaultGeneral de StepData reconnait UN SEUL TYPE : UndefinedEntity
StepData_DefaultGeneral::StepData_DefaultGeneral ()
{

View File

@@ -62,7 +62,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_DefaultGeneral,StepData_GeneralModule)
DEFINE_STANDARD_RTTIEXT(StepData_DefaultGeneral,StepData_GeneralModule)
protected:

View File

@@ -23,6 +23,8 @@
#include <StepData_EDescr.hxx>
#include <StepData_Protocol.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_DescrGeneral,StepData_GeneralModule)
StepData_DescrGeneral::StepData_DescrGeneral
(const Handle(StepData_Protocol)& proto)
: theproto (proto) { }

View File

@@ -54,7 +54,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_DescrGeneral,StepData_GeneralModule)
DEFINE_STANDARD_RTTIEXT(StepData_DescrGeneral,StepData_GeneralModule)
protected:

View File

@@ -20,6 +20,8 @@
#include <StepData_DescrReadWrite.hxx>
#include <StepData_WriterLib.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_DescrProtocol,StepData_FileProtocol)
StepData_DescrProtocol::StepData_DescrProtocol () { }
void StepData_DescrProtocol::SetSchemaName (const Standard_CString name)

View File

@@ -62,7 +62,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_DescrProtocol,StepData_FileProtocol)
DEFINE_STANDARD_RTTIEXT(StepData_DescrProtocol,StepData_FileProtocol)
protected:

View File

@@ -29,6 +29,8 @@
#include <TCollection_AsciiString.hxx>
#include <TColStd_HSequenceOfAsciiString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_DescrReadWrite,StepData_ReadWriteModule)
static TCollection_AsciiString nocp("?");

View File

@@ -61,7 +61,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_DescrReadWrite,StepData_ReadWriteModule)
DEFINE_STANDARD_RTTIEXT(StepData_DescrReadWrite,StepData_ReadWriteModule)
protected:

View File

@@ -21,6 +21,8 @@
#include <StepData_Field.hxx>
#include <StepData_Simple.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_Described,MMgt_TShared)
StepData_Described::StepData_Described (const Handle(StepData_EDescr)& descr)
: thedescr (descr) { }

View File

@@ -76,7 +76,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_Described,MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(StepData_Described,MMgt_TShared)
protected:

View File

@@ -20,6 +20,8 @@
#include <StepData_Simple.hxx>
#include <TCollection_AsciiString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_ECDescr,StepData_EDescr)
StepData_ECDescr::StepData_ECDescr () { }
void StepData_ECDescr::Add (const Handle(StepData_ESDescr)& member)

View File

@@ -69,7 +69,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_ECDescr,StepData_EDescr)
DEFINE_STANDARD_RTTIEXT(StepData_ECDescr,StepData_EDescr)
protected:

View File

@@ -15,3 +15,5 @@
#include <Standard_Type.hxx>
#include <StepData_Described.hxx>
#include <StepData_EDescr.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_EDescr,MMgt_TShared)

View File

@@ -49,7 +49,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_EDescr,MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(StepData_EDescr,MMgt_TShared)
protected:

View File

@@ -21,6 +21,8 @@
#include <StepData_Simple.hxx>
#include <TCollection_AsciiString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_ESDescr,StepData_EDescr)
StepData_ESDescr::StepData_ESDescr (const Standard_CString name)
: thenom (name) { thenames = new Dico_DictionaryOfInteger; }

View File

@@ -105,7 +105,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_ESDescr,StepData_EDescr)
DEFINE_STANDARD_RTTIEXT(StepData_ESDescr,StepData_EDescr)
protected:

View File

@@ -19,6 +19,8 @@
#include <StepData_FileProtocol.hxx>
#include <StepData_Protocol.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_FileProtocol,StepData_Protocol)
//static TCollection_AsciiString thename("");
static Standard_CString thename = "";

View File

@@ -79,7 +79,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_FileProtocol,StepData_Protocol)
DEFINE_STANDARD_RTTIEXT(StepData_FileProtocol,StepData_Protocol)
protected:

View File

@@ -57,7 +57,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_FileRecognizer,Standard_Transient)
DEFINE_STANDARD_RTTI_INLINE(StepData_FileRecognizer,Standard_Transient)
protected:

View File

@@ -19,6 +19,8 @@
#include <StepData_Field.hxx>
#include <StepData_FreeFormEntity.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_FreeFormEntity,MMgt_TShared)
void StepData_FreeFormEntity::SetStepType (const Standard_CString typenam)
{ thetype.Clear(); thetype.AssignCat (typenam); }

View File

@@ -98,7 +98,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_FreeFormEntity,MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(StepData_FreeFormEntity,MMgt_TShared)
protected:

View File

@@ -19,3 +19,5 @@
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>
#include <StepData_GeneralModule.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_GeneralModule,Interface_GeneralModule)

View File

@@ -58,7 +58,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_GeneralModule,Interface_GeneralModule)
DEFINE_STANDARD_RTTIEXT(StepData_GeneralModule,Interface_GeneralModule)
protected:

View File

@@ -60,7 +60,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_GlobalNodeOfWriterLib,Standard_Transient)
DEFINE_STANDARD_RTTI_INLINE(StepData_GlobalNodeOfWriterLib,Standard_Transient)
protected:

View File

@@ -58,7 +58,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_NodeOfWriterLib,MMgt_TShared)
DEFINE_STANDARD_RTTI_INLINE(StepData_NodeOfWriterLib,MMgt_TShared)
protected:

View File

@@ -18,6 +18,8 @@
#include <StepData_Field.hxx>
#include <StepData_PDescr.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_PDescr,MMgt_TShared)
#define KindInteger 1
#define KindBoolean 2
#define KindLogical 3

View File

@@ -213,7 +213,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_PDescr,MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(StepData_PDescr,MMgt_TShared)
protected:

View File

@@ -22,6 +22,8 @@
#include <StepData_Simple.hxx>
#include <TCollection_AsciiString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_Plex,StepData_Described)
static StepData_Field bid;
StepData_Plex::StepData_Plex (const Handle(StepData_ECDescr)& descr)

View File

@@ -96,7 +96,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_Plex,StepData_Described)
DEFINE_STANDARD_RTTIEXT(StepData_Plex,StepData_Described)
protected:

View File

@@ -28,6 +28,8 @@
#include <StepData_UndefinedEntity.hxx>
#include <stdio.h>
IMPLEMENT_STANDARD_RTTIEXT(StepData_Protocol,Interface_Protocol)
// Le Protocol de base reconnait UnknownEntity
//static TCollection_AsciiString thename("(DEFAULT)");
static Standard_CString thename = "(DEFAULT)";

View File

@@ -138,7 +138,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_Protocol,Interface_Protocol)
DEFINE_STANDARD_RTTIEXT(StepData_Protocol,Interface_Protocol)
protected:

View File

@@ -23,6 +23,8 @@
#include <StepData_StepWriter.hxx>
#include <TCollection_AsciiString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_ReadWriteModule,Interface_ReaderModule)
Standard_Integer StepData_ReadWriteModule::CaseNum
(const Handle(Interface_FileReaderData)& data,
const Standard_Integer num) const

View File

@@ -110,7 +110,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_ReadWriteModule,Interface_ReaderModule)
DEFINE_STANDARD_RTTIEXT(StepData_ReadWriteModule,Interface_ReaderModule)
protected:

View File

@@ -15,6 +15,8 @@
#include <Standard_Type.hxx>
#include <StepData_SelectArrReal.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_SelectArrReal,StepData_SelectNamed)
// Definitions : cf Field
#define myKindArrReal 8

View File

@@ -45,7 +45,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_SelectArrReal,StepData_SelectNamed)
DEFINE_STANDARD_RTTIEXT(StepData_SelectArrReal,StepData_SelectNamed)
protected:

View File

@@ -15,6 +15,8 @@
#include <Standard_Type.hxx>
#include <StepData_SelectInt.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_SelectInt,StepData_SelectMember)
StepData_SelectInt::StepData_SelectInt () { thekind = 0; theval = 0; }
Standard_Integer StepData_SelectInt::Kind () const { return thekind; }

View File

@@ -50,7 +50,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_SelectInt,StepData_SelectMember)
DEFINE_STANDARD_RTTIEXT(StepData_SelectInt,StepData_SelectMember)
protected:

View File

@@ -15,6 +15,8 @@
#include <Standard_Type.hxx>
#include <StepData_SelectMember.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_SelectMember,MMgt_TShared)
// Definitions reprises de Field :
#define KindInteger 1
#define KindBoolean 2

View File

@@ -119,7 +119,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_SelectMember,MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(StepData_SelectMember,MMgt_TShared)
protected:

View File

@@ -16,6 +16,8 @@
#include <StepData_Field.hxx>
#include <StepData_SelectNamed.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_SelectNamed,StepData_SelectMember)
// Definitions reprises de Field :
#define KindInteger 1
#define KindBoolean 2

View File

@@ -77,7 +77,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_SelectNamed,StepData_SelectMember)
DEFINE_STANDARD_RTTIEXT(StepData_SelectNamed,StepData_SelectMember)
protected:

View File

@@ -15,6 +15,8 @@
#include <Standard_Type.hxx>
#include <StepData_SelectReal.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_SelectReal,StepData_SelectMember)
// Definitions : cf Field
#define KindReal 5

View File

@@ -49,7 +49,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_SelectReal,StepData_SelectMember)
DEFINE_STANDARD_RTTIEXT(StepData_SelectReal,StepData_SelectMember)
protected:

View File

@@ -21,6 +21,8 @@
#include <StepData_FieldListN.hxx>
#include <StepData_Simple.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_Simple,StepData_Described)
StepData_Simple::StepData_Simple (const Handle(StepData_ESDescr)& descr)
: StepData_Described (descr) , thefields (descr->NbFields()) { }

View File

@@ -99,7 +99,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_Simple,StepData_Described)
DEFINE_STANDARD_RTTIEXT(StepData_Simple,StepData_Described)
protected:

View File

@@ -31,6 +31,8 @@
#include <TCollection_HAsciiString.hxx>
#include <stdio.h>
IMPLEMENT_STANDARD_RTTIEXT(StepData_StepModel,Interface_InterfaceModel)
// Entete de fichier : liste d entites
StepData_StepModel::StepData_StepModel () { }

View File

@@ -107,7 +107,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_StepModel,Interface_InterfaceModel)
DEFINE_STANDARD_RTTIEXT(StepData_StepModel,Interface_InterfaceModel)
protected:

View File

@@ -48,6 +48,8 @@
#include <TColStd_SequenceOfInteger.hxx>
#include <stdio.h>
IMPLEMENT_STANDARD_RTTIEXT(StepData_StepReaderData,Interface_FileReaderData)
// Le Header est constitue d entites analogues dans leur principe a celles
// du Data, a ceci pres qu elles sont sans identifieur, et ne peuvent ni
// referencer, ni etre referencees (que ce soit avec Header ou avec Data)

View File

@@ -318,7 +318,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_StepReaderData,Interface_FileReaderData)
DEFINE_STANDARD_RTTIEXT(StepData_StepReaderData,Interface_FileReaderData)
protected:

View File

@@ -25,6 +25,8 @@
#include <TCollection_AsciiString.hxx>
#include <TCollection_HAsciiString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepData_UndefinedEntity,MMgt_TShared)
StepData_UndefinedEntity::StepData_UndefinedEntity ()
{ thecont = new Interface_UndefinedContent; thesub = Standard_False; }

View File

@@ -93,7 +93,7 @@ public:
DEFINE_STANDARD_RTTI(StepData_UndefinedEntity,MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(StepData_UndefinedEntity,MMgt_TShared)
protected: