Salome HOME
NRI : Change lGeometryClient by lGEOMClient.
[modules/smesh.git] / src / SMESHFiltersSelection / SMESH_TypeFilter.ixx
1 // File generated by CPPExt (Transient)
2 //                     Copyright (C) 1991,1995 by
3 //  
4 //                      MATRA DATAVISION, FRANCE
5 //  
6 // This software is furnished in accordance with the terms and conditions
7 // of the contract and with the inclusion of the above copyright notice.
8 // This software or any other copy thereof may not be provided or otherwise
9 // be made available to any other person. No title to an ownership of the
10 // software is hereby transferred.
11 //  
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
14 //
15 #include "SMESH_TypeFilter.jxx"
16
17 #ifndef _Standard_TypeMismatch_HeaderFile
18 #include <Standard_TypeMismatch.hxx>
19 #endif
20
21 SMESH_TypeFilter::~SMESH_TypeFilter() {}
22  
23
24
25 Standard_EXPORT Handle_Standard_Type& SMESH_TypeFilter_Type_()
26 {
27
28     static Handle_Standard_Type aType1 = STANDARD_TYPE(SALOME_Filter);
29   if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SALOME_Filter);
30   static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
31   if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
32   static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
33   if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
34  
35
36   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
37   static Handle_Standard_Type _aType = new Standard_Type("SMESH_TypeFilter",
38                                                          sizeof(SMESH_TypeFilter),
39                                                          1,
40                                                          (Standard_Address)_Ancestors,
41                                                          (Standard_Address)NULL);
42
43   return _aType;
44 }
45
46
47 // DownCast method
48 //   allow safe downcasting
49 //
50 const Handle(SMESH_TypeFilter) Handle(SMESH_TypeFilter)::DownCast(const Handle(Standard_Transient)& AnObject) 
51 {
52   Handle(SMESH_TypeFilter) _anOtherObject;
53
54   if (!AnObject.IsNull()) {
55      if (AnObject->IsKind(STANDARD_TYPE(SMESH_TypeFilter))) {
56        _anOtherObject = Handle(SMESH_TypeFilter)((Handle(SMESH_TypeFilter)&)AnObject);
57      }
58   }
59
60   return _anOtherObject ;
61 }
62 const Handle(Standard_Type)& SMESH_TypeFilter::DynamicType() const 
63
64   return STANDARD_TYPE(SMESH_TypeFilter) ; 
65 }
66 Standard_Boolean SMESH_TypeFilter::IsKind(const Handle(Standard_Type)& AType) const 
67
68   return (STANDARD_TYPE(SMESH_TypeFilter) == AType || SALOME_Filter::IsKind(AType)); 
69 }
70 Handle_SMESH_TypeFilter::~Handle_SMESH_TypeFilter() {}
71