summaryrefslogtreecommitdiff
path: root/TAO/tests/NestedUpcall/Reactor/eh_i.h
blob: 66fec52232f4c780416112806b3bd757957e8fd2 (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
// -*- 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 (int quiet);
  // 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.

private:
  int quiet_;
  // be quiet
};

#endif /* EVENTHANDLER_I_H */