1 // File generated by CPPExt (Transient)
2 // Copyright (C) 1991,1995 by
4 // MATRA DATAVISION, FRANCE
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.
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
15 #include <TOcaf_Application.jxx>
17 #ifndef _Standard_TypeMismatch_HeaderFile
18 #include <Standard_TypeMismatch.hxx>
22 // allow safe downcasting
24 const Handle(TOcaf_Application) TOcaf_Application::DownCast(const Handle(Standard_Transient)& AnObject)
26 Handle(TOcaf_Application) _anOtherObject;
28 if (!AnObject.IsNull()) {
29 if (AnObject->IsKind(STANDARD_TYPE(TOcaf_Application))) {
30 _anOtherObject = Handle(TOcaf_Application)((Handle(TOcaf_Application)&)AnObject);
34 return _anOtherObject ;
36 const Handle(Standard_Type)& TOcaf_Application::DynamicType() const
38 return STANDARD_TYPE(TOcaf_Application) ;
40 Standard_Boolean TOcaf_Application::IsKind(const Handle(Standard_Type)& AType) const
42 return (STANDARD_TYPE(TOcaf_Application) == AType || TDocStd_Application::IsKind(AType));