本文整理汇总了C++中cosnotifychanneladmin::ProxySupplier_var::_retn方法的典型用法代码示例。如果您正苦于以下问题:C++ ProxySupplier_var::_retn方法的具体用法?C++ ProxySupplier_var::_retn怎么用?C++ ProxySupplier_var::_retn使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cosnotifychanneladmin::ProxySupplier_var
的用法示例。
在下文中一共展示了ProxySupplier_var::_retn方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: INTERNAL
CosNotifyChannelAdmin::ProxySupplier_ptr
TAO_MonitorConsumerAdmin::obtain_notification_push_supplier (
CosNotifyChannelAdmin::ClientType ctype,
CosNotifyChannelAdmin::ProxyID_out proxy_id)
{
// First, make sure we can get down to the real ec type.
TAO_MonitorEventChannel* ec =
dynamic_cast<TAO_MonitorEventChannel*> (this->ec_.get ());
if (ec == 0)
{
throw CORBA::INTERNAL ();
}
// Next, create the push consumer proxy.
CosNotifyChannelAdmin::ProxySupplier_var proxy =
this->TAO_Notify_ConsumerAdmin::obtain_notification_push_supplier (
ctype, proxy_id);
// Next, map the proxy id to the name in the ec.
char name[64];
ACE_OS::sprintf (name, "%d", proxy_id);
ec->map_supplier_proxy (proxy_id, name);
return proxy._retn ();
}
示例2:
CosNotifyChannelAdmin::ProxySupplier_ptr
TAO_Notify_ConsumerAdmin::obtain_notification_push_supplier_with_qos (CosNotifyChannelAdmin::ClientType ctype,
CosNotifyChannelAdmin::ProxyID_out proxy_id,
const CosNotification::QoSProperties & initial_qos
)
{
CosNotifyChannelAdmin::ProxySupplier_var proxy =
TAO_Notify_PROPERTIES::instance()->builder()->build_proxy (this
, ctype
, proxy_id
, initial_qos);
this->self_change ();
return proxy._retn ();
}