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

#ifndef 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.

  void be_quiet (int quiet);
  // Set to 1 if the test should be quiet

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

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

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

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

private:
  int quiet_;
  // be quiet
};

#endif /* REACTOR_I_H */