📄 echoeventconsumer_i.h
字号:
// EchoEventConsumer_i.h
// Implements a PushConsumer.
#ifndef _EchoEventConsumer_i_h_
#define _EchoEventConsumer_i_h_
#include <orbsvcs/CosEventCommS.h> // for POA_CosEventComm::PushConsumer
#include <orbsvcs/CosEventChannelAdminC.h>
class EchoEventConsumer_i : public virtual POA_CosEventComm::PushConsumer
{
public:
// Constructor
EchoEventConsumer_i(CORBA::ORB_ptr orb,
CosEventChannelAdmin::ProxyPushSupplier_ptr supplier,
int event_limit);
// Override operations from PushConsumer interface.
virtual void push(
const CORBA::Any & data)
throw(CORBA::SystemException);
virtual void disconnect_push_consumer()
throw(CORBA::SystemException);
private:
CORBA::ORB_var orb_;
CosEventChannelAdmin::ProxyPushSupplier_var supplier_;
int event_limit_;
};
#endif // _EchoEventConsumer_i_h_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -