00001 // Copyright (C) 2007-2011 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 Utils : general SALOME's definitions and tools 00024 // File : Utils_ORB_INIT.hxx 00025 // Author : Antoine YESSAYAN, EDF 00026 // Module : SALOME 00027 // $Header: /home/server/cvs/KERNEL/KERNEL_SRC/src/Utils/Utils_ORB_INIT.hxx,v 1.7.2.1.10.1.6.1 2011-06-01 13:51:56 vsr Exp $ 00028 // 00029 # if ! defined( __ORB_INIT_HXX__ ) 00030 # define __ORB_INIT_HXX__ 00031 00032 #include <SALOMEconfig.h> 00033 00034 #include "SALOME_Utils.hxx" 00035 00036 #include "omniORB4/CORBA.h" 00037 00038 #include "Utils_CommException.hxx" 00039 00040 #ifdef WNT 00041 #pragma warning(disable:4251) // Warning DLL Interface ... 00042 #pragma warning(disable:4290) // Warning Exception ... 00043 #endif 00044 00050 class UTILS_EXPORT ORB_INIT 00051 { 00052 00053 private : 00054 CORBA::ORB_var _orb ; 00055 00056 public : 00057 ORB_INIT( void ); 00058 virtual ~ORB_INIT(); 00059 CORBA::ORB_var & operator() ( int argc , char **argv ) throw( CommException ) ; 00060 00061 inline CORBA::ORB_var &orb( void ); 00062 } ; 00063 00064 inline CORBA::ORB_var &ORB_INIT::orb( void ) 00065 { 00066 return _orb ; 00067 } 00068 00069 # endif