Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / examples / Event_Comm / Notifier_Server.h
blob6a1e382a98fa5764500d3cc84da6b92b862920fe
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file Notifier_Server.h
7 * @author Pradeep Gore <pradeep@cs.wustl.edu>
8 */
9 //=============================================================================
12 #ifndef _NOTIFIER_SERVER_H
13 #define _NOTIFIER_SERVER_H
15 #include "Event_Comm_i.h"
16 #include "tao/Utils/ORB_Manager.h"
17 #include "orbsvcs/CosNamingS.h"
18 #include "orbsvcs/Naming/Naming_Client.h"
20 /**
21 * @class Notifier_Server
23 * @brief The Notifier Server that handles CORBA operations from
24 * Consumers and Suppliers.
26 class Notifier_Server
28 public:
29 /// Constructor.
30 Notifier_Server ();
32 /// Destructor.
33 ~Notifier_Server ();
35 /// Initialize the Server state.
36 int init (int argc, ACE_TCHAR *argv[]);
38 /// Run the orb.
39 int run ();
41 /// Close the naming service.
42 int close ();
44 /// Reactor accessor.
45 ACE_Reactor *reactor();
47 private:
48 /// Initialises the name server and registers the Notifier server
49 /// object name with the name server.
50 int init_naming_service ();
52 /// The ORB manager.
53 TAO_ORB_Manager orb_manager_;
55 /// Servant for the Notifier interface.
56 Notifier_i servant_;
58 /// Naming context for the naming service.
59 CosNaming::NamingContext_var naming_context_;
61 /// helper class for getting access to Naming Service.
62 TAO_Naming_Client naming_server_;
65 #define NOTIFIER_BIND_NAME "Notifier"
67 #endif /* _NOTIFIER_SERVER_H */