1 // File : GEOMImpl_GlueDriver.ixx
4 #ifndef _GEOMImpl_GlueDriver_HeaderFile
5 #define _GEOMImpl_GlueDriver_HeaderFile
7 #ifndef _TColStd_SequenceOfExtendedString_HeaderFile
8 #include <TColStd_SequenceOfExtendedString.hxx>
10 #ifndef _Standard_TypeMismatch_HeaderFile
11 #include <Standard_TypeMismatch.hxx>
14 #ifndef _Standard_HeaderFile
15 #include <Standard.hxx>
18 #ifndef _Standard_Macro_HeaderFile
19 #include <Standard_Macro.hxx>
21 #ifndef _Standard_HeaderFile
22 #include <Standard.hxx>
24 #ifndef _Standard_GUID_HeaderFile
25 #include <Standard_GUID.hxx>
28 #ifndef _Handle_TFunction_Driver_HeaderFile
29 #include <Handle_TFunction_Driver.hxx>
32 class Standard_Transient;
33 class Handle_Standard_Type;
34 class Handle(TFunction_Driver);
35 class GEOMImpl_GlueDriver;
37 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(GEOMImpl_GlueDriver);
39 class Handle(GEOMImpl_GlueDriver) : public Handle(TFunction_Driver) {
41 inline void* operator new(size_t,void* anAddress)
45 inline void* operator new(size_t size)
47 return Standard::Allocate(size);
49 inline void operator delete(void *anAddress)
51 if (anAddress) Standard::Free((Standard_Address&)anAddress);
54 Handle(GEOMImpl_GlueDriver)():Handle(TFunction_Driver)() {}
55 Handle(GEOMImpl_GlueDriver)(const Handle(GEOMImpl_GlueDriver)& aHandle) : Handle(TFunction_Driver)(aHandle)
59 Handle(GEOMImpl_GlueDriver)(const GEOMImpl_GlueDriver* anItem) : Handle(TFunction_Driver)((TFunction_Driver *)anItem)
63 Handle(GEOMImpl_GlueDriver)& operator=(const Handle(GEOMImpl_GlueDriver)& aHandle)
65 Assign(aHandle.Access());
69 Handle(GEOMImpl_GlueDriver)& operator=(const GEOMImpl_GlueDriver* anItem)
71 Assign((Standard_Transient *)anItem);
75 GEOMImpl_GlueDriver* operator->()
77 return (GEOMImpl_GlueDriver *)ControlAccess();
80 GEOMImpl_GlueDriver* operator->() const
82 return (GEOMImpl_GlueDriver *)ControlAccess();
85 Standard_EXPORT ~Handle(GEOMImpl_GlueDriver)() {};
87 Standard_EXPORT static const Handle(GEOMImpl_GlueDriver) DownCast(const Handle(Standard_Transient)& AnObject);
90 #ifndef _TFunction_Driver_HeaderFile
91 #include <TFunction_Driver.hxx>
93 #ifndef _TFunction_Logbook_HeaderFile
94 #include <TFunction_Logbook.hxx>
96 #ifndef _Standard_CString_HeaderFile
97 #include <Standard_CString.hxx>
99 #include <TopoDS_Shape.hxx>
100 #include <TCollection_AsciiString.hxx>
102 class TColStd_SequenceOfExtendedString;
105 class GEOMImpl_GlueDriver : public TFunction_Driver {
109 inline void* operator new(size_t,void* anAddress)
113 inline void* operator new(size_t size)
115 return Standard::Allocate(size);
117 inline void operator delete(void *anAddress)
119 if (anAddress) Standard::Free((Standard_Address&)anAddress);
124 Standard_EXPORT GEOMImpl_GlueDriver();
125 Standard_EXPORT virtual Standard_Integer Execute(TFunction_Logbook& log) const;
126 Standard_EXPORT virtual void Validate(TFunction_Logbook&) const {}
127 Standard_EXPORT Standard_Boolean MustExecute(const TFunction_Logbook&) const { return Standard_True; }
128 Standard_EXPORT static const Standard_GUID& GetID();
129 Standard_EXPORT ~GEOMImpl_GlueDriver() {};
131 Standard_EXPORT static TopoDS_Shape GlueFaces (const TopoDS_Shape& theShape,
132 const Standard_Real theTolerance);
134 Standard_EXPORT TopoDS_Shape GlueFacesWithWarnings (const TopoDS_Shape& theShape,
135 const Standard_Real theTolerance,
136 TCollection_AsciiString& theWarning) const;
140 Standard_EXPORT friend Handle_Standard_Type& GEOMImpl_GlueDriver_Type_();
141 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const { return STANDARD_TYPE(GEOMImpl_GlueDriver) ; }
142 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)& AType) const { return (STANDARD_TYPE(GEOMImpl_GlueDriver) == AType || TFunction_Driver::IsKind(AType)); }