Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / POA / Generic_Servant / test_i.h
blob2a41e38bf17651dc9bfdd69a29782b760313a97f
1 //=============================================================================
2 /**
3 * @file test_i.h
5 * Defines test_i class for the test interface
7 * @author Irfan Pyarali
8 */
9 //=============================================================================
12 #include "testS.h"
14 class GENERIC_SERVANT_Export test_i : public POA_test
16 public:
17 /// Constructor - takes a POA and a value parameter
18 test_i (CORBA::ORB_ptr orb,
19 PortableServer::POA_ptr poa);
21 /// Returns the Default POA of this servant
22 PortableServer::POA_ptr _default_POA ();
24 /// A twoway operation.
25 void method ();
27 /// A oneway operation.
28 void oneway_method ();
30 /// A timed twoway operation.
31 void timed_method (CORBA::ULong timeout);
33 /// A timed twoway operation.
34 void timed_oneway_method (CORBA::ULong timeout);
36 /// Shutdown the ORB
37 void shutdown ();
39 /// Sleep for some time.
40 void sleep (CORBA::ULong timeout,
41 const char *operation);
43 protected:
44 /// Our ORB.
45 CORBA::ORB_var orb_;
47 /// Our POA.
48 PortableServer::POA_var poa_;