本文整理汇总了C++中iortable::Table_var::unbind方法的典型用法代码示例。如果您正苦于以下问题:C++ Table_var::unbind方法的具体用法?C++ Table_var::unbind怎么用?C++ Table_var::unbind使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类iortable::Table_var
的用法示例。
在下文中一共展示了Table_var::unbind方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: catch
int
TAO_Naming_Server::fini (void)
{
// First get rid of the multi cast handler
if (this->ior_multicast_)
{
orb_->orb_core()->reactor ()->remove_handler (this->ior_multicast_,
ACE_Event_Handler::READ_MASK | ACE_Event_Handler::DONT_CALL);
delete this->ior_multicast_;
this->ior_multicast_ = 0;
}
// Destroy the child POA ns_poa that is created when initializing
// the Naming Service
try
{
if (!CORBA::is_nil (this->ns_poa_.in ()))
this->ns_poa_->destroy (1, 1);
CORBA::Object_var table_object =
this->orb_->resolve_initial_references ("IORTable");
IORTable::Table_var adapter =
IORTable::Table::_narrow (table_object.in ());
if (CORBA::is_nil (adapter.in ()))
{
ORBSVCS_ERROR ((LM_ERROR, "Nil IORTable\n"));
}
else
{
adapter->unbind ("NameService");
}
#if !defined (CORBA_E_MICRO)
CORBA::Object_var svc =
this->orb_->unregister_initial_reference ("NameService");
#endif /* CORBA_E_MICRO */
}
catch (const CORBA::Exception&)
{
// Ignore
}
naming_context_ = CosNaming::NamingContext::_nil ();
ns_poa_ = PortableServer::POA::_nil ();
root_poa_ = PortableServer::POA::_nil ();
orb_ = CORBA::ORB::_nil ();
#if !defined (CORBA_E_MICRO)
delete this->context_index_;
#endif /* CORBA_E_MICRO */
return 0;
}