3 //=============================================================================
5 * @file Notifier_Handler.h
7 * @author Douglas C. Schmidt (d.schmidt@vanderbilt.edu) and Pradeep Gore (pradeep@cs.wustl.edu)
9 //=============================================================================
12 #ifndef _NOTIFIER_HANDLER_H
13 #define _NOTIFIER_HANDLER_H
15 #include "Event_Comm_i.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "orbsvcs/Naming/Naming_Client.h"
22 #include "orbsvcs/CosNamingC.h"
25 * @class Notifier_Handler
27 * @brief Holds the <Event_Comm::Notifier> object which is obtained from
30 class Notifier_Handler
33 /// This constructor gets the notifier object from the Naming
35 Notifier_Handler (void);
38 virtual ~Notifier_Handler (void);
40 /// Initialize the client communication endpoint with server.
41 int init (int argc
, ACE_TCHAR
*argv
[], ShutdownCallback
* _shutdowncallback
);
44 Event_Comm::Notifier
*notifier (void);
45 void notifier (Event_Comm::Notifier
*);
50 /// Close down the handler.
53 /// called to request application shutdown.
56 /// returns the ORB's reactor.
57 ACE_Reactor
*reactor (void);
63 /// Pointer to an <Event_Comm::Notifier> object.
64 Event_Comm::Notifier
*notifier_
;
66 /// An instance of the name client used for resolving the factory
68 TAO_Naming_Client naming_client_
;
70 /// The handler to shutdown the app.
71 ShutdownCallback
*shutdowncallback
;
74 #define NOTIFIER_BIND_NAME "Notifier"
76 #endif /* _NOTIFIER_HANDLER_H */