diff options
Diffstat (limited to 'TAO/orbsvcs/Naming_Service/Naming_Service.h')
-rw-r--r-- | TAO/orbsvcs/Naming_Service/Naming_Service.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/TAO/orbsvcs/Naming_Service/Naming_Service.h b/TAO/orbsvcs/Naming_Service/Naming_Service.h index 71a2eb6e211..abcf7df0516 100644 --- a/TAO/orbsvcs/Naming_Service/Naming_Service.h +++ b/TAO/orbsvcs/Naming_Service/Naming_Service.h @@ -17,7 +17,10 @@ #ifndef TAO_NAMING_SERVICE_H #define TAO_NAMING_SERVICE_H -#include "orbsvcs/Naming/Naming_Server.h" +#include /**/ "ace/pre.h" +#include "tao/ORB.h" + +class TAO_Naming_Server; /** * @class TAO_Naming_Service @@ -44,10 +47,13 @@ public: virtual int fini (void); /// Run the TAO_Naming_Service. - int run (void); + virtual int run (void); /// Shut down the TAO_Naming_Service; you must still call fini(). - void shutdown (void); + virtual void shutdown (void); + + /// Factory method to create a server object for the naming service + virtual TAO_Naming_Server* create_naming_server (); /// Destructor. virtual ~TAO_Naming_Service (void); @@ -62,7 +68,7 @@ protected: CORBA::ORB_var orb_; /// Naming Server instance. - TAO_Naming_Server my_naming_server_; + TAO_Naming_Server* my_naming_server_; /// After how long the server should stop listening to requests (in /// seconds). @@ -72,4 +78,6 @@ protected: int num_threads_; }; +#include /**/ "ace/post.h" + #endif /* TAO_NAMING_SERVICE_H */ |