Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / FaultTolerance / IOGR / Manager.h
blob3b63ccdb0702dcace7ccedfb1b20147cf3acb309
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Manager.h
7 * A manager class that merger IORS and designates primary
9 * @author Bala Natarajan <bala@cs.wustl.edu>
11 //=============================================================================
13 #ifndef TEST_FT_IOGR_MANAGER_H
14 #define TEST_FT_IOGR_MANAGER_H
16 #include "tao/ORB.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/Object.h"
24 class Manager
26 public:
27 void init (int argc,
28 ACE_TCHAR *argv[]);
30 // Initialize the ORB, POA etc.
32 /// Merges the different IORS
33 int make_merged_iors (void);
35 /// Sets the properties for the profiles
36 int set_properties (void);
38 /// Run the ORB event loop..
39 int run (void);
41 /// Write the merged IOR to a file
42 int write_to_file (void);
44 /// Return the pointer to the copy of our ORB
45 CORBA::ORB_ptr orb (void);
46 private:
47 CORBA::Object_var object_primary_;
48 CORBA::Object_var object_secondary_;
50 /// The merged IOR set
51 CORBA::Object_var merged_set_;
53 /// Our ORB
54 CORBA::ORB_var orb_;
57 #endif /*TEST_FT_IOGR_MANAGER_H */