mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0027566: Configuration - define Handle_ as non-template class for compatibility with C++/CLI
For MSVC compiler (version 12 and above), Handle_Class types are defined as true classes (inheriting corresponding opencascade::handle<Class>) to allow using them in "public" statement of C++/CLI language, to make these classes recognizable by other C++/CLI libraries. Code to test operations with Handle_ class is added to QAHandleOps test command
This commit is contained in:
@@ -5,5 +5,4 @@ Image_Diff.cxx
|
||||
Image_Diff.hxx
|
||||
Image_PixMap.cxx
|
||||
Image_PixMap.hxx
|
||||
Image_PixMap_Handle.hxx
|
||||
Image_PixMapData.hxx
|
||||
|
@@ -17,7 +17,6 @@
|
||||
#define _Image_PixMap_H__
|
||||
|
||||
#include <Image_PixMapData.hxx>
|
||||
#include <Image_PixMap_Handle.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Quantity_Color.hxx>
|
||||
|
||||
@@ -283,4 +282,6 @@ public:
|
||||
|
||||
};
|
||||
|
||||
DEFINE_STANDARD_HANDLE(Image_PixMap, Standard_Transient)
|
||||
|
||||
#endif // _Image_PixMap_H__
|
||||
|
@@ -1,24 +0,0 @@
|
||||
// Copyright (c) 2013-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 _Image_PixMap_Handle_H__
|
||||
#define _Image_PixMap_Handle_H__
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
|
||||
class Image_PixMap;
|
||||
DEFINE_STANDARD_HANDLE(Image_PixMap, Standard_Transient)
|
||||
typedef Handle(Image_PixMap) Image_PixMap_Handle;
|
||||
|
||||
#endif // _Image_PixMap_Handle_H__
|
Reference in New Issue
Block a user