diff options
Diffstat (limited to 'TAO/tests/Portable_Interceptors/PICurrent/test_i.h')
-rw-r--r-- | TAO/tests/Portable_Interceptors/PICurrent/test_i.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/TAO/tests/Portable_Interceptors/PICurrent/test_i.h b/TAO/tests/Portable_Interceptors/PICurrent/test_i.h new file mode 100644 index 00000000000..16183113c81 --- /dev/null +++ b/TAO/tests/Portable_Interceptors/PICurrent/test_i.h @@ -0,0 +1,70 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file test_i.h + * + * $Id$ + * + * Implementation header for the "test" IDL interface for the + * PortableInterceptor::Current test. + * + * @author Ossama Othman <ossama@uci.edu> + */ +//============================================================================= + +#ifndef TEST_I_H +#define TEST_I_H + +#include "testS.h" + +#include "tao/PortableInterceptorC.h" +#include "tao/PI/PI.h" + +/** + * @class test_i + * + * @brief Simple test class. + * + * This class implements the "test" interface used in this test. + */ +class test_i : public virtual POA_PICurrentTest::test +{ +public: + + /// Constructor. + test_i (PortableInterceptor::Current_ptr current, + PortableInterceptor::SlotId id, + CORBA::ORB_ptr orb); + + /// Destructor. + ~test_i (void); + + /// Main servant test method. + virtual void invoke_me (void); + + /// No-op method used so that a client request interceptor will be + /// invoked when invoking this method from the above invoke_me() + /// method. Say that 10 times fast. :-) + virtual void invoke_you (void); + + /// Test just a set slot + virtual void invoke_we (void); + + /// Shutdown the ORB. + virtual void shutdown (void); + +private: + + /// Reference to the PICurrent object. + PortableInterceptor::Current_var current_; + + /// SlotId in the PICurrent object assigned to this test. + PortableInterceptor::SlotId slot_id_; + + /// Pseudo-reference to the ORB. + CORBA::ORB_var orb_; + +}; + +#endif /* TEST_I_H */ |