Go to the documentation of this file.00001
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 84281 2009-01-30 15:01:17Z wotte $")
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
00041
00042
00043 ACE_STATIC_SVC_DEFINE (TAO_RT_Stub_Factory,
00044 ACE_TEXT ("RT_Stub_Factory"),
00045 ACE_SVC_OBJ_T,
00046 &ACE_SVC_NAME (TAO_RT_Stub_Factory),
00047 ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
00048 0)
00049 ACE_FACTORY_DEFINE (TAO_RTCORBA, TAO_RT_Stub_Factory)
00050
00051 TAO_END_VERSIONED_NAMESPACE_DECL
00052
00053 #endif