Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Collocated_Forwarding / test_i.h
blob623e3c0b80652c1127de6ce3df5238e3d27b7aa0
1 // -*- C++ -*-
2 #ifndef TEST_I_H
3 #define TEST_I_H
5 #include "testS.h"
7 /**
8 * @class test_i
10 * @brief Simple test class.
12 * This class implements the "test" interface used in this test.
14 class test_i : public virtual POA_Collocated_ForwardRequestTest::test
16 public:
17 /// Constructor.
18 test_i (CORBA::Short id,
19 CORBA::ORB_ptr orb);
21 /// A way to setup forwarding in case of direct collocation.
22 void forward (CORBA::Object_ptr to,
23 CORBA::ULong request_pass_count);
25 /// Return the number assigned to this object.
26 virtual CORBA::Short collocated_call ();
28 private:
29 /// Id of this instance.
30 CORBA::Short id_;
32 /// Pseudo-reference to the ORB.
33 CORBA::ORB_var orb_;
35 /// A place where to forward.
36 CORBA::Object_var to_;
38 /// How much requests to pass thru before forwarding.
39 CORBA::ULong request_pass_count_;
41 /// The number of requests intercepted by this interceptor.
42 CORBA::ULong request_count_;
45 #endif /* TEST_I_H */