0028892: BOPAlgo_PaveFiller returns status "error: 11" in draw or raises exception...
[occt.git] / samples / mfc / standard / 06_Ocaf / src / TOcaf_Application.ixx
CommitLineData
7fd59977 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 <TOcaf_Application.jxx>
16
17#ifndef _Standard_TypeMismatch_HeaderFile
18#include <Standard_TypeMismatch.hxx>
19#endif
20
7fd59977 21// DownCast method
22// allow safe downcasting
23//
9e3ca93a 24const Handle(TOcaf_Application) TOcaf_Application::DownCast(const Handle(Standard_Transient)& AnObject)
7fd59977 25{
26 Handle(TOcaf_Application) _anOtherObject;
27
28 if (!AnObject.IsNull()) {
29 if (AnObject->IsKind(STANDARD_TYPE(TOcaf_Application))) {
30 _anOtherObject = Handle(TOcaf_Application)((Handle(TOcaf_Application)&)AnObject);
31 }
32 }
33
34 return _anOtherObject ;
35}
36const Handle(Standard_Type)& TOcaf_Application::DynamicType() const
37{
38 return STANDARD_TYPE(TOcaf_Application) ;
39}
40Standard_Boolean TOcaf_Application::IsKind(const Handle(Standard_Type)& AType) const
41{
42 return (STANDARD_TYPE(TOcaf_Application) == AType || TDocStd_Application::IsKind(AType));
43}
9e3ca93a 44
7fd59977 45