blob: 059a7d3bd6b99fbcb24fe6d821181772a75d4867 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
//
// $Id$
//
#include "Receiver_Factory.h"
#include "Receiver.h"
ACE_RCSID(Throughput, Receiver_Factory, "$Id$")
Receiver_Factory::Receiver_Factory (CORBA::ORB_ptr orb)
: orb_ (CORBA::ORB::_duplicate (orb))
{
}
Test::Receiver_ptr
Receiver_Factory::create_receiver (TAO_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
Receiver *receiver_impl;
ACE_NEW_THROW_EX (receiver_impl,
Receiver,
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (Test::Receiver::_nil ());
PortableServer::ServantBase_var transfer_ownership(receiver_impl);
return receiver_impl->_this (TAO_ENV_SINGLE_ARG_PARAMETER);
}
void
Receiver_Factory::shutdown (TAO_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
this->orb_->shutdown (0 TAO_ENV_ARG_PARAMETER);
}
|