本文整理汇总了C++中corba::Object_var::_interface_repository_id方法的典型用法代码示例。如果您正苦于以下问题:C++ Object_var::_interface_repository_id方法的具体用法?C++ Object_var::_interface_repository_id怎么用?C++ Object_var::_interface_repository_id使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类corba::Object_var
的用法示例。
在下文中一共展示了Object_var::_interface_repository_id方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: foo
int
foo (int argc, ACE_TCHAR *argv[], bool shutdown)
{
IF_EXE_M_R::IF_ExeCtrlData_var client;
IF_EXE_M_R::Test_Struct ts;
IF_EXE_M_R::CORBA_BaseFOOG FOOG;
IF_EXE_M_R::CORBA_FOOIInPlan bs;
FOOG.FOOD = IF_EXE_M_R::ENUM_FOOD (0);
FOOG.FOOIID = CORBA::string_dup ("A_FOOG");
ACE_OS::memset (&FOOG.startPosition,
0, sizeof(IF_EXE_M_R::CORBA_LatLongFOOB));
ACE_OS::memset (&FOOG.endPosition,
0, sizeof(IF_EXE_M_R::CORBA_LatLongFOOB));
FOOG.FOOBReferenceStartPosition = IF_EXE_M_R::FOOBMode_E (0);
FOOG.averageFOOHFOOB = 0.0;
FOOG.FOOBControlMode = IF_EXE_M_R::ENUM_ControlMode (0);
FOOG.datasetVersion = 1L;
FOOG.maxHorizontalFOOU = 0L;
FOOG.maxVerticalFOOU = 0L;
FOOG.FOOTDistance = 0.0;
FOOG.startFOOA = 0.0;
FOOG.FOOTDuration = 0.0;
FOOG.endFOOA = 0.0;
FOOG.FOOTEnergyConsum = 0.0;
FOOG.FOOAReference = IF_EXE_M_R::FOOAMode_E (0);
FOOG.FOOAControlMode = IF_EXE_M_R::ENUM_ControlMode (0);
FOOG.FOOBReferenceEndPosition = IF_EXE_M_R::FOOBMode_E (0);
FOOG.economyMode = IF_EXE_M_R::ENUM_Selection (0);
FOOG.cl_FOOSMode = IF_EXE_M_R::ENUM_CL_FOOSMode (0);
FOOG.transitionStatus = IF_EXE_M_R::ENUM_TransitionStatus (0);
FOOG.FOOKTypeStart = IF_EXE_M_R::ENUM_FOOKType (0);
FOOG.activeComponents.length (0);
FOOG.FOOKTypeEnd = IF_EXE_M_R::ENUM_FOOKType (0);
bs.type = IF_EXE_M_R::BASE_FOOG;
bs.data.FOOVFOOG (FOOG);
ts.l = 42L;
ts.whatEver <<= bs;
try
{
if (parse_args (argc, argv) != 0)
return 1;
CORBA::Object_var obj = m_ORB_p->string_to_object (ior);
if (CORBA::is_nil (obj.in ()))
{
ACE_ERROR_RETURN ((LM_DEBUG,
"Nil Test::Hello reference <%s>\n",
ior),
1);
}
ACE_DEBUG ((LM_DEBUG, "RepositoryID: %s\n", obj->_interface_repository_id()));
client = IF_EXE_M_R::IF_ExeCtrlData::_narrow (obj.in ());
if (CORBA::is_nil (client.in ()))
{
ACE_ERROR_RETURN ((LM_DEBUG,
"Reference is not of type IF_EXE_M_R::IF_ExeCtrlData\n"),
1);
}
client->foo (ts);
if (shutdown)
{
client->shutdown ();
}
}
catch (const CORBA::Exception &ex)
{
ex._tao_print_exception ("Exception caught:");
}
return 0;
}