summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Notify/Notify_Event_Dispatch_Command.h
blob: 342f6f3a06649aca9541d438f4c81f4c7d671ce6 (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$
//
// ============================================================================
//
// = LIBRARY
//   ORBSVCS Notification
//
// = FILENAME
//   Notify_Event_Dispatch_Command.h
//
// = DESCRIPTION
//   Definition for the Command object responsible for dispatching events to consumers.
//
// = AUTHOR
//   Pradeep Gore <pradeep@cs.wustl.edu>
//
// ============================================================================

#ifndef TAO_NOTIFY_EVENT_DISPATCH_COMMAND_H
#define TAO_NOTIFY_EVENT_DISPATCH_COMMAND_H

#include "ace/pre.h"
#include "Notify_Command.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

class TAO_Notify_Event;
class TAO_Notify_EventListener;
class TAO_Notify_Worker_Task;

class TAO_Notify_Export TAO_Notify_Event_Dispatch_Command : public TAO_Notify_Command
{
  // = TITLE
  //   TAO_Notify_Event_Dispatch_Command
  //
  // = DESCRIPTION
  //   The Command for dispatching to a consumer.
  //
 public:
  // = Initialization and termination code.
  TAO_Notify_Event_Dispatch_Command (TAO_Notify_Event_Processor* event_processor, TAO_Notify_Event* event, TAO_Notify_EventListener* event_listener);

  ~TAO_Notify_Event_Dispatch_Command ();

  virtual int execute (CORBA::Environment& ACE_TRY_ENV);
  // Command callback

 protected:
  // = Data Members
  TAO_Notify_EventListener* event_listener_;
};

#include "ace/post.h"
#endif /* TAO_NOTIFY_EVENT_DISPATCH_COMMAND_H */