Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Oneway_Send_Timeouts / Server.h
blob8317be7043acc41b4634868568b960219425bdbe
1 #ifndef _SERVER_
2 #define _SERVER_
4 #include "Test_i.h"
6 #include "ORB_Task.h"
8 #include "tao/IORTable/IORTable.h"
9 #include "tao/PortableServer/POAC.h"
10 #include "tao/PortableServer/POAManagerC.h"
12 #include <memory>
14 class Server
16 public:
17 Server (int argc, ACE_TCHAR* argv[]);
18 ~Server ();
20 bool run (bool management);
21 void shutdown ();
23 bool init_;
25 private:
26 bool parse_args (int argc, ACE_TCHAR* argv[]);
28 CORBA::ORB_var orb_;
29 CORBA::ORB_var management_orb_;
30 bool shutdown_;
31 TAO_SYNCH_MUTEX mutex_;
32 std::unique_ptr<Test_i> test_i_;
35 #endif //_SERVER_