mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024023: Revamp the OCCT Handle -- general
Missing headers added; includes of headers "Handle_...hxx" removed. Misuses of macro Handle() and its use in typedefs corrected. Alias classes Profile and Option are removed from IFSelect; ones defined in MoniTool are used directly. Removed header files defining only Handle classes (except Image_PixMap_Handle.hxx) Classes SelectMgr_BaseFrustum and now inherit Standard_Transient and can be manipulated by Handle (not NCollection_Handle) Fixed reference-type local variable pointing to temporary object Use of handle in conditional expressions and comparisons to NULL are replaced by call to method IsNull()
This commit is contained in:
@@ -41,4 +41,3 @@ LDOMString.cxx
|
||||
LDOMString.hxx
|
||||
LDOM_OSStream.cxx
|
||||
LDOM_OSStream.hxx
|
||||
Handle_LDOM_MemManager.hxx
|
||||
|
@@ -1,27 +0,0 @@
|
||||
// Created on: 2002-02-12
|
||||
// Created by: Alexander GRIGORIEV
|
||||
// Copyright (c) 2002-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef Handle_LDOM_MemManager_HeaderFile
|
||||
#define Handle_LDOM_MemManager_HeaderFile
|
||||
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
class LDOM_MemManager;
|
||||
|
||||
// Define handle class for LDOM_MemManager
|
||||
DEFINE_STANDARD_HANDLE (LDOM_MemManager, MMgt_TShared)
|
||||
|
||||
#endif
|
@@ -18,6 +18,8 @@
|
||||
|
||||
#include <LDOMBasicString.hxx>
|
||||
|
||||
class LDOM_MemManager;
|
||||
|
||||
// Class LDOMString
|
||||
// Represents various object types which can be mapped to XML strings
|
||||
// LDOMString is not an independent type: you must be sure that the owner
|
||||
|
@@ -21,6 +21,8 @@
|
||||
#include <LDOM_CDATASection.hxx>
|
||||
#include <LDOM_Comment.hxx>
|
||||
|
||||
class LDOM_MemManager;
|
||||
|
||||
// Class LDOM_Document
|
||||
|
||||
class LDOM_Document
|
||||
|
@@ -21,6 +21,10 @@
|
||||
#include <LDOM_Document.hxx>
|
||||
|
||||
class LDOM_BasicElement;
|
||||
class LDOM_MemManager;
|
||||
|
||||
// Define handle class for LDOM_MemManager
|
||||
DEFINE_STANDARD_HANDLE (LDOM_MemManager, MMgt_TShared)
|
||||
|
||||
// Class LDOM_MemManager (underlying structure of LDOM_Document)
|
||||
//
|
||||
|
@@ -24,6 +24,7 @@
|
||||
#include <LDOMString.hxx>
|
||||
|
||||
class LDOM_BasicNode;
|
||||
class LDOM_MemManager;
|
||||
|
||||
// LDOM_Node : base class for LDOM interface objects
|
||||
// references LDOM_BasicNode - the real data stored in Document
|
||||
|
Reference in New Issue
Block a user