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
16 #include <SALOMEDS_FileType.jxx>
18 #ifndef _Standard_TypeMismatch_HeaderFile
19 #include <Standard_TypeMismatch.hxx>
22 SALOMEDS_FileType::~SALOMEDS_FileType() {}
26 Standard_EXPORT Handle_Standard_Type& SALOMEDS_FileType_Type_()
29 static Handle_Standard_Type aType1 = STANDARD_TYPE(TDataStd_Comment);
30 if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TDataStd_Comment);
31 static Handle_Standard_Type aType2 = STANDARD_TYPE(TDF_Attribute);
32 if ( aType2.IsNull()) aType2 = STANDARD_TYPE(TDF_Attribute);
33 static Handle_Standard_Type aType3 = STANDARD_TYPE(MMgt_TShared);
34 if ( aType3.IsNull()) aType3 = STANDARD_TYPE(MMgt_TShared);
35 static Handle_Standard_Type aType4 = STANDARD_TYPE(Standard_Transient);
36 if ( aType4.IsNull()) aType4 = STANDARD_TYPE(Standard_Transient);
39 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,NULL};
40 static Handle_Standard_Type _aType = new Standard_Type("SALOMEDS_FileType",
41 sizeof(SALOMEDS_FileType),
43 (Standard_Address)_Ancestors,
44 (Standard_Address)NULL);
51 // allow safe downcasting
53 const Handle(SALOMEDS_FileType) Handle(SALOMEDS_FileType)::DownCast(const Handle(Standard_Transient)& AnObject)
55 Handle(SALOMEDS_FileType) _anOtherObject;
57 if (!AnObject.IsNull()) {
58 if (AnObject->IsKind(STANDARD_TYPE(SALOMEDS_FileType))) {
59 _anOtherObject = Handle(SALOMEDS_FileType)((Handle(SALOMEDS_FileType)&)AnObject);
63 return _anOtherObject ;
65 const Handle(Standard_Type)& SALOMEDS_FileType::DynamicType() const
67 return STANDARD_TYPE(SALOMEDS_FileType) ;
69 Standard_Boolean SALOMEDS_FileType::IsKind(const Handle(Standard_Type)& AType) const
71 return (STANDARD_TYPE(SALOMEDS_FileType) == AType || TDataStd_Comment::IsKind(AType));
73 Handle_SALOMEDS_FileType::~Handle_SALOMEDS_FileType() {}