blob: b00d40fb1411d9f848e64e2540f820456e281341 (
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
|
/* -*- C++ -*- */
//=============================================================================
/**
* @file Supplier.h
*
* $Id$
*
* @author Carlos O'Ryan (coryan@cs.wustl.edu)
*/
//=============================================================================
#ifndef SUPPLIER_H
#define SUPPLIER_H
#include "orbsvcs/RtecEventCommS.h"
#include "orbsvcs/RtecEventChannelAdminC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
/**
* @class Supplier
*
* @brief Simple supplier object
*
* This class is a supplier of events.
* It simply publishes one event type, when the perform_push()
* method is invoked it pushes the event through the event service
*/
class Supplier : public POA_RtecEventComm::PushSupplier
{
public:
/// Constructor
Supplier (void);
/// Connect to the event channel
void connect (RtecEventChannelAdmin::SupplierAdmin_ptr supplier_admin);
/// Disconnect from the event channel
void disconnect (void);
/// Push a single event
void perform_push (void);
// = The RtecEventComm::PushSupplier methods
/// The skeleton methods.
virtual void disconnect_push_supplier (void);
private:
/// The proxy
RtecEventChannelAdmin::ProxyPushConsumer_var proxy_;
};
#endif /* SUPPLIER_H */
|