2
// Multiple.h,v 1.1 2000/09/21 15:48:27 coryan Exp
4
// ============================================================================
10
// Pradeep Gore <pradeep@cs.wustl.edu>
13
// This is a test class for the Cos Event Service.
15
// ============================================================================
17
#ifndef COSECMULTIPLE_H
18
#define COSECMULTIPLE_H
20
#include "orbsvcs/Naming/Naming_Utils.h"
21
#include "orbsvcs/CosNamingC.h"
22
#include "orbsvcs/CosEventChannelAdminC.h"
31
// Base class for suppliers and consumers to send/receive events
32
// via the Cos Event Service.
34
// = Initialization and termination methods.
38
virtual ~Multiple (void);
41
int init (int argc, char *argv[]);
42
// Calls parse_args, Starts up an ORB, gets hold of the Event Service.
43
// Returns 0 on success, -1 on error.
46
// Calls the ORB's <run> method.
49
// Closes down the ORB and exits.
52
virtual int parse_args (int argc, char *argv []) = 0;
53
// Parse the command line arguments.
55
CosEventChannelAdmin::EventChannel_ptr cos_ec_;
56
// Reference to a running Event Service.
58
const char* service_name;
59
// The name with which to locate the Event Service.
62
int init_ORB (int argc, char *argv[]);
63
// initializes the ORB.
64
// Returns 0 on success, -1 on error.
66
int init_CosEC (void);
67
// initializes the COS EC.
68
// Returns 0 on success, -1 on error.
71
// The ORB that we use.
73
TAO_Naming_Client naming_client_;
74
// An instance of the name client used for resolving the factory
78
#endif /* COSECMULTIPLE_H */