Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Oneways_Invoking_Twoways / Receiver_i.h
blob1e5f30c10dd96612758b77e679faffbb9c44a20f
1 // ===================================================================
2 /**
3 * @file Receiver_i.h
5 * @author Balachandran Natarajan <bala@cs.wustl.edu>
6 **/
7 // ===================================================================
9 #ifndef TAO_TESTS_ONEWAYS_INVOKING_TWOWAYS_RECEIVER_I_H
10 #define TAO_TESTS_ONEWAYS_INVOKING_TWOWAYS_RECEIVER_I_H
11 #include /**/ "ace/pre.h"
13 #include "TestS.h"
15 /// Implement the Test::Receiver interface
16 /**
17 * Skeleton implementation..
20 class Receiver_i
21 : public virtual POA_Test::Receiver
23 public:
24 /// Constructor
25 Receiver_i (CORBA::ORB_ptr orb,
26 Test::Sender_ptr sender,
27 CORBA::ULong iter);
29 ///Destructor
30 virtual ~Receiver_i ();
32 // = The skeleton methods
33 virtual CORBA::Long receive_call ();
35 /// Retun the number of calls that every thread would make...
36 virtual CORBA::Long get_call_count ();
38 virtual void shutdown ();
40 /// Number of calls processed so far..
41 CORBA::ULong no_calls_;
43 private:
44 /// Our Orb...
45 CORBA::ORB_var orb_;
47 /// THe sender..
48 Test::Sender_var sender_;
50 /// Number of invocations to be made on the sender..
51 CORBA::ULong iteration_;
54 #include /**/ "ace/post.h"
55 #endif /*TAO_TESTS_ONEWAYS_INVOKING_TWOWAYS_RECEIVER_I_H*/