summaryrefslogtreecommitdiff
path: root/apps/Orbix-Examples/Event_Comm/libsrc/Notifier.idl
blob: a03cf45451fde59602eae1f54afd9896031124c6 (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
/* -*- C++ -*- */
// $Id$

// ============================================================================
//
// = LIBRARY
//    EventComm
// 
// = FILENAME
//    Notifier.idl
//
// = DESCRIPTION 
//    This is the CORBA IDL interface for the Event Communication <Notifier>.
//
// = AUTHOR
//    Douglas C. Schmidt (schmidt@cs.wustl.edu)
// 
// ============================================================================

#if !defined (_Notifier_iDL)
#define _Notifier_iDL

#include "Notification.idl"
#include "Notification_Receiver.idl"

interface Notifier
{
  // = TITLE
  //   Defines the interface for a <Notifier> of events.

  void send_disconnect (in string reason);
  // Disconnect all the receivers, giving them the <reason>.

  void send_notification (in Notification notification);
  // Send the <Notification> to all the consumers who
  // have subscribed and who match the filtering criteria.

  void subscribe (in Notification_Receiver notification_receiver,
                  in string filtering_criteria);
  // Subscribe the <Notification_Receiver> to receive events that
  // match <filtering_criteria> applied by the <Notifier>.

  void unsubscribe (in Notification_Receiver notification_receiver);
  // Unsubscribe the <Notification_Receiver>.
};

#endif /* _Notifier_iDL */