summaryrefslogtreecommitdiff
path: root/TAO/tests/NestedUpcall/Reactor/eh_i.h
blob: c8443da0bcbbf676d55015cfbc683d9e561711ad (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
// -*- c++ -*-
// $Id$

#if !defined (EVENTHANDLER_I_H)
#  define EVENTHANDLER_I_H

#include "ReactorS.h"

class EventHandler_i : public POA_EventHandler
{
  // = TITLE
  //     Servant implementation for the <EventHandler> IDL interface.
public:
  EventHandler_i (void);
  // Constructor.

  virtual ~EventHandler_i (void);
  // Destructor.

  virtual CORBA::Long peer (CORBA::Environment &env);
  // Return some value...doesn't matter what.

  virtual CORBA::UShort decrement (Reactor_ptr eh,
                                   CORBA::UShort num,
                                   CORBA::Environment &env);
  // deccrement <num> by calling decrement thru <eh> until zero is
  // reached, then return.
};

#endif /* EVENTHANDLER_I_H */