Salome HOME
Bugs 20300 and 20361: Error occured during check of geometric coincidence.
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_HAlgo.ixx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
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.
10 //
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.
15 //
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
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 #include <GEOMAlgo_HAlgo.jxx>
23
24 #ifndef _Standard_TypeMismatch_HeaderFile
25 #include <Standard_TypeMismatch.hxx>
26 #endif
27
28 //GEOMAlgo_HAlgo::~GEOMAlgo_HAlgo() {}
29  
30
31
32 Standard_EXPORT Handle_Standard_Type& GEOMAlgo_HAlgo_Type_()
33 {
34
35     static Handle_Standard_Type aType1 = STANDARD_TYPE(MMgt_TShared);
36   static Handle_Standard_Type aType2 = STANDARD_TYPE(Standard_Transient);
37  
38
39   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,NULL};
40   static Handle_Standard_Type _aType = new Standard_Type("GEOMAlgo_HAlgo",
41                                                          sizeof(GEOMAlgo_HAlgo),
42                                                          1,
43                                                          (Standard_Address)_Ancestors,
44                                                          (Standard_Address)NULL);
45
46   return _aType;
47 }
48
49
50 // DownCast method
51 //   allow safe downcasting
52 //
53 const Handle(GEOMAlgo_HAlgo) Handle(GEOMAlgo_HAlgo)::DownCast(const Handle(Standard_Transient)& AnObject) 
54 {
55   Handle(GEOMAlgo_HAlgo) _anOtherObject;
56
57   if (!AnObject.IsNull()) {
58      if (AnObject->IsKind(STANDARD_TYPE(GEOMAlgo_HAlgo))) {
59        _anOtherObject = Handle(GEOMAlgo_HAlgo)((Handle(GEOMAlgo_HAlgo)&)AnObject);
60      }
61   }
62
63   return _anOtherObject ;
64 }
65 const Handle(Standard_Type)& GEOMAlgo_HAlgo::DynamicType() const 
66
67   return STANDARD_TYPE(GEOMAlgo_HAlgo) ; 
68 }
69 //Standard_Boolean GEOMAlgo_HAlgo::IsKind(const Handle(Standard_Type)& AType) const 
70 //{ 
71 //  return (STANDARD_TYPE(GEOMAlgo_HAlgo) == AType || MMgt_TShared::IsKind(AType)); 
72 //}
73 //Handle_GEOMAlgo_HAlgo::~Handle_GEOMAlgo_HAlgo() {}
74