summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/CosEvent/ProxyPushSupplier_i.h
blob: 43a348fcef6a3c1c728f7ab5fa87d4360175020c (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
/* -*- C++ -*- */
// $Id$
//
// ============================================================================
//
// = LIBRARY
//   TAO services
//
// = FILENAME
//   ProxyPushSupplier_i
//
// = AUTHOR
//   Pradeep Gore <pradeep@cs.wustl.edu>
//
// = DESCRIPTION
//   This has the implementation of the CosEventChannelAdmin::ProxyPushSupplier interface.
// ======================================================================================

#if !defined (_PROXYPUSHSUPPLIER_H)
#define _PROXYPUSHSUPPLIER_H

#include "orbsvcs/RtecEventChannelAdminC.h"
#include "orbsvcs/CosEventChannelAdminC.h"

class ProxyPushSupplier_i : public POA_CosEventChannelAdmin::ProxyPushSupplier
{
  // = TITLE
  //   class ProxyPushSupplier-i implements the ProxyPushConsumer interface.
  // = DESCRIPTION
  //   This implementation of the ProxyPushSupplier uses the RtecEventChannelAdmin::ProxyPushSupplier.
  //
public:
  // Initialization and termination methods.
  ProxyPushSupplier_i (const RtecEventChannelAdmin::ConsumerQOS &qos,
   RtecEventChannelAdmin::ProxyPushSupplier_ptr pps);

  ~ProxyPushSupplier_i ();

  virtual void disconnect_push_supplier (CORBA::Environment &TAO_TRY_ENV);

  virtual void connect_push_consumer(CosEventComm::PushConsumer_ptr push_consumer,
                                     CORBA::Environment &TAO_TRY_ENV);
private:
  const RtecEventChannelAdmin::ConsumerQOS &qos_;
  RtecEventChannelAdmin::ProxyPushSupplier_ptr pps_;
};

#endif //_PROXYPUSHSUPPLIER_H