summaryrefslogtreecommitdiff
path: root/TAO/tests/NestedUpcall/Reactor/reactor_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/NestedUpcall/Reactor/reactor_i.h')
-rw-r--r--TAO/tests/NestedUpcall/Reactor/reactor_i.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/TAO/tests/NestedUpcall/Reactor/reactor_i.h b/TAO/tests/NestedUpcall/Reactor/reactor_i.h
new file mode 100644
index 00000000000..22efef2f87b
--- /dev/null
+++ b/TAO/tests/NestedUpcall/Reactor/reactor_i.h
@@ -0,0 +1,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 */