summaryrefslogtreecommitdiff
path: root/TAO/tests/NestedUpcall/Reactor/reactor_i.h
blob: 3d4ede734c9bf9c340ee346a5693111eeb8bf098 (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$

#if !defined (REACTOR_I_H)
#  define REACTOR_I_H

#include "ReactorS.h"

class Reactor_i : public POA_Reactor
{
  // = TITLE
  //     Implement the <Reactor> IDL interface.
public:
  Reactor_i (void);
  // Constructor.

  virtual ~Reactor_i (void);
  // Destructor.

  virtual CORBA::Long register_handler(EventHandler_ptr eh,
                                       CORBA::Environment &env);
  // Register (with nothing...it's an example!)

  virtual void set_value (CORBA::Environment &env);

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

  virtual void stop (CORBA::Environment &env);
  // Stops the reactor.
};

#endif /* REACTOR_I_H */