2 #include <Standard_Stream.hxx>
4 #include <GEOMImpl_Template.hxx>
5 #include <GEOM_Function.hxx>
6 #include <TopoDS_Shape.hxx>
8 //=======================================================================
11 //=======================================================================
12 const Standard_GUID& GEOMImpl_Template::GetID()
14 static Standard_GUID aTemplate("Insert the correct GUID here");
19 //=======================================================================
20 //function : GEOMImpl_Template
22 //=======================================================================
24 GEOMImpl_Template::GEOMImpl_Template()
28 //=======================================================================
31 //=======================================================================
32 Standard_Integer GEOMImpl_Template::Execute(TFunction_Logbook& log) const
34 if (Label().IsNull()) return 0;
35 Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction(Label());
36 if(aFunction.IsNull()) return 0;
38 //Add implemetation here
40 log.SetTouched(Label());
45 //=======================================================================
46 //function : GEOMImpl_Template_Type_
48 //=======================================================================
49 Standard_EXPORT Handle_Standard_Type& GEOMImpl_Template_Type_()
52 static Handle_Standard_Type aType1 = STANDARD_TYPE(TFunction_Driver);
53 if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TFunction_Driver);
54 static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
55 if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
56 static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
57 if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
60 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
61 static Handle_Standard_Type _aType = new Standard_Type("GEOMImpl_Template",
62 sizeof(GEOMImpl_Template),
64 (Standard_Address)_Ancestors,
65 (Standard_Address)NULL);
70 //=======================================================================
73 //=======================================================================
75 const Handle(GEOMImpl_Template) Handle(GEOMImpl_Template)::DownCast(const Handle(Standard_Transient)& AnObject)
77 Handle(GEOMImpl_Template) _anOtherObject;
79 if (!AnObject.IsNull()) {
80 if (AnObject->IsKind(STANDARD_TYPE(GEOMImpl_Template))) {
81 _anOtherObject = Handle(GEOMImpl_Template)((Handle(GEOMImpl_Template)&)AnObject);
85 return _anOtherObject ;