blob: 09d98a408d792a0831290bae93dec86951785a60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef _SERVER_
#define _SERVER_
#include "Test_i.h"
#include "ORB_Task.h"
#include "tao/IORTable/IORTable.h"
#include "tao/PortableServer/POAC.h"
#include "tao/PortableServer/POAManagerC.h"
#include <string>
class Server
{
public:
Server (int argc, ACE_TCHAR* argv[]);
~Server ();
bool run (bool management);
void shutdown ();
bool init_;
private:
bool parse_args (int argc, ACE_TCHAR* argv[]);
CORBA::ORB_var orb_;
CORBA::ORB_var management_orb_;
bool shutdown_;
TAO_SYNCH_MUTEX mutex_;
std::auto_ptr<Test_i> test_i_;
};
#endif //_SERVER_
|