1 // Copyright (C) 2013-2014 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, or (at your option) any later version.
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
23 #ifndef _GEOMImpl_XAODriver_HXX
24 #define _GEOMImpl_XAODriver_HXX
26 #include <TFunction_Driver.hxx>
28 class Handle_Standard_Type;
29 class GEOMImpl_XAODriver;
31 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(GEOMImpl_XAODriver);
33 class Handle(GEOMImpl_XAODriver): public Handle(TFunction_Driver)
36 inline void* operator new(size_t, void* anAddress)
40 inline void* operator new(size_t size)
42 return Standard::Allocate(size);
44 inline void operator delete(void *anAddress)
46 if (anAddress) Standard::Free((Standard_Address&) anAddress);
49 Handle(GEOMImpl_XAODriver) () :
50 Handle(TFunction_Driver)()
53 Handle(GEOMImpl_XAODriver) (const Handle(GEOMImpl_XAODriver)& aHandle) :
54 Handle(TFunction_Driver)(aHandle)
58 Handle(GEOMImpl_XAODriver) (const GEOMImpl_XAODriver* anItem) :
59 Handle(TFunction_Driver)((TFunction_Driver *) anItem)
63 Handle(GEOMImpl_XAODriver)& operator=(const Handle(GEOMImpl_XAODriver)& aHandle)
65 Assign(aHandle.Access());
69 Handle(GEOMImpl_XAODriver)& operator=(const GEOMImpl_XAODriver* anItem)
71 Assign((Standard_Transient *) anItem);
75 GEOMImpl_XAODriver* operator->()
77 return (GEOMImpl_XAODriver *) ControlAccess();
80 GEOMImpl_XAODriver* operator->() const
82 return (GEOMImpl_XAODriver *) ControlAccess();
86 ~Handle(GEOMImpl_XAODriver)()
91 static const Handle(GEOMImpl_XAODriver) DownCast(const Handle(Standard_Transient)& AnObject);
94 class GEOMImpl_XAODriver: public TFunction_Driver
97 inline void* operator new(size_t, void* anAddress)
101 inline void* operator new(size_t size)
103 return Standard::Allocate(size);
105 inline void operator delete(void *anAddress)
107 if (anAddress) Standard::Free((Standard_Address&) anAddress);
113 GEOMImpl_XAODriver();
115 virtual Standard_Integer Execute(TFunction_Logbook& log) const;
117 virtual void Validate(TFunction_Logbook&) const
121 Standard_Boolean MustExecute(const TFunction_Logbook&) const
123 return Standard_True;
126 static const Standard_GUID& GetID();
128 ~GEOMImpl_XAODriver()
135 friend Handle_Standard_Type& GEOMImpl_ExportXAODriver_Type_();
137 const Handle(Standard_Type)& DynamicType() const
139 return STANDARD_TYPE(GEOMImpl_XAODriver);
142 Standard_Boolean IsKind(const Handle(Standard_Type)& AType) const
144 return (STANDARD_TYPE(GEOMImpl_XAODriver) == AType || TFunction_Driver::IsKind(AType));
148 #endif // _GEOMImpl_XAODriver_HXX