blob: f9c7188b6aa76b40b8b6a304f1d9b501a55d360f (
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
36
37
38
39
40
41
42
43
44
45
|
//$Id$
#ifndef _MANAGER_H_
#define _MANAGER_H_
#include "Servant_Locator.h"
class Manager
{
public:
Manager (void);
// Ctor
~Manager (void);
int init (int argc, ACE_TCHAR *argv[]);
// Initialize the ORB, POA etc.
int activate_servant (void);
// Activate the servant etc.
int run (void);
// Run the ORB's event loop.
CORBA::ORB_ptr orb (void);
// ORB's accessor.
CORBA::Object_ptr server (void);
// Server's accessor.
private:
CORBA::ORB_var orb_;
// Our ORB
PortableServer::POA_var new_poa_var_;
// The new poa that is created.
PortableServer::ServantLocator_var servant_locator_;
// Our servant locator
CORBA::Object_var server_;
//
};
#endif /*_MANAGER_H_ */
|