RT_Stub_Factory.cpp

Go to the documentation of this file.
00001 // $Id: RT_Stub_Factory.cpp 76593 2007-01-25 19:19:27Z johnnyw $
00002 #include "tao/RTCORBA/RT_Stub_Factory.h"
00003 
00004 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
00005 
00006 #include "tao/RTCORBA/RT_Stub.h"
00007 
00008 #include "tao/ORB_Constants.h"
00009 #include "tao/SystemException.h"
00010 
00011 #include "ace/Log_Msg.h"
00012 
00013 
00014 ACE_RCSID (RTCORBA,
00015            RT_TAO_Stub_Factory,
00016            "$Id: RT_Stub_Factory.cpp 76593 2007-01-25 19:19:27Z johnnyw $")
00017 
00018 
00019 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00020 
00021 TAO_RT_Stub_Factory::~TAO_RT_Stub_Factory (void)
00022 {
00023 }
00024 
00025 TAO_Stub *
00026 TAO_RT_Stub_Factory::create_stub (const char *repository_id,
00027                                   const TAO_MProfile &profiles,
00028                                   TAO_ORB_Core *orb_core)
00029 {
00030   TAO_Stub *retval = 0;
00031 
00032   ACE_NEW_THROW_EX (retval,
00033                     TAO_RT_Stub (repository_id, profiles, orb_core),
00034                     CORBA::NO_MEMORY (TAO::VMCID,
00035                                       CORBA::COMPLETED_MAYBE));
00036 
00037   return retval;
00038 }
00039 
00040 TAO_END_VERSIONED_NAMESPACE_DECL
00041 
00042 // ****************************************************************
00043 
00044 ACE_STATIC_SVC_DEFINE (TAO_RT_Stub_Factory,
00045                        ACE_TEXT ("RT_Stub_Factory"),
00046                        ACE_SVC_OBJ_T,
00047                        &ACE_SVC_NAME (TAO_RT_Stub_Factory),
00048                        ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
00049                        0)
00050 ACE_FACTORY_DEFINE (TAO_RTCORBA, TAO_RT_Stub_Factory)
00051 
00052 #endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */

Generated on Tue Feb 2 17:42:49 2010 for TAO_RTCORBA by  doxygen 1.4.7