Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / examples / Simple / chat / Server_i.h
blobb0b0a020a87f93b543a6fc0b7dd866167ff04c33
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file Server_i.h
7 * Definition of the Chat Server_i class.
9 * @author Pradeep Gore <pradeep@cs.wustl.edu>
11 //=============================================================================
14 #ifndef SERVER_I_H
15 #define SERVER_I_H
17 #include "Broadcaster_i.h"
18 #include "tao/Utils/ORB_Manager.h"
19 #include "tao/Intrusive_Ref_Count_Handle_T.h"
21 /**
22 * @class Server_i
24 * @brief The class defines the server for the chat. It sets up the Orb
25 * manager and registers the Broadcaster servant object.
27 class Server_i
29 public:
30 /// Constructor.
31 Server_i ();
33 /// Destructor.
34 ~Server_i ();
36 /// Initialize the server.
37 int init (int argc,
38 ACE_TCHAR *argv[]);
40 /// Run the ORB.
41 int run ();
43 private:
44 /// Parses the command line arguments.
45 int parse_args (int argc, ACE_TCHAR *argv[]);
47 /// Writes the server ior to a file, for the clients to pick up
48 /// later.
49 int write_IOR (const char *ior);
51 /// The file name to save the ior to.
52 const ACE_TCHAR *ior_file_name_;
54 /// The tao orb manager object.
55 TAO_ORB_Manager orb_manager_;
57 /// The servant object registered with the orb.
58 typedef TAO_Intrusive_Ref_Count_Handle<Broadcaster_i> Broadcaster_i_var;
59 Broadcaster_i_var broadcaster_i_;
62 #endif /* SERVER_I_H */