blob: ea0aa2940e061085db2c8bcd75eabfac0b42926d (
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
|
#include "orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.h"
#include "tao/debug.h"
#include "orbsvcs/Notify/Method_Request_Dispatch.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Notify_RT_StructuredProxyPushSupplier::TAO_Notify_RT_StructuredProxyPushSupplier (void)
{
}
TAO_Notify_RT_StructuredProxyPushSupplier::~TAO_Notify_RT_StructuredProxyPushSupplier ()
{
}
CORBA::Object_ptr
TAO_Notify_RT_StructuredProxyPushSupplier::activate (PortableServer::Servant servant)
{
CORBA::Object_var object = TAO_Notify_Proxy::activate (servant);
// Obtain our ref.
CORBA::Object_var obj = this->ref ();
this->event_forwarder_ = Event_Forwarder::StructuredProxyPushSupplier::_narrow (obj.in ());
return object._retn ();
}
CORBA::Object_ptr
TAO_Notify_RT_StructuredProxyPushSupplier::activate (PortableServer::Servant ,
CORBA::Long)
{
return CORBA::Object::_nil ();
}
void
TAO_Notify_RT_StructuredProxyPushSupplier::deliver (TAO_Notify_Method_Request_Dispatch_No_Copy & request)
{
try
{
request.event()->push (this->event_forwarder_.in ());
}
catch (const CORBA::Exception& ex)
{
if (TAO_debug_level > 2)
{
ex._tao_print_exception (
"(%P|%t) TAO_Notify_RT_StructuredProxyPushSupplier::push failed\n");
}
}
}
void
TAO_Notify_RT_StructuredProxyPushSupplier::push_no_filtering (const TAO_Notify_Event* event)
{
try
{
event->push_no_filtering (this->event_forwarder_.in ());
}
catch (const CORBA::Exception& ex)
{
if (TAO_debug_level > 2)
{
ex._tao_print_exception (
"(%P|%t) TAO_Notify_RT_StructuredProxyPushSupplier::push failed\n");
}
}
}
TAO_END_VERSIONED_NAMESPACE_DECL
|