Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / InterOp-Naming / Server_i.h
blob96dca55b8e1a3ff26c3ca216d47346aad492eedd
2 //=============================================================================
3 /**
4 * @file Server_i.h
6 * The class is the driver for the INS test server.
8 * @author Vishal Kachroo <vishal@cs.wustl.edu>
9 */
10 //=============================================================================
13 #ifndef SERVER_I_H
14 #define SERVER_I_H
16 #include "tao/Utils/ORB_Manager.h"
17 #include "ace/Get_Opt.h"
18 #include "ace/Read_Buffer.h"
19 #include "INS_i.h"
21 class Server_i
23 public:
24 /// Constructor.
25 Server_i (void);
27 /// Destructor.
28 ~Server_i (void);
30 /// Initialize the Server state - parsing arguments and waiting.
31 int init (int argc,
32 ACE_TCHAR *argv[]);
34 /// Add an IOR to the ORB-IOR table.
35 int add_IOR_to_table (CORBA::String_var ior);
37 /// Run the orb.
38 int run (void);
40 protected:
42 /// Servant class
43 INS_i servant_;
45 /// Parses the commandline arguments.
46 int parse_args (void);
48 /// The ORB manager - a helper class for accessing the POA and
49 /// registering objects.
50 TAO_ORB_Manager orb_manager_;
52 /// File where the IOR of the server object is stored.
53 FILE *ior_output_file_;
55 /// Used test the INS.
56 char * ins_;
58 /// Number of command line arguments.
59 int argc_;
61 /// The command line arguments.
62 ACE_TCHAR **argv_;
65 #endif /* SERVER_I_H */