1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0024870: Provide OCCT RTTI test cases

Test commands for checking performance and functionality of OCCT handles and RTTI added.
New test case added for that: test perf fclasses handle.

Implementation of opencascade::handle improved to enable compile-time error if two handles of incompatible types are compared.
Comparison of handle to NULL is not possible any more; method IsNull() should be used instead.

Method LDOM_MemManager::Doc() is removed to avoid cyclic dependency of headers; constructor of LDOM_Document(LDOM_MemManager&) is used directly instead.

Inclusion of headers corrected for compilation after previous patch.
This commit is contained in:
abv
2015-06-30 10:25:48 +03:00
parent c60ae7f6b1
commit e8862cf41a
29 changed files with 846 additions and 44 deletions

View File

@@ -15,6 +15,7 @@
#include <LDOM_BasicAttribute.hxx>
#include <LDOM_MemManager.hxx>
#include <LDOM_Attr.hxx>
//=======================================================================
//function : LDOM_BasicAttribute

View File

@@ -19,6 +19,7 @@
#include <LDOM_BasicAttribute.hxx>
#include <LDOM_BasicText.hxx>
#include <LDOM_MemManager.hxx>
#include <LDOM_NodeList.hxx>
//=======================================================================
//function : Create

View File

@@ -15,6 +15,7 @@
#include <LDOM_BasicText.hxx>
#include <LDOM_MemManager.hxx>
#include <LDOM_CharacterData.hxx>
//=======================================================================
//function : LDOM_BasicText()

View File

@@ -16,6 +16,7 @@
#include <LDOM_MemManager.hxx>
#include <LDOM_BasicElement.hxx>
#include <LDOM_BasicAttribute.hxx>
#include <LDOM_Element.hxx>
#include <Standard_ProgramError.hxx>

View File

@@ -18,10 +18,11 @@
#include <MMgt_TShared.hxx>
#include <Standard_Type.hxx>
#include <LDOM_Document.hxx>
class LDOM_Document;
class LDOM_BasicElement;
class LDOM_MemManager;
class LDOMBasicString;
// Define handle class for LDOM_MemManager
DEFINE_STANDARD_HANDLE (LDOM_MemManager, MMgt_TShared)
@@ -63,8 +64,8 @@ class LDOM_MemManager : public MMgt_TShared
const Standard_Integer theHashValue,
const char * theHashedStr);
LDOM_Document Doc () const
{ return LDOM_Document (* this); }
// LDOM_Document Doc () const
// { return LDOM_Document (* this); }
const LDOM_MemManager& Self () const
{ return * this; }

View File

@@ -22,9 +22,9 @@
#include <Standard_Macro.hxx>
#include <Standard_TypeDef.hxx>
#include <LDOMString.hxx>
#include <LDOM_MemManager.hxx>
class LDOM_BasicNode;
class LDOM_MemManager;
// LDOM_Node : base class for LDOM interface objects
// references LDOM_BasicNode - the real data stored in Document