blob: 70996d7c2afedebc772367c1bd6bf5b280eae905 (
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
|
// -*- C++ -*-
//=============================================================================
/**
* @file PushSupplier.h
*
* @author Huang-Ming Huang <hh1@cse.wustl.edu>
*/
//=============================================================================
#ifndef PUSHSUPPLIER_H
#define PUSHSUPPLIER_H
#include "orbsvcs/RtecEventCommS.h"
#include "orbsvcs/RtecEventChannelAdminC.h"
#include "ace/Event_Handler.h"
#include "ace/Task.h"
#include "ace/Reactor.h"
#include "ace/Time_Value.h"
class PushSupplier_impl :
public virtual ACE_Event_Handler
, public virtual POA_RtecEventComm::PushSupplier
{
public:
PushSupplier_impl(CORBA::ORB_ptr orb);
~PushSupplier_impl();
int init(RtecEventChannelAdmin::EventChannel_ptr);
virtual void disconnect_push_supplier (
);
private:
class ReactorTask : public ACE_Task_Base
{
public:
// ctor
ReactorTask(ACE_Event_Handler* handler) : reactor_(0), handler_(handler){}
virtual int svc (void);
// The thread entry point.
ACE_Reactor* reactor_;
ACE_Event_Handler* handler_;
};
virtual int handle_timeout (const ACE_Time_Value ¤t_time,
const void *act = 0);
CORBA::ORB_var orb_;
CORBA::ULong seq_no_;
ReactorTask reactor_task_;
RtecEventChannelAdmin::ProxyPushConsumer_var consumer_;
PushSupplier_impl(const PushSupplier_impl&);
bool operator==(const PushSupplier_impl&);
};
#endif
|