blob: 266b62bfb4749da86232ad942458328f367e8c33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/* -*- C++ -*- */
// $Id$
//
// ============================================================================
//
// = LIBRARY
// TAO services
//
// = FILENAME
// ProxyPushConsumer_i
//
// = AUTHOR
// Pradeep Gore <pradeep@cs.wustl.edu>
//
// = DESCRIPTION
// This has the implementation of the CosEventChannelAdmin::ProxyPushConsumer interface.
// ======================================================================================
#if !defined (_PROXYPUSHCONSUMER_H)
#define _PROXYPUSHCONSUMER_H
#include "orbsvcs/RtecEventChannelAdminS.h"
#include "orbsvcs/CosEventChannelAdminS.h"
class ProxyPushConsumer_i : public
POA_CosEventChannelAdmin::ProxyPushConsumer
{
// = TITLE
// class ProxyPushConsumer_i implements the ProxyPushConsumer interface.
// = DESCRIPTION
// This implementation of the ProxyPushConsumer uses the RtecEventChannelAdmin::ProxyPushConsumer.
//
public:
// = Initialization and termination methods.
ProxyPushConsumer_i(const RtecEventChannelAdmin::SupplierQOS &qos,
RtecEventChannelAdmin::ProxyPushConsumer_ptr ppc);
~ProxyPushConsumer_i ();
virtual void push (const CORBA::Any &data,
CORBA::Environment &TAO_TRY_ENV);
// Suppliers call this method to pass data to connected consumers.
virtual void disconnect_push_consumer (CORBA::Environment &TAO_TRY_ENV);
// Disconnects the supplier from the event communication.
virtual void connect_push_supplier(CosEventComm::PushSupplier_ptr push_supplier,
CORBA::Environment &TAO_TRY_ENV);
// Connects a push supplier.
private:
const RtecEventChannelAdmin::SupplierQOS &qos_;
// The SupplierQOS specified by the user of this class.
RtecEventChannelAdmin::ProxyPushConsumer_ptr ppc_;
// The Rtec ProxyPushConsumer specified by the user of this class.
};
#endif // _PROXYPUSHCONSUMER_H
|