Back to index

salome-gui  6.5.0
SALOME_Filter.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 //  SALOME SALOMEGUI : implementation of desktop and GUI kernel
00024 //  File   : SALOME_Filter.ixx
00025 //  Module : SALOME
00026 //
00027 #include "SALOME_Filter.jxx"
00028 
00029 #ifndef _Standard_TypeMismatch_HeaderFile
00030 #include <Standard_TypeMismatch.hxx>
00031 #endif
00032 
00033 SALOME_Filter::~SALOME_Filter() {}
00034  
00035 
00036 
00037 Standard_EXPORT Handle_Standard_Type& SALOME_Filter_Type_()
00038 {
00039 
00040     static Handle_Standard_Type aType1 = STANDARD_TYPE(MMgt_TShared);
00041   if ( aType1.IsNull()) aType1 = STANDARD_TYPE(MMgt_TShared);
00042   static Handle_Standard_Type aType2 = STANDARD_TYPE(Standard_Transient);
00043   if ( aType2.IsNull()) aType2 = STANDARD_TYPE(Standard_Transient);
00044  
00045 
00046   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,NULL};
00047   static Handle_Standard_Type _aType = new Standard_Type("SALOME_Filter",
00048                                                          sizeof(SALOME_Filter),
00049                                                          1,
00050                                                          (Standard_Address)_Ancestors,
00051                                                          (Standard_Address)NULL);
00052 
00053   return _aType;
00054 }
00055 
00056 
00057 // DownCast method
00058 //   allow safe downcasting
00059 //
00060 const Handle(SALOME_Filter) Handle(SALOME_Filter)::DownCast(const Handle(Standard_Transient)& AnObject) 
00061 {
00062   Handle(SALOME_Filter) _anOtherObject;
00063 
00064   if (!AnObject.IsNull()) {
00065      if (AnObject->IsKind(STANDARD_TYPE(SALOME_Filter))) {
00066        _anOtherObject = Handle(SALOME_Filter)((Handle(SALOME_Filter)&)AnObject);
00067      }
00068   }
00069 
00070   return _anOtherObject ;
00071 }
00072 const Handle(Standard_Type)& SALOME_Filter::DynamicType() const 
00073 { 
00074   return STANDARD_TYPE(SALOME_Filter) ; 
00075 }
00076 Standard_Boolean SALOME_Filter::IsKind(const Handle(Standard_Type)& AType) const 
00077 { 
00078   return (STANDARD_TYPE(SALOME_Filter) == AType || MMgt_TShared::IsKind(AType)); 
00079 }
00080 Handle_SALOME_Filter::~Handle_SALOME_Filter() {}
00081