Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / examples / Load_Balancing / Load_Balancing_Service.h
blob10064e4eb3fd5e1770832f2761117dfbf9cee096
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Load_Balancing_Service.h
7 * Driver for Load Balancing service.
9 * @author Marina Spivak <marina@cs.wustl.edu>
11 //=============================================================================
14 #ifndef LOAD_BALANCING_SERVICE_H_
15 #define LOAD_BALANCING_SERVICE_H_
17 #include "tao/Utils/ORB_Manager.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 # pragma once
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 /**
24 * @class Load_Balancing_Service
26 * Server, which creates and initializes a
27 * <Load_Balancer::Object_Group_Factory>
28 * object, and runs the orb loop.
30 class Load_Balancing_Service
32 public:
33 /// Default constructor.
34 Load_Balancing_Service ();
36 /// Destructor.
37 ~Load_Balancing_Service ();
39 /// Initialize the <Load_Balancing_Service>: initializes the ORB, parses
40 /// arguments, creates a servant ...
41 int init (int argc, ACE_TCHAR *argv[]);
43 /// Run the server.
44 int run ();
46 private:
47 /// Parses the commandline arguments.
48 int parse_args (int argc, ACE_TCHAR *argv[]);
50 /// The ORB manager.
51 TAO_ORB_Manager orb_manager_;
53 /// File to output the <Object_Group_Factory> IOR.
54 FILE *ior_output_file_;
57 #endif /* LOAD_BALANCING_SERVICE_H_ */