本文整理汇总了C++中ACE_CString::rep方法的典型用法代码示例。如果您正苦于以下问题:C++ ACE_CString::rep方法的具体用法?C++ ACE_CString::rep怎么用?C++ ACE_CString::rep使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ACE_CString
的用法示例。
在下文中一共展示了ACE_CString::rep方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setValue
bool BACIValue::setValue(const ACE_CString &value)
{
if (type_m != type_string )
if (!setType(type_string))
return false;
if (ptr_m.pointer) delete (ACE_TCHAR*)ptr_m.pointer;
//ptr_m.pointer = new ACE_CString(value);
ACE_TCHAR * str;// = new ACE_TCHAR[ACE_OS::strlen(value.length())+1];
str = value.rep();
ptr_m.pointer = str;
return true;
}
示例2: exit
DDSHelper::DDSHelper(CORBA::String_var channelName)
{
channel_name = channelName;
ACE_CString managerName;
try
{
managerName = maci::MACIHelper::getManagerHostname(1,NULL);
}
catch(CORBA::TRANSIENT &ex)
{
ACS_STATIC_LOG(LM_FULL_INFO, "DDSHelper::DDSHelper", (LM_ERROR,
"Manager ref null."));
exit(1);
}
ACE_CString tmpRoute = "corbaloc:iiop:";
tmpRoute += managerName;
tmpRoute +=":3999/DCPSInfoRepo";
char* route = tmpRoute.rep();
init(channelName, route);
}
示例3: get_opt
//.........这里部分代码省略.........
{
ACE_ERROR_RETURN ((LM_ERROR,
"%s cannot be resolved, exception reason = "
"Invalid Name"
"\n",
get_opt.opt_arg ()),
-1);
}
catch (const CosNaming::NamingContext::CannotProceed&)
{
ACE_ERROR_RETURN ((LM_ERROR,
"%s cannot be resolved, exception reason = "
"Cannot Proceed"
"\n",
get_opt.opt_arg ()),
-1);
}
catch (const CORBA::Exception&)
{
ACE_ERROR_RETURN ((LM_ERROR,
"%s cannot be resolved, exception reason = "
"Unexpected Exception"
"\n",
argvw[0]),
-1);
}
ACE_CString aString;
aString = orb_var->object_to_string (server_object.in ());
ACE_DEBUG ((LM_DEBUG,
"\nhere is the IOR\n%C\n\n",
aString.rep ()));
ACE_CString str;
b = catior_impl.decode(aString, str);
ACE_DEBUG ((LM_DEBUG, "%s", str.c_str()));
}
catch (const CORBA::Exception&)
{
ACE_ERROR_RETURN ((LM_ERROR,
"%s cannot be resolved, exception reason = "
"Unexpected Exception"
"\n",
argvw[0]),
-1);
}
if (b == 1)
ACE_DEBUG ((LM_DEBUG,
"catior returned true\n"));
else
ACE_DEBUG ((LM_DEBUG,
"catior returned false\n"));
break;
}
case 'f':
{
int have_some_input = 0;
int decode_pass_count = 0;
// Read the file into a CORBA::String_var.
ACE_DEBUG ((LM_DEBUG,
"reading the file %s\n",
get_opt.opt_arg ()));