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