0028892: BOPAlgo_PaveFiller returns status "error: 11" in draw or raises exception...
[occt.git] / samples / mfc / standard / 06_Ocaf / src / OCAFSample_Driver.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 <OCAFSample_Driver.jxx>
16
17 #ifndef _Standard_TypeMismatch_HeaderFile
18 #include <Standard_TypeMismatch.hxx>
19 #endif
20
21 OCAFSample_Driver::~OCAFSample_Driver() {}
22  
23
24
25 Standard_EXPORT Handle_Standard_Type& OCAFSample_Driver_Type_()
26 {
27
28     static Handle_Standard_Type aType1 = STANDARD_TYPE(TFunction_Driver);
29   if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TFunction_Driver);
30   static Handle_Standard_Type aType2 = STANDARD_TYPE(Standard_Transient);
31   if ( aType2.IsNull()) aType2 = STANDARD_TYPE(Standard_Transient);
32
33   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,NULL};
34   static Handle_Standard_Type _aType = new Standard_Type("OCAFSample_Driver",
35                                                          sizeof(OCAFSample_Driver),
36                                                          1,
37                                                          (Standard_Address)_Ancestors,
38                                                          (Standard_Address)NULL);
39
40   return _aType;
41 }
42
43
44 // DownCast method
45 //   allow safe downcasting
46 //
47 const Handle(OCAFSample_Driver) Handle(OCAFSample_Driver)::DownCast(const Handle(Standard_Transient)& AnObject) 
48 {
49   Handle(OCAFSample_Driver) _anOtherObject;
50
51   if (!AnObject.IsNull()) {
52      if (AnObject->IsKind(STANDARD_TYPE(OCAFSample_Driver))) {
53        _anOtherObject = Handle(OCAFSample_Driver)((Handle(OCAFSample_Driver)&)AnObject);
54      }
55   }
56
57   return _anOtherObject ;
58 }
59 const Handle(Standard_Type)& OCAFSample_Driver::DynamicType() const 
60
61   return STANDARD_TYPE(OCAFSample_Driver) ; 
62 }
63 Standard_Boolean OCAFSample_Driver::IsKind(const Handle(Standard_Type)& AType) const 
64
65   return (STANDARD_TYPE(OCAFSample_Driver) == AType || TFunction_Driver::IsKind(AType)); 
66 }
67 Handle_OCAFSample_Driver::~Handle_OCAFSample_Driver() {}
68