本文整理汇总了C++中portableserver::POAManager_var::get_id方法的典型用法代码示例。如果您正苦于以下问题:C++ POAManager_var::get_id方法的具体用法?C++ POAManager_var::get_id怎么用?C++ POAManager_var::get_id使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类portableserver::POAManager_var
的用法示例。
在下文中一共展示了POAManager_var::get_id方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: policies
//.........这里部分代码省略.........
VERIFY_CONDITION (got_expected_exception);
if (verbose)
ACE_DEBUG ((LM_DEBUG,ACE_TEXT ("%s\n"),
(pretest == fail) ? ACE_TEXT ("passed") : ACE_TEXT ("failed")));
if (! got_expected_exception)
return 1;
{
if (verbose)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("Implicitly create a POAManagers: ")));
pretest = fail;
// Implicitly create a POAManager instance which has an automatically
// assigned name.
PortableServer::POA_var child_poa =
root_poa->create_POA ("childPOA2",
PortableServer::POAManager::_nil (),
policies);
PortableServer::POAManager_var poa_manager_2
= child_poa->the_POAManager ();
VERIFY_CONDITION (!CORBA::is_nil(poa_manager_2.in()));
if (verbose)
ACE_DEBUG ((LM_DEBUG,ACE_TEXT ("%s\n"),
(pretest == fail) ? ACE_TEXT ("passed") : ACE_TEXT ("failed")));
if (CORBA::is_nil(poa_manager_2.in()))
return 1;
CORBA::String_var poa_manager_2_name
= poa_manager_2->get_id ();
if (verbose)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("Implicitly created POAManager's ID: [%C]\n"),
poa_manager_2_name.in()));
if (ACE_OS::strlen(poa_manager_2_name.in()) == 0)
return 1;
if (verbose)
ACE_DEBUG ((LM_DEBUG, ACE_TEXT("List POAManagers: ")));
pretest = fail;
PortableServer::POAManagerFactory::POAManagerSeq_var managers
= poa_manager_factory->list ();
VERIFY_CONDITION (managers->length () == 3);
if (verbose)
ACE_DEBUG ((LM_DEBUG,ACE_TEXT ("%s\n"),
(pretest == fail) ? ACE_TEXT ("passed") : ACE_TEXT ("failed")));
PortableServer::POAManager_var root_poa_manager
= root_poa->the_POAManager();
for (CORBA::ULong i = 0; i < managers->length(); ++i)
{
CORBA::String_var name = managers[i]->get_id ();
if (verbose)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("Validate listed POAManager [%C]: "),
name.in()));
pretest = fail;