diff options
author | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-03-18 22:23:37 +0000 |
---|---|---|
committer | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-03-18 22:23:37 +0000 |
commit | 06a34455bd98b1379cc69bbc5b2cf085e0fc0d9b (patch) | |
tree | 8815ce3b3a85c3c4285429295f338e00ea4497f4 /CIAO/DAnCE/NodeApplication/Container_Impl.inl | |
parent | d66fcc9b4aaec8e88eeb83fc578fdf8a3cc963de (diff) | |
download | ATCD-Static_RT_DAnCE.tar.gz |
Diffstat (limited to 'CIAO/DAnCE/NodeApplication/Container_Impl.inl')
-rw-r--r-- | CIAO/DAnCE/NodeApplication/Container_Impl.inl | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/CIAO/DAnCE/NodeApplication/Container_Impl.inl b/CIAO/DAnCE/NodeApplication/Container_Impl.inl new file mode 100644 index 00000000000..5473cfcb434 --- /dev/null +++ b/CIAO/DAnCE/NodeApplication/Container_Impl.inl @@ -0,0 +1,39 @@ +/* -*- C++ -*- */ +// $Id$ + +ACE_INLINE +CIAO::Container_Impl::Container_Impl (CORBA::ORB_ptr o, + PortableServer::POA_ptr p, + ::Deployment::NodeApplication_ptr server, + NodeApp_Configurator &c, + const Static_Config_EntryPoints_Maps* static_entrypts_maps) + : orb_ (CORBA::ORB::_duplicate (o)), + poa_ (PortableServer::POA::_duplicate (p)), + nodeapp_ (::Deployment::NodeApplication::_duplicate (server)), + configurator_ (c), + static_entrypts_maps_ (static_entrypts_maps) +{ +} + +ACE_INLINE void +CIAO::Container_Impl::set_objref (Deployment::Container_ptr o) +{ + CIAO_TRACE("CIAO::Container_Imp::set_objref"); + + if (!CORBA::is_nil (this->objref_.in ())) + throw CORBA::BAD_INV_ORDER (); + + this->objref_ = Deployment::Container::_duplicate (o); +} + +ACE_INLINE ::Deployment::Container_ptr +CIAO::Container_Impl::get_objref () +{ + CIAO_TRACE("CIAO::Container_Imp::get_objref"); + + if (CORBA::is_nil (this->objref_.in ())) + { + this->objref_ = this->_this (); + } + return this->objref_.in (); +} |