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

#if !defined (_SUPPLIERADMIN_I_H)
#define _SUPPLIERADMIN_I_H

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

class SupplierAdmin_i : public POA_CosEventChannelAdmin::SupplierAdmin
{
  // = TITLE
  //   class SupplierAdmin_i implements the SupplierAdmin interface.
  // = DESCRIPTION+
  //   This implementation of the SupplierAdmin uses the RtecEventChannelAdmin::SupplierAdmin.
  //
public:
  // = Initialization and termination methods.
  SupplierAdmin_i (const RtecEventChannelAdmin::SupplierQOS &qos,
                  RtecEventChannelAdmin::SupplierAdmin_ptr rtec_supplieradmin);

  ~SupplierAdmin_i ();

  virtual CosEventChannelAdmin::ProxyPushConsumer_ptr
    obtain_push_consumer (CORBA::Environment &TAO_TRY_ENV);
  // Returns a new ProxyPushConsumer_ptr.

  virtual CosEventChannelAdmin::ProxyPullConsumer_ptr
    obtain_pull_consumer(CORBA::Environment &TAO_TRY_ENV);
  // Returns a new ProxyPullConsumer_ptr.

private:
  const RtecEventChannelAdmin::SupplierQOS &qos_;
  // The SupplierQOS specified by the user of this class.

  RtecEventChannelAdmin::SupplierAdmin_ptr rtec_supplieradmin_;
  // The RtecEventChannelAdmin::SupplierAdmin specified by the user of this class.
};

#endif // _SUPPLIERADMIN_I_H