direct_supplier.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 57 行
CPP
57 行
// Direct_Supplier.cpp,v 1.4 2003/08/24 13:50:14 jwillemsen Exp
#include "Direct_Supplier.h"
#if ! defined (__ACE_INLINE__)
#include "Direct_Supplier.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Notify, TAO_Notify_Tests_Direct_Supplier, "Direct_Supplier.cpp,v 1.4 2003/08/24 13:50:14 jwillemsen Exp")
#include "LookupManager.h"
TAO_Notify_Tests_Direct_Supplier::TAO_Notify_Tests_Direct_Supplier (ACE_CString& target)
: target_ (target)
{
}
TAO_Notify_Tests_Direct_Supplier::~TAO_Notify_Tests_Direct_Supplier ()
{
}
void
TAO_Notify_Tests_Direct_Supplier::connect (ACE_ENV_SINGLE_ARG_DECL)
{
// Get the POA
PortableServer::POA_var poa;
LOOKUP_MANAGER->resolve (poa, this->poa_name_.c_str () ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
// set the POA
this->set_poa (poa.in () ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
// Get hold of the reference.
CosNotifyComm::StructuredPushSupplier_var supplier_ref =
this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
// Register the activated object.
LOOKUP_MANAGER->_register (supplier_ref.in (), this->name_.c_str () ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
// Resolve the target object.
LOOKUP_MANAGER->resolve (this->target_object_, this->target_.c_str () ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
void
TAO_Notify_Tests_Direct_Supplier::send_event (const CosNotification::StructuredEvent& event
ACE_ENV_ARG_DECL)
{
ACE_ASSERT (!CORBA::is_nil (this->target_object_.in ()));
this->target_object_->push_structured_event (event ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?