blob: ed7d79f16e9ed3fcc864e685be783d4f884be932 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/* -*- C++ -*- */
// $Id$
// ==========================================================================
//
// = FILENAME
// Notify_Test_Client.h
//
// = DESCRIPTION
// Prototype Test Driver for all the Notify tests.
//
// = AUTHOR
// Pradeep Gore <pradeep@cs.wustl.edu>
//
// ==========================================================================
#ifndef NOTIFY_TEST_CLIENT_H
#define NOTIFY_TEST_CLIENT_H
#include "orbsvcs/CosNotifyChannelAdminS.h"
#include "orbsvcs/CosNotifyCommC.h"
#include "orbsvcs/CosNamingC.h"
#include "notify_test_export.h"
class TAO_NOTIFY_TEST_Export Notify_Test_Client
{
// = TITLE
// Notify_Test_Client
// = DESCRIPTION
// Shows how consumers Notify_Test_Client for events.
public:
// = Initialization and Termination
Notify_Test_Client (void);
virtual ~Notify_Test_Client ();
virtual void init (int argc, char *argv [] TAO_ENV_ARG_DECL);
// starts the orb and resolves the notify factory via a naming service.
int ORB_run (void);
// Call ORB::run to accept requests.
void shutdown (TAO_ENV_SINGLE_ARG_DECL);
// Shutdown the ORB
protected:
void init_ORB (int argc, char *argv [] TAO_ENV_ARG_DECL);
// Initializes the ORB.
void resolve_naming_service (TAO_ENV_SINGLE_ARG_DECL);
// Try to get hold of a running naming service.
void resolve_Notify_factory (TAO_ENV_SINGLE_ARG_DECL);
// Try to resolve the Notify factory from the Naming service.
// = Data Members
PortableServer::POA_var root_poa_;
// Reference to the root poa.
CORBA::ORB_var orb_;
// The ORB that we use.
CosNaming::NamingContext_var naming_context_;
// Handle to the name service.
CosNotifyChannelAdmin::EventChannelFactory_var notify_factory_;
// Channel factory.
CosNotifyChannelAdmin::InterFilterGroupOperator ifgop_;
// The group operator between admin-proxy's.
CosNotification::QoSProperties initial_qos_;
// Initial qos specified to the factory when creating the EC.
CosNotification::AdminProperties initial_admin_;
// Initial admin props specified to the factory when creating the EC.
CORBA::Boolean done_;
// Set when we should shutdown.
};
#endif /* NOTIFY_TEST_CLIENT_H */
|