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

#ifndef 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)
    ACE_THROW_SPEC ((CORBA::SystemException));
  // Return some value...doesn't matter what.

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

#endif /* EVENTHANDLER_I_H */