1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #include <GEOMAlgo_Clsf.jxx>
22 #ifndef _Standard_TypeMismatch_HeaderFile
23 #include <Standard_TypeMismatch.hxx>
26 //GEOMAlgo_Clsf::~GEOMAlgo_Clsf() {}
30 Standard_EXPORT Handle_Standard_Type& GEOMAlgo_Clsf_Type_()
33 static Handle_Standard_Type aType1 = STANDARD_TYPE(GEOMAlgo_HAlgo);
34 static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
35 static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
38 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
39 static Handle_Standard_Type _aType = new Standard_Type("GEOMAlgo_Clsf",
40 sizeof(GEOMAlgo_Clsf),
42 (Standard_Address)_Ancestors,
43 (Standard_Address)NULL);
50 // allow safe downcasting
52 const Handle(GEOMAlgo_Clsf) Handle(GEOMAlgo_Clsf)::DownCast(const Handle(Standard_Transient)& AnObject)
54 Handle(GEOMAlgo_Clsf) _anOtherObject;
56 if (!AnObject.IsNull()) {
57 if (AnObject->IsKind(STANDARD_TYPE(GEOMAlgo_Clsf))) {
58 _anOtherObject = Handle(GEOMAlgo_Clsf)((Handle(GEOMAlgo_Clsf)&)AnObject);
62 return _anOtherObject ;
64 const Handle(Standard_Type)& GEOMAlgo_Clsf::DynamicType() const
66 return STANDARD_TYPE(GEOMAlgo_Clsf) ;
68 //Standard_Boolean GEOMAlgo_Clsf::IsKind(const Handle(Standard_Type)& AType) const
70 // return (STANDARD_TYPE(GEOMAlgo_Clsf) == AType || GEOMAlgo_HAlgo::IsKind(AType));
72 //Handle_GEOMAlgo_Clsf::~Handle_GEOMAlgo_Clsf() {}