event_supplier.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 67 行
H
67 行
/* -*- C++ -*- */
// ============================================================================
/**
* @file Event_Supplier.h
*
* Event_Supplier.h,v 1.3 2002/10/04 12:02:45 dhanvey Exp
*
* An example of using the Event_Logging_Service.
*
*
*
* @author D A Hanvey (d.hanvey@qub.ac.uk)
*/
// ============================================================================
#ifndef EVENT_SUPPLIER_H
#define EVENT_SUPPLIER_H
#include "orbsvcs/DsEventLogAdminC.h"
#include "orbsvcs/CosEventCommS.h"
#include "orbsvcs/CosNamingC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
class Supplier : public POA_CosEventComm::PushSupplier
{
// = TITLE
// Simple supplier object
//
// = DESCRIPTION
// This class is a supplier of events.
//
public:
Supplier (void);
// Constructor
int run (int argc, char* argv[]);
// Run the test
// = The CosEventComm::PushSupplier methods
virtual void disconnect_push_supplier (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
// The skeleton methods.
private:
// = Data Members
CORBA::ORB_var orb_;
// The ORB that we use.
CosNaming::NamingContext_var naming_context_;
// Handle to the name service.
DsEventLogAdmin::EventLogFactory_var event_log_factory_;
// The Event Log Factory that generates the events to be consumed.
CosEventChannelAdmin::ProxyPushConsumer_var consumer_;
// The proxy that we are connected to.
};
#endif /* EVENT_SUPPLIER_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?