blob: cd1aea3253a909831e152b5c97ba7de6d5f24e43 (
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
34
35
36
37
|
/* -*- C++ -*- */
// $Id$
ACE_INLINE
CIAO::Container_Impl::Container_Impl (CORBA::ORB_ptr o,
PortableServer::POA_ptr p,
Components::Deployment::ComponentServer_ptr s,
int static_config_flag,
const Static_Config_EntryPoints_Maps* static_entrypts_maps)
: orb_ (CORBA::ORB::_duplicate (o)),
poa_ (PortableServer::POA::_duplicate (p)),
comserv_ (Components::Deployment::ComponentServer::_duplicate (s)),
static_config_flag_ (static_config_flag),
static_entrypts_maps_ (static_entrypts_maps)
{
}
ACE_INLINE void
CIAO::Container_Impl::set_objref (Components::Deployment::Container_ptr o
ACE_ENV_ARG_DECL)
{
if (!CORBA::is_nil (this->objref_.in ()))
ACE_THROW (CORBA::BAD_INV_ORDER ());
this->objref_ = Components::Deployment::Container::_duplicate (o);
}
ACE_INLINE Components::Deployment::Container_ptr
CIAO::Container_Impl::get_objref (ACE_ENV_SINGLE_ARG_DECL)
{
if (CORBA::is_nil (this->objref_.in ()))
{
this->objref_ = this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
}
return this->objref_.in ();
}
|