Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / PICurrent / test_i.h
blobcda81e4f4edb2f577a19a7afd328a3557ebd8a4b
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:
33 /// Constructor.
34 test_i (PortableInterceptor::Current_ptr current,
35 PortableInterceptor::SlotId id,
36 CORBA::ORB_ptr orb);
38 /// Destructor.
39 ~test_i (void);
41 /// Main servant test method.
42 virtual void invoke_me (void);
44 /// No-op method used so that a client request interceptor will be
45 /// invoked when invoking this method from the above invoke_me()
46 /// method. Say that 10 times fast. :-)
47 virtual void invoke_you (void);
49 /// Test just a set slot
50 virtual void invoke_we (void);
52 /// Shutdown the ORB.
53 virtual void shutdown (void);
55 private:
57 /// Reference to the PICurrent object.
58 PortableInterceptor::Current_var current_;
60 /// SlotId in the PICurrent object assigned to this test.
61 PortableInterceptor::SlotId slot_id_;
63 /// Pseudo-reference to the ORB.
64 CORBA::ORB_var orb_;
68 #endif /* TEST_I_H */