summaryrefslogtreecommitdiff
path: root/apps/Orbix-Examples/Event_Comm/libsrc/Notification_Receiver_i.cpp
blob: 57fb7cf8f91763547266c1c96caefc8d53886f62 (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

// $Id$

#include "ace/Service_Config.h"
#include "Notification_Receiver_i.h"

#if defined (ACE_HAS_ORBIX)

Notification_Receiver_i::Notification_Receiver_i (void)
{
}

Notification_Receiver_i::~Notification_Receiver_i (void)
{
}

// Inform the <Event_Comm::Notification_Receiver> that <event> has occurred.

void
Notification_Receiver_i::receive_notification
  (const Event_Comm::Notification &notification,
   CORBA::Environment &IT_env)
{
  const char *tmpstr = notification.tag_;

  ACE_DEBUG ((LM_DEBUG, "**** got notification = %s\n", tmpstr));
}

// Disconnect the <Event_Comm::Notification_Receiver> from the <Event_Comm::Notifier>.

void 
Notification_Receiver_i::disconnect (const char *reason,
				     CORBA::Environment &IT_env)
{
  ACE_DEBUG ((LM_DEBUG, "**** got disconnected due to %s\n", reason));
  ACE_Service_Config::end_reactor_event_loop ();
}

#endif /* ACE_HAS_ORBIX */