Back to index

salome-geom  6.5.0
BlockFix_BlockFixAPI.ixx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 #include <BlockFix_BlockFixAPI.jxx>
00024 
00025 #ifndef _Standard_TypeMismatch_HeaderFile
00026 #include <Standard_TypeMismatch.hxx>
00027 #endif
00028 
00029 BlockFix_BlockFixAPI::~BlockFix_BlockFixAPI() {}
00030 
00031 
00032 
00033 Standard_EXPORT Handle_Standard_Type& BlockFix_BlockFixAPI_Type_()
00034 {
00035 
00036     static Handle_Standard_Type aType1 = STANDARD_TYPE(MMgt_TShared);
00037   if ( aType1.IsNull()) aType1 = STANDARD_TYPE(MMgt_TShared);
00038   static Handle_Standard_Type aType2 = STANDARD_TYPE(Standard_Transient);
00039   if ( aType2.IsNull()) aType2 = STANDARD_TYPE(Standard_Transient);
00040 
00041 
00042   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,NULL};
00043   static Handle_Standard_Type _aType = new Standard_Type("BlockFix_BlockFixAPI",
00044                                                          sizeof(BlockFix_BlockFixAPI),
00045                                                          1,
00046                                                          (Standard_Address)_Ancestors,
00047                                                          (Standard_Address)NULL);
00048 
00049   return _aType;
00050 }
00051 
00052 
00053 // DownCast method
00054 //   allow safe downcasting
00055 //
00056 const Handle(BlockFix_BlockFixAPI) Handle(BlockFix_BlockFixAPI)::DownCast(const Handle(Standard_Transient)& AnObject)
00057 {
00058   Handle(BlockFix_BlockFixAPI) _anOtherObject;
00059 
00060   if (!AnObject.IsNull()) {
00061      if (AnObject->IsKind(STANDARD_TYPE(BlockFix_BlockFixAPI))) {
00062        _anOtherObject = Handle(BlockFix_BlockFixAPI)((Handle(BlockFix_BlockFixAPI)&)AnObject);
00063      }
00064   }
00065 
00066   return _anOtherObject ;
00067 }
00068 const Handle(Standard_Type)& BlockFix_BlockFixAPI::DynamicType() const
00069 {
00070   return STANDARD_TYPE(BlockFix_BlockFixAPI) ;
00071 }
00072 Standard_Boolean BlockFix_BlockFixAPI::IsKind(const Handle(Standard_Type)& AType) const
00073 {
00074   return (STANDARD_TYPE(BlockFix_BlockFixAPI) == AType || MMgt_TShared::IsKind(AType));
00075 }
00076 Handle_BlockFix_BlockFixAPI::~Handle_BlockFix_BlockFixAPI() {}
00077