summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Notify/Notify_Listener_Filter_Eval_Command.h
blob: 865fc0298d83abe617ef303da78a49ddd1131963 (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
/* -*- C++ -*- */
//=============================================================================
/**
 *  @file   Notify_Listener_Filter_Eval_Command.h
 *
 *  $Id$
 *
 * Defines the Command object for evaluating the listener's filter.
 *
 *
 *  @author Pradeep Gore <pradeep@cs.wustl.edu>
 */
//=============================================================================


#ifndef TAO_NOTIFY_LISTENER_FILTER_EVAL_COMMAND_H
#define TAO_NOTIFY_LISTENER_FILTER_EVAL_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_Event_Processor;

 /**
  * @class TAO_Notify_Listener_Filter_Eval_Command
  *
  * @brief TAO_Notify_Listener_Filter_Eval_Command
  *
  * Listener filter evaluation command.
  */
class TAO_Notify_Export TAO_Notify_Listener_Filter_Eval_Command : public TAO_Notify_Command
{
 public:
  /// The event, listener, and hint to pass (see the listener interface for details)
  TAO_Notify_Listener_Filter_Eval_Command (TAO_Notify_Event_Processor* event_processor, TAO_Notify_Event* event, TAO_Notify_EventListener* event_listener, CORBA::Boolean eval_parent);

  ~TAO_Notify_Listener_Filter_Eval_Command();

  /// Command callback
  virtual int execute (ACE_ENV_SINGLE_ARG_DECL);

 protected:
  // = Data Members
  TAO_Notify_EventListener* event_listener_;
  CORBA::Boolean eval_parent_;
};

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