summaryrefslogtreecommitdiff
path: root/TAO/examples/POA/Generic_Servant/test_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/POA/Generic_Servant/test_i.h')
-rw-r--r--TAO/examples/POA/Generic_Servant/test_i.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/TAO/examples/POA/Generic_Servant/test_i.h b/TAO/examples/POA/Generic_Servant/test_i.h
new file mode 100644
index 00000000000..24094760497
--- /dev/null
+++ b/TAO/examples/POA/Generic_Servant/test_i.h
@@ -0,0 +1,53 @@
+// $Id$
+//=============================================================================
+//
+//
+// = FILENAME
+// test_i.h
+//
+// = DESCRIPTION
+// Defines test_i class for the test interface
+//
+// = AUTHOR
+// Irfan Pyarali
+//
+//=============================================================================
+
+#include "testS.h"
+
+class GENERIC_SERVANT_Export test_i : public POA_test
+{
+public:
+ test_i (CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa);
+ // Constructor - takes a POA and a value parameter
+
+ PortableServer::POA_ptr _default_POA (void);
+ // Returns the Default POA of this servant
+
+ void method (void);
+ // A twoway operation.
+
+ void oneway_method (void);
+ // A oneway operation.
+
+ void timed_method (CORBA::ULong timeout);
+ // A timed twoway operation.
+
+ void timed_oneway_method (CORBA::ULong timeout);
+ // A timed twoway operation.
+
+ void shutdown (void);
+ // Shutdown the ORB
+
+ void sleep (CORBA::ULong timeout,
+ const char *operation);
+ // Sleep for some time.
+
+protected:
+ CORBA::ORB_var orb_;
+ // Our ORB.
+
+ PortableServer::POA_var poa_;
+ // Our POA.
+};