echoeventconsumer_i.h
来自「在使用TAO的事件服务过程中」· C头文件 代码 · 共 33 行
H
33 行
// 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 + =
减小字号Ctrl + -
显示快捷键?