blob: 86e12e4c8c32c548012addf5cd3313e23cea2f28 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
/* -*- C++ -*- */
// $Id$
//
// ============================================================================
//
// = LIBRARY
// ORBSVCS Real-time Event Channel tests
//
// = FILENAME
// Disconnect.h
//
// = AUTHOR
// Carlos O'Ryan (coryan@cs.wustl.edu)
//
// ============================================================================
#ifndef EC_DISCONNECT_H
#define EC_DISCONNECT_H
#include "orbsvcs/RtecEventChannelAdminS.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
class Consumer : public POA_RtecEventComm::PushConsumer
{
// = TITLE
// Simple consumer object
//
// = DESCRIPTION
//
public:
Consumer (void);
// Constructor
void connect (RtecEventChannelAdmin::ConsumerAdmin_ptr consumer_admin,
const RtecEventChannelAdmin::ConsumerQOS &qos,
CORBA::Environment &ACE_TRY_ENV);
void disconnect (CORBA::Environment &ACE_TRY_ENV);
// Simple connect/disconnect methods..
// = The RtecEventComm::PushConsumer methods
virtual void push (const RtecEventComm::EventSet& events,
CORBA::Environment &_env)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void disconnect_push_consumer (CORBA::Environment &)
ACE_THROW_SPEC ((CORBA::SystemException));
// The skeleton methods.
CORBA::ULong disconnect_count;
// Keep track of the number of disconnect calls received.
private:
RtecEventChannelAdmin::ProxyPushSupplier_var supplier_proxy_;
// The proxy
};
class Supplier : public POA_RtecEventComm::PushSupplier
{
// = TITLE
// Simple supplier object
//
// = DESCRIPTION
//
public:
Supplier (void);
// Constructor
// = The RtecEventComm::PushSupplier methods
void connect (RtecEventChannelAdmin::SupplierAdmin_ptr supplier_admin,
const RtecEventChannelAdmin::SupplierQOS &qos,
CORBA::Environment &ACE_TRY_ENV);
void disconnect (CORBA::Environment &ACE_TRY_ENV);
// Simple connect/disconnect methods..
// = The RtecEventComm::PushSupplier methods
virtual void disconnect_push_supplier (CORBA::Environment &)
ACE_THROW_SPEC ((CORBA::SystemException));
// The skeleton methods.
CORBA::ULong disconnect_count;
// Keep track of the number of disconnect calls received.
private:
RtecEventChannelAdmin::ProxyPushConsumer_var consumer_proxy_;
// Our proxy
};
#endif /* EC_DISCONNECT_H */
|