blob: d3c7c3c763a6360e8a0d4e0769f354a6f7b7f177 (
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
59
|
/* -*- C++ -*- */
//=============================================================================
/**
* @file SupplierAdmin_i.h
*
* @author Pradeep Gore <pradeep@cs.wustl.edu>
*
* This has the implementation of the
* CosEventChannelAdmin::SupplierAdmin interface.
*/
//=============================================================================
#ifndef SUPPLIER_ADMIN_I_H
#define SUPPLIER_ADMIN_I_H
#include /**/ "ace/pre.h"
#include "orbsvcs/RtecEventChannelAdminC.h"
#include "orbsvcs/CosEventChannelAdminC.h"
#include "ProxyPushConsumer_i.h"
class TAO_RTEC_COSEC_Export TAO_CosEC_SupplierAdmin_i :
public virtual POA_CosEventChannelAdmin::SupplierAdmin
{
// = TITLE
// class TAO_CosEC_SupplierAdmin_i implements the SupplierAdmin interface.
//
// = DESCRIPTION
// This COS-compliant implementation of the SupplierAdmin uses
// TAO's RtecEventChannelAdmin::SupplierAdmin.
public:
/// Constructor.
TAO_CosEC_SupplierAdmin_i ();
/// Destructor.
~TAO_CosEC_SupplierAdmin_i () = default;
/// Initializes the SupplierAdmin. Returns 0 on success, -1 on
/// error.
int init (const RtecEventChannelAdmin::SupplierQOS &supplierqos,
RtecEventChannelAdmin::SupplierAdmin_ptr rtec_supplieradmin);
/// Returns a new ProxyPushConsumer_ptr.
virtual CosEventChannelAdmin::ProxyPushConsumer_ptr obtain_push_consumer ();
/// Returns a new ProxyPullConsumer_ptr.
virtual CosEventChannelAdmin::ProxyPullConsumer_ptr obtain_pull_consumer(void);
private:
/// The SupplierQOS specified by the user of this class.
RtecEventChannelAdmin::SupplierQOS qos_;
/// The RtecEventChannelAdmin::SupplierAdmin specified by the user of
/// this class.
RtecEventChannelAdmin::SupplierAdmin_var rtec_supplieradmin_;
};
#include /**/ "ace/post.h"
#endif /* SUPPLIER_ADMIN_I_H */
|