From 0391b4fcea7345c7e036248f1ae80d4bf66b9000 Mon Sep 17 00:00:00 2001 From: cascade Date: Fri, 30 Jan 2009 17:32:05 +0000 Subject: [PATCH] OCC20515 OCC parallelization --- src/CPPClient/CPPClient_Template.edl | 66 ++++------------------------ 1 file changed, 9 insertions(+), 57 deletions(-) diff --git a/src/CPPClient/CPPClient_Template.edl b/src/CPPClient/CPPClient_Template.edl index fd28c3a..17e536d 100755 --- a/src/CPPClient/CPPClient_Template.edl +++ b/src/CPPClient/CPPClient_Template.edl @@ -25,68 +25,22 @@ $// for a particular purpose or non-infringement. Please see the License for $// the specific terms and conditions governing rights and limitations under the $// License. $ -$// $#ifndef _Handle_%Class_HeaderFile $#define _Handle_%Class_HeaderFile -$#ifndef _Standard_Macro_HeaderFile -$#include +$ +$#ifndef _Standard_DefineHandle_HeaderFile +$#include $#endif $#ifndef _Handle_%Inherits_HeaderFile $#include $#endif $ $class Standard_Transient; -$class Handle_Standard_Type; -$class Handle(%Inherits); +$class Handle(Standard_Type); $class %Class; -$Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(%Class); -$ -$#ifndef _Handle_%Inherits_HeaderFile -$#include -$#endif -$class %Class; $ +$DEFINE_STANDARD_HANDLE(%Class,%Inherits) $ -$class Handle(%Class) : public Handle(%Inherits) -${ -$ public: -$ Handle(%Class)() : Handle(%Inherits)() -$ { -$ } -$ -$ Handle(%Class)(const Handle(%Class)& aHandle) : Handle(%Inherits)(aHandle) -$ { -$ } -$ -$ Handle(%Class)(const %Class* anItem) : Handle(%Inherits)((%Inherits *)anItem) -$ { -$ } -$ -$ Handle(%Class)& operator=(const Handle(%Class)& aHandle) -$ { -$ Assign(aHandle.Access()); -$ return *this; -$ } -$ -$ Handle(%Class)& operator=(const %Class* anItem) -$ { -$ Assign((Standard_Transient *)anItem); -$ return *this; -$ } -$ -$ %Class* operator->() -$ { -$ return (%Class *)ControlAccess(); -$ } -$ -$ %Class* operator->() const -$ { -$ return (%Class *)ControlAccess(); -$ } -$ -$ Standard_EXPORT ~Handle(%Class)(); -$ Standard_EXPORT static const Handle(%Class) DownCast(const Handle(Standard_Transient)& AnObject); -$}; $#endif @end; @@ -118,6 +72,7 @@ $// License. $ $#ifndef _%Interface_Standard_Transient_HeaderFile $#define _%Interface_Standard_Transient_HeaderFile +$ $#include $ $#ifndef _FrontEnd_EngineAdaptor_HeaderFile @@ -134,9 +89,9 @@ $class %Interface_Standard_Transient: public FrontEnd_HExternRef { $ $public: $ -$ %Interface_Standard_Transient(const FrontEnd_FHandle& _aRef, const Handle(FrontEnd_EngineAdaptor)& _anEng) : FrontEnd_HExternRef(_aRef,_anEng) -$ { -$ } +$ %Interface_Standard_Transient(const FrontEnd_FHandle& _aRef, const Handle(FrontEnd_EngineAdaptor)& _anEng) : FrontEnd_HExternRef(_aRef,_anEng) +$ { +$ } $ $ const Handle(Standard_Type)& DynamicType() const $ { @@ -229,9 +184,6 @@ $ $ return _anOtherObject ; $} $ -$Handle(%Interface_Standard_Transient)::~Handle(%Interface_Standard_Transient)() -${ -$} @end; @template PersistentRootClientHXX(%Interface) is -- 2.39.5