Back to index

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