1 // Copyright (C) 2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #ifndef _GEOMImpl_XAODriver_HXX
23 #define _GEOMImpl_XAODriver_HXX
25 #include <TFunction_Driver.hxx>
27 class Handle_Standard_Type;
28 class GEOMImpl_XAODriver;
30 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(GEOMImpl_XAODriver);
32 class Handle(GEOMImpl_XAODriver): public Handle(TFunction_Driver)
35 inline void* operator new(size_t, void* anAddress)
39 inline void* operator new(size_t size)
41 return Standard::Allocate(size);
43 inline void operator delete(void *anAddress)
45 if (anAddress) Standard::Free((Standard_Address&) anAddress);
48 Handle(GEOMImpl_XAODriver) () :
49 Handle(TFunction_Driver)()
52 Handle(GEOMImpl_XAODriver) (const Handle(GEOMImpl_XAODriver)& aHandle) :
53 Handle(TFunction_Driver)(aHandle)
57 Handle(GEOMImpl_XAODriver) (const GEOMImpl_XAODriver* anItem) :
58 Handle(TFunction_Driver)((TFunction_Driver *) anItem)
62 Handle(GEOMImpl_XAODriver)& operator=(const Handle(GEOMImpl_XAODriver)& aHandle)
64 Assign(aHandle.Access());
68 Handle(GEOMImpl_XAODriver)& operator=(const GEOMImpl_XAODriver* anItem)
70 Assign((Standard_Transient *) anItem);
74 GEOMImpl_XAODriver* operator->()
76 return (GEOMImpl_XAODriver *) ControlAccess();
79 GEOMImpl_XAODriver* operator->() const
81 return (GEOMImpl_XAODriver *) ControlAccess();
85 ~Handle(GEOMImpl_XAODriver)()
90 static const Handle(GEOMImpl_XAODriver) DownCast(const Handle(Standard_Transient)& AnObject);
93 class GEOMImpl_XAODriver: public TFunction_Driver
96 inline void* operator new(size_t, void* anAddress)
100 inline void* operator new(size_t size)
102 return Standard::Allocate(size);
104 inline void operator delete(void *anAddress)
106 if (anAddress) Standard::Free((Standard_Address&) anAddress);
112 GEOMImpl_XAODriver();
114 virtual Standard_Integer Execute(TFunction_Logbook& log) const;
116 virtual void Validate(TFunction_Logbook&) const
120 Standard_Boolean MustExecute(const TFunction_Logbook&) const
122 return Standard_True;
125 static const Standard_GUID& GetID();
127 ~GEOMImpl_XAODriver()
134 friend Handle_Standard_Type& GEOMImpl_ExportXAODriver_Type_();
136 const Handle(Standard_Type)& DynamicType() const
138 return STANDARD_TYPE(GEOMImpl_XAODriver);
141 Standard_Boolean IsKind(const Handle(Standard_Type)& AType) const
143 return (STANDARD_TYPE(GEOMImpl_XAODriver) == AType || TFunction_Driver::IsKind(AType));
147 #endif // _GEOMImpl_XAODriver_HXX