Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / PICurrent / test_i.h
blob19c056bcc77de05362e30643a3d86aba70960afd
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file test_i.h
7 * Implementation header for the "test" IDL interface for the
8 * PortableInterceptor::Current test.
10 * @author Ossama Othman <ossama@uci.edu>
12 //=============================================================================
14 #ifndef TEST_I_H
15 #define TEST_I_H
17 #include "testS.h"
19 #include "tao/PortableInterceptorC.h"
20 #include "tao/PI/PI.h"
22 /**
23 * @class test_i
25 * @brief Simple test class.
27 * This class implements the "test" interface used in this test.
29 class test_i : public virtual POA_PICurrentTest::test
31 public:
32 /// Constructor.
33 test_i (PortableInterceptor::Current_ptr current,
34 PortableInterceptor::SlotId id,
35 CORBA::ORB_ptr orb);
37 /// Destructor.
38 ~test_i ();
40 /// Main servant test method.
41 virtual void invoke_me ();
43 /// No-op method used so that a client request interceptor will be
44 /// invoked when invoking this method from the above invoke_me()
45 /// method. Say that 10 times fast. :-)
46 virtual void invoke_you ();
48 /// Test just a set slot
49 virtual void invoke_we ();
51 /// Shutdown the ORB.
52 virtual void shutdown ();
54 private:
55 /// Reference to the PICurrent object.
56 PortableInterceptor::Current_var current_;
58 /// SlotId in the PICurrent object assigned to this test.
59 PortableInterceptor::SlotId slot_id_;
61 /// Pseudo-reference to the ORB.
62 CORBA::ORB_var orb_;
65 #endif /* TEST_I_H */