Salome HOME
Integrate missing files
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_FileType.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 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
16 #include <SALOMEDS_FileType.jxx>
17
18 #ifndef _Standard_TypeMismatch_HeaderFile
19 #include <Standard_TypeMismatch.hxx>
20 #endif
21
22 SALOMEDS_FileType::~SALOMEDS_FileType() {}
23  
24
25
26 Standard_EXPORT Handle_Standard_Type& SALOMEDS_FileType_Type_()
27 {
28
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);
37  
38
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),
42                                                          1,
43                                                          (Standard_Address)_Ancestors,
44                                                          (Standard_Address)NULL);
45
46   return _aType;
47 }
48
49
50 // DownCast method
51 //   allow safe downcasting
52 //
53 const Handle(SALOMEDS_FileType) Handle(SALOMEDS_FileType)::DownCast(const Handle(Standard_Transient)& AnObject) 
54 {
55   Handle(SALOMEDS_FileType) _anOtherObject;
56
57   if (!AnObject.IsNull()) {
58      if (AnObject->IsKind(STANDARD_TYPE(SALOMEDS_FileType))) {
59        _anOtherObject = Handle(SALOMEDS_FileType)((Handle(SALOMEDS_FileType)&)AnObject);
60      }
61   }
62
63   return _anOtherObject ;
64 }
65 const Handle(Standard_Type)& SALOMEDS_FileType::DynamicType() const 
66
67   return STANDARD_TYPE(SALOMEDS_FileType) ; 
68 }
69 Standard_Boolean SALOMEDS_FileType::IsKind(const Handle(Standard_Type)& AType) const 
70
71   return (STANDARD_TYPE(SALOMEDS_FileType) == AType || TDataStd_Comment::IsKind(AType)); 
72 }
73 Handle_SALOMEDS_FileType::~Handle_SALOMEDS_FileType() {}
74