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