Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / TransportCurrent / lib / Current_Test_Impl.h
blob0d585a7ea9a3a1be34c025f1573124e1d2549405
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Current_Test_Impl.h
7 * Implementation header for the "test" IDL interface for the
8 * TAO::TransportCurrent test.
10 * @author Iliyan Jeliazkov <iliyan@ociweb.com>
12 //=============================================================================
14 #ifndef CURRENT_TEST_IMPL_H
15 #define CURRENT_TEST_IMPL_H
17 #include "Current_TestS.h"
18 #include "tao/TransportCurrent/TCC.h"
20 /**
21 * @class Current_Test_Impl
23 * @brief Simple test class.
25 * This class implements the "test" interface used in this test.
27 class Current_Test_Impl : public virtual POA_Test::Transport::CurrentTest
29 public:
30 /// Constructor.
31 Current_Test_Impl (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, int do_collocated_calls = 1);
33 /// Destructor.
34 ~Current_Test_Impl ();
36 /// Main servant test method.
37 virtual void invoked_by_client ();
39 /// No-op method used so that a client request interceptor will be
40 /// invoked when invoking this method from the above invoke_me()
41 /// method. Say that 10 times fast. :-)
42 virtual void invoked_during_upcall ();
44 /// Shutdown the ORB.
45 virtual void shutdown ();
47 // A self-test for coherency
48 virtual ::CORBA::Long self_test ();
50 public:
51 /// Reports if unexpected errors have been encountered for the
52 /// lifetime of the instance
53 bool is_successful () const;
55 private:
56 void test_transport_current ();
58 /// Main servant test method.
59 void invoked_by_client_i ();
61 private:
62 /// Pseudo-reference to the ORB.
63 CORBA::ORB_var orb_;
65 /// Pseudo-reference to the POA (cache)
66 PortableServer::POA_var poa_;
68 /// To do or not to do ...
69 int do_collocated_calls_;
72 #endif /* CURRENT_TEST_IMPL_H */