eventchannel_i.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 105 行
H
105 行
/* -*- C++ -*- */
// EventChannel_i.h,v 1.4 2003/07/21 23:51:30 dhinton Exp
// ============================================================================
//
// = LIBRARY
// TAO services
//
// = FILENAME
// EventChannel_i
//
// = AUTHOR
// Pradeep Gore <pradeep@cs.wustl.edu>
//
// = DESCRIPTION
// This has the implementation of the
// CosEventChannelAdmin::EventChannel interface.
//
// ============================================================================
#ifndef EVENTCHANNEL_I_H
#define EVENTCHANNEL_I_H
#include /**/ "ace/pre.h"
#include "orbsvcs/RtecEventChannelAdminC.h"
#include "orbsvcs/CosEventChannelAdminC.h"
#include "ConsumerAdmin_i.h"
#include "SupplierAdmin_i.h"
#if defined(_MSC_VER)
#if (_MSC_VER >= 1200)
#pragma warning(push)
#endif /* _MSC_VER >= 1200 */
#pragma warning(disable:4250)
#endif /* _MSC_VER */
class TAO_RTEC_COSEC_Export TAO_CosEC_EventChannel_i :
public virtual POA_CosEventChannelAdmin::EventChannel,
public virtual PortableServer::RefCountServantBase
{
// = TITLE
// class TAO_CosEC_EventChannel_i implements the standard Cos EventChannel
// interface.
//
// = DESCRIPTION
// This Cos EventChannel implementation is based on TAO's
// Real-time Event Channel. This TAO_CosEC_EventChannel_i implementation
// delegates all its responsibility to corresponding objects from
// the real-time implementation.
//
public:
// = Initialization and termination methods.
TAO_CosEC_EventChannel_i (void);
// Constructor.
~TAO_CosEC_EventChannel_i (void);
// Destructor.
int init (const RtecEventChannelAdmin::ConsumerQOS &consumerqos,
const RtecEventChannelAdmin::SupplierQOS &supplierqos,
RtecEventChannelAdmin::EventChannel_ptr rtec
ACE_ENV_ARG_DECL);
// Activates the ConsumerAdmin and SupplierAdmin servants. Returns
// -1 on error, 0 on success.
virtual CosEventChannelAdmin::ConsumerAdmin_ptr for_consumers (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
// The for_consumers method will return the same ConsumerAdmin_ptr
// everytime its called.
virtual CosEventChannelAdmin::SupplierAdmin_ptr for_suppliers (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
// The for_suppliers method will return the same SupplierAdmin_ptr
// everytime its called.
virtual void destroy (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
// Destroys this Event Channel object.
void shutdown (ACE_ENV_SINGLE_ARG_DECL);
// destroys this Event Channel object and <delete>s this object.
private:
TAO_CosEC_ConsumerAdmin_i* consumer_admin_;
// ConsumerAdmin servant object.
TAO_CosEC_SupplierAdmin_i* supplier_admin_;
// SupplierAdmin servant object.
CosEventChannelAdmin::ConsumerAdmin_var consumeradmin_;
// The reference to the ConsumerAdmin interface returned after
// activating the servant in the ORB.
CosEventChannelAdmin::SupplierAdmin_var supplieradmin_;
// The reference to the SupplierAdmin interface returned after
// activating the servant in the ORB.
};
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
#pragma warning(pop)
#endif /* _MSC_VER */
#include /**/ "ace/post.h"
#endif /* EVENTCHANNEL_I_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?