Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / RTCORBA / RT_Stub_Factory.cpp
blobe19239771614b0ad4148e3e450f9908b3834c5c3
1 #include "tao/RTCORBA/RT_Stub_Factory.h"
3 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
5 #include "tao/RTCORBA/RT_Stub.h"
7 #include "tao/ORB_Constants.h"
8 #include "tao/SystemException.h"
10 #include "ace/Log_Msg.h"
12 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
14 TAO_RT_Stub_Factory::~TAO_RT_Stub_Factory ()
18 TAO_Stub *
19 TAO_RT_Stub_Factory::create_stub (const char *repository_id,
20 const TAO_MProfile &profiles,
21 TAO_ORB_Core *orb_core)
23 TAO_Stub *retval = 0;
25 ACE_NEW_THROW_EX (retval,
26 TAO_RT_Stub (repository_id, profiles, orb_core),
27 CORBA::NO_MEMORY (TAO::VMCID,
28 CORBA::COMPLETED_MAYBE));
30 return retval;
34 // ****************************************************************
36 ACE_STATIC_SVC_DEFINE (TAO_RT_Stub_Factory,
37 ACE_TEXT ("RT_Stub_Factory"),
38 ACE_SVC_OBJ_T,
39 &ACE_SVC_NAME (TAO_RT_Stub_Factory),
40 ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
42 ACE_FACTORY_DEFINE (TAO_RTCORBA, TAO_RT_Stub_Factory)
44 TAO_END_VERSIONED_NAMESPACE_DECL
46 #endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */