summaryrefslogtreecommitdiff
path: root/TAO/tests/MProfile_Forwarding/Manager.h
blob: 3c958836306e0f4073de05bb2c89ecc502819b2a (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
//$Id$
#ifndef _MANAGER_H_
#define _MANAGER_H_

#include "Servant_Locator.h"

class Manager
{
  public:

  Manager (void);

  // Ctor

  int init (int argc, 
            char *argv[], 
            CORBA::Environment & ACE_TRY_ENV);

  // Initialize the ORB, POA etc.

  int init_register_name_service (CORBA::Environment &ACE_TRY_ENV);
  // Initialize the Name service, tegister the combined IOR with it

  int activate_servant (CORBA::Environment &ACE_TRY_ENV);
  // Activate the servant etc.

  int make_iors_register (CORBA::Environment &);

  int run (CORBA::Environment &ACE_TRY_ENV);
  // Run the  ORB event loop..
 private:
  CORBA::ORB_var orb_;
  // Our ORB 

  PortableServer::POA_var new_poa_var_;
  // The new poa that is created..
  
  Servant_Locator *servant_locator_;
  // Our servant locator

  CORBA::Object_var new_manager_ior_;
};
#endif /*_MANAGER_H_ */