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 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
17 #include <SALOMEDS_ExternalFileDef.jxx>
19 #ifndef _Standard_TypeMismatch_HeaderFile
20 #include <Standard_TypeMismatch.hxx>
23 SALOMEDS_ExternalFileDef::~SALOMEDS_ExternalFileDef() {}
27 Standard_EXPORT Handle_Standard_Type& SALOMEDS_ExternalFileDef_Type_()
30 static Handle_Standard_Type aType1 = STANDARD_TYPE(TDataStd_Comment);
31 if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TDataStd_Comment);
32 static Handle_Standard_Type aType2 = STANDARD_TYPE(TDF_Attribute);
33 if ( aType2.IsNull()) aType2 = STANDARD_TYPE(TDF_Attribute);
34 static Handle_Standard_Type aType3 = STANDARD_TYPE(MMgt_TShared);
35 if ( aType3.IsNull()) aType3 = STANDARD_TYPE(MMgt_TShared);
36 static Handle_Standard_Type aType4 = STANDARD_TYPE(Standard_Transient);
37 if ( aType4.IsNull()) aType4 = STANDARD_TYPE(Standard_Transient);
40 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,NULL};
41 static Handle_Standard_Type _aType = new Standard_Type("SALOMEDS_ExternalFileDef",
42 sizeof(SALOMEDS_ExternalFileDef),
44 (Standard_Address)_Ancestors,
45 (Standard_Address)NULL);
52 // allow safe downcasting
54 const Handle(SALOMEDS_ExternalFileDef) Handle(SALOMEDS_ExternalFileDef)::DownCast(const Handle(Standard_Transient)& AnObject)
56 Handle(SALOMEDS_ExternalFileDef) _anOtherObject;
58 if (!AnObject.IsNull()) {
59 if (AnObject->IsKind(STANDARD_TYPE(SALOMEDS_ExternalFileDef))) {
60 _anOtherObject = Handle(SALOMEDS_ExternalFileDef)((Handle(SALOMEDS_ExternalFileDef)&)AnObject);
64 return _anOtherObject ;
66 const Handle(Standard_Type)& SALOMEDS_ExternalFileDef::DynamicType() const
68 return STANDARD_TYPE(SALOMEDS_ExternalFileDef) ;
70 Standard_Boolean SALOMEDS_ExternalFileDef::IsKind(const Handle(Standard_Type)& AType) const
72 return (STANDARD_TYPE(SALOMEDS_ExternalFileDef) == AType || TDataStd_Comment::IsKind(AType));
74 Handle_SALOMEDS_ExternalFileDef::~Handle_SALOMEDS_ExternalFileDef() {}