summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Pluggable/PP_Test_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/performance-tests/Pluggable/PP_Test_i.h')
-rw-r--r--TAO/performance-tests/Pluggable/PP_Test_i.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/TAO/performance-tests/Pluggable/PP_Test_i.h b/TAO/performance-tests/Pluggable/PP_Test_i.h
new file mode 100644
index 00000000000..1e866bb103b
--- /dev/null
+++ b/TAO/performance-tests/Pluggable/PP_Test_i.h
@@ -0,0 +1,76 @@
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO/performance-tests/Pluggable
+//
+// = FILENAME
+// PP_Test_i.h
+//
+// = AUTHOR
+// Jeff Parsons <parsons@cs.wustl.edu>
+//
+// ============================================================================
+
+#ifndef _PP_TEST_I_H
+#define _PP_TEST_I_H
+
+#include "PP_TestS.h"
+
+class PP_Test_i : public POA_Pluggable_Test
+{
+ // = TITLE
+ // Illustrates how to integrate a servant with the generated
+ // skeleton.
+ //
+ // = DESCRIPTION
+ // Implementation of the example at the servant side.
+ // Sends a no-op oneway and twoway request.
+public:
+ PP_Test_i (CORBA::ORB_ptr orb);
+ // Constructor
+
+ ~PP_Test_i (void);
+ // Destructor
+
+ virtual void send_oneway (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+ // Test a oneway call.
+
+ virtual void send_void (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+ // Test a twoway call.
+
+ virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+ // Shutdown routine.
+
+protected:
+ CORBA::ORB_var orb_;
+ // Keep a pointer to the ORB so we can shut it down.
+};
+
+class Pluggable_Test_Factory_i: public POA_Pluggable_Test_Factory
+{
+ // = TITLE
+ // Pluggable_Test_Factory_i
+ //
+ // = DESCRIPTION
+ // Factory object returning the Pluggable_Test objrefs
+public:
+ Pluggable_Test_Factory_i (CORBA::ORB_ptr orb);
+ // Constructor.
+
+ ~Pluggable_Test_Factory_i (void);
+ // Destructor.
+
+ virtual Pluggable_Test_ptr make_pluggable_test (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+ // Make a Pluggable Test object.
+
+private:
+ PP_Test_i my_pluggable_test_;
+};
+
+#endif /* _PP_TEST_I_H */