📄 proxypushsupplier.cpp
字号:
// ProxyPushSupplier.cpp,v 1.6 2003/09/04 03:27:24 ossama Exp
#include "ProxyPushSupplier.h"
#if ! defined (__ACE_INLINE__)
#include "ProxyPushSupplier.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Notify, TAO_Notify_ProxyPushSupplier, "ProxyPushSupplier.cpp,v 1.6 2003/09/04 03:27:24 ossama Exp")
#include "tao/debug.h"
#include "PushConsumer.h"
TAO_Notify_ProxyPushSupplier::TAO_Notify_ProxyPushSupplier (void)
{
}
TAO_Notify_ProxyPushSupplier::~TAO_Notify_ProxyPushSupplier ()
{
}
void
TAO_Notify_ProxyPushSupplier::destroy (ACE_ENV_SINGLE_ARG_DECL)
{
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG, "In TAO_Notify_ProxyPushConsumer::destroy \n"));
if (this->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER) == 1)
return;
ACE_CHECK;
}
void
TAO_Notify_ProxyPushSupplier::release (void)
{
if (this->consumer_)
this->consumer_->release ();
delete this;
//@@ inform factory
}
void
TAO_Notify_ProxyPushSupplier::connect_any_push_consumer (CosEventComm::PushConsumer_ptr push_consumer
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((
CORBA::SystemException,
CosEventChannelAdmin::AlreadyConnected,
CosEventChannelAdmin::TypeError
))
{
// Convert Consumer to Base Type
TAO_Notify_PushConsumer* consumer;
ACE_NEW_THROW_EX (consumer,
TAO_Notify_PushConsumer (this),
CORBA::NO_MEMORY ());
consumer->init (push_consumer ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
this->connect (consumer ACE_ENV_ARG_PARAMETER);
}
void
TAO_Notify_ProxyPushSupplier::disconnect_push_supplier (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
this->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
}
CosNotifyChannelAdmin::ProxyType
TAO_Notify_ProxyPushSupplier::MyType (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
return CosNotifyChannelAdmin::PUSH_ANY;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -