3 //==========================================================================
5 * @file Naming_Service.h
7 * This class implements the functionality of a Naming_Service in
8 * a stand-alone process.
10 * @author Nagarajan Surendran (naga@cs.wustl.edu) Marina Spivak <marina@cs.wustl.edu>
12 //==========================================================================
15 #ifndef TAO_NAMING_SERVICE_H
16 #define TAO_NAMING_SERVICE_H
18 #include /**/ "ace/pre.h"
21 #include "orbsvcs/Naming/Naming_Server.h"
24 * @class TAO_Naming_Service
26 * @brief Defines a class that encapsulates the implementation of the
29 * This class makes use of the <TAO_Naming_Server>
30 * to implement the COS Naming Service.
32 class TAO_Naming_Service
35 /// Default Constructor.
36 TAO_Naming_Service ();
38 /// Constructor taking the command-line arguments.
39 TAO_Naming_Service (int argc
, ACE_TCHAR
* argv
[]);
41 /// Initialize the Naming Service with the arguments.
42 virtual int init (int argc
, ACE_TCHAR
* argv
[]);
44 /// The opposite of init().
47 /// Run the TAO_Naming_Service.
50 /// Shut down the TAO_Naming_Service; you must still call fini().
51 virtual void shutdown ();
54 virtual ~TAO_Naming_Service ();
57 /// Parse the command line arguments to find
58 /// the timeout period.
59 int parse_args (int &argc
, ACE_TCHAR
* argv
[]);
64 /// Naming Server instance.
65 TAO_Naming_Server my_naming_server_
;
67 /// After how long the server should stop listening to requests (in
71 /// Number of threads for running the ORB. Default is 1
75 #include /**/ "ace/post.h"
77 #endif /* TAO_NAMING_SERVICE_H */