blob: 7e2c7ad79522b3215da9e551068ba57beae131be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/* -*- C++ -*- */
// $Id$
// ============================================================================
//
// = LIBRARY
// EventComm
//
// = FILENAME
// Notifier_Handler.h
//
// = AUTHOR
// Douglas C. Schmidt (schmidt@cs.wustl.edu)
//
// ============================================================================
#if !defined (_NOTIFIER_HANDLER_H)
#define _NOTIFIER_HANDLER_H
#include "ace/CORBA_Handler.h"
#include "Event_Comm_i.h"
#include "orbsvcs/Naming/Naming_Utils.h"
#include "orbsvcs/CosNamingC.h"
class Notifier_Handler
{
// = TITLE
// Holds the <Event_Comm::Notifier> object which is obtained from the naming service.
public:
// = Initialization and termination methods.
Notifier_Handler (void);
// This constructor gets the notifier object from the Naming
// Service.
~Notifier_Handler (void);
// Destructor.
int init (int argc, char *argv[]);
// Initialize the client communication endpoint with server.
// = Accessors.
Event_Comm::Notifier *notifier (void);
void notifier (Event_Comm::Notifier *);
virtual int handle_close (void);
// Close down the handler.
private:
Event_Comm::Notifier *notifier_;
// Pointer to an <Event_Comm::Notifier> object.
TAO_Naming_Client naming_client_;
// An instance of the name client used for resolving the factory
// objects.
CORBA::ORB_var orb_;
// Remember our orb.
};
#define NOTIFIER_BIND_NAME "Notifier"
#endif /* _NOTIFIER_HANDLER_H */
|