blob: 7efb3f603d074c3887cbe8a51a2534f79f53fb50 (
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
|
// $Id$
#include "StructuredEvent.h"
#include "../Consumer.h"
#include "tao/debug.h"
#if ! defined (__ACE_INLINE__)
#include "StructuredEvent.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(RT_Notify, TAO_NS_StructuredEvent, "$Id$")
TAO_NS_StructuredEvent::TAO_NS_StructuredEvent (const CosNotification::StructuredEvent ¬ification)
: notification_ (notification), type_ (notification.header.fixed_header.event_type)
{
}
TAO_NS_StructuredEvent::~TAO_NS_StructuredEvent ()
{
}
const TAO_NS_EventType&
TAO_NS_StructuredEvent::type (void) const
{
return this->type_;
}
void
TAO_NS_StructuredEvent::push (TAO_NS_Consumer* consumer ACE_ENV_ARG_DECL) const
{
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG, "Notify (%P|%t) - "
"TAO_Notify_StructuredEvent::do_push ("
"CosNotifyComm::StructuredPushConsumer_ptr)\n"));
consumer->push (notification_ ACE_ENV_ARG_PARAMETER);
}
void
TAO_NS_StructuredEvent::push (Notify_Internal::Event_Forwarder_ptr forwarder ACE_ENV_ARG_DECL)
{
forwarder->forward (notification_ ACE_ENV_ARG_PARAMETER);
}
|