blob: 440b7728468340586545e560393b699023f71b45 (
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++ -*- $Id$ */
#include "orbsvcs/orbsvcs/Notify/Notify_ProxyPushConsumer_i.h"
#include "Notify_SupplierAdmin_i.h"
// Implementation skeleton constructor
TAO_Notify_ProxyPushConsumer_i::TAO_Notify_ProxyPushConsumer_i
(TAO_Notify_SupplierAdmin_i &supplieradmin)
:TAO_Notify_ProxyConsumer_i (supplieradmin)
{
}
// Implementation skeleton destructor
TAO_Notify_ProxyPushConsumer_i::~TAO_Notify_ProxyPushConsumer_i (void)
{
}
CosNotifyChannelAdmin::ProxyPushConsumer_ptr
TAO_Notify_ProxyPushConsumer_i::get_ref (CORBA::Environment &ACE_TRY_ENV)
{
return _this (ACE_TRY_ENV);
}
void TAO_Notify_ProxyPushConsumer_i::connect_any_push_supplier (
CosEventComm::PushSupplier_ptr push_supplier,
CORBA::Environment &ACE_TRY_ENV
)
ACE_THROW_SPEC ((
CORBA::SystemException,
CosEventChannelAdmin::AlreadyConnected
))
{
push_supplier_ = CosEventComm::PushSupplier::_duplicate (push_supplier);
}
void
TAO_Notify_ProxyPushConsumer_i::push (const CORBA::Any& data,
CORBA::Environment &ACE_TRY_ENV)
ACE_THROW_SPEC ((
CORBA::SystemException,
CosEventComm::Disconnected
))
{
// Filtering comes here.
myadmin_.get_dispatcher ().dispatch_event (data, ACE_TRY_ENV);
ACE_CHECK;
}
void
TAO_Notify_ProxyPushConsumer_i::disconnect_push_consumer
(CORBA::Environment &ACE_TRY_ENV)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
}
|