summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_3276_Regression/Manager.h
blob: 7ad190181e4c0529a9e748c1cf690ffb0d1f1df3 (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
46
//$Id$

#ifndef _MANAGER_H_
#define _MANAGER_H_

#include "ace/Auto_Ptr.h"
#include "Servant_Locator.h"

class Manager
{
public:
  Manager (void);
  // Ctor

  ~Manager (void);

  int init (int argc, char *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.

  ACE_Auto_Ptr<Servant_Locator> servant_locator_;
  // Our servant locator

  CORBA::Object_var server_;
  // 
};

#endif /*_MANAGER_H_ */