~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Multiple.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- C++ -*- */
2
 
// Multiple.h,v 1.1 2000/09/21 15:48:27 coryan Exp
3
 
 
4
 
// ============================================================================
5
 
//
6
 
// = FILENAME
7
 
//   Multiple.h
8
 
//
9
 
// = AUTHOR
10
 
//   Pradeep Gore <pradeep@cs.wustl.edu>
11
 
//
12
 
// = DESCRIPTION
13
 
//   This is a test class for the Cos Event Service.
14
 
//
15
 
// ============================================================================
16
 
 
17
 
#ifndef COSECMULTIPLE_H
18
 
#define COSECMULTIPLE_H
19
 
 
20
 
#include "orbsvcs/Naming/Naming_Utils.h"
21
 
#include "orbsvcs/CosNamingC.h"
22
 
#include "orbsvcs/CosEventChannelAdminC.h"
23
 
 
24
 
class Multiple
25
 
{
26
 
 public:
27
 
  // = TITLE
28
 
  //   class Multiple
29
 
  //
30
 
  // = DESCRIPTION
31
 
  //   Base class for suppliers and consumers to send/receive events
32
 
  //   via the Cos Event Service.
33
 
 public:
34
 
  // = Initialization and termination methods.
35
 
  Multiple (void);
36
 
  // Constructor.
37
 
 
38
 
  virtual ~Multiple (void);
39
 
  // Destructor.
40
 
 
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.
44
 
 
45
 
  int runORB (void);
46
 
  // Calls the ORB's <run> method.
47
 
 
48
 
  void shutdown (void);
49
 
  // Closes down the ORB and exits.
50
 
 
51
 
 protected:
52
 
  virtual int parse_args (int argc, char *argv []) = 0;
53
 
  // Parse the command line arguments.
54
 
 
55
 
  CosEventChannelAdmin::EventChannel_ptr cos_ec_;
56
 
  // Reference to a running Event Service.
57
 
 
58
 
  const char* service_name;
59
 
// The name with which to locate the Event Service.
60
 
 
61
 
 private:
62
 
  int init_ORB (int argc, char *argv[]);
63
 
  // initializes the ORB.
64
 
  // Returns 0 on success, -1 on error.
65
 
 
66
 
  int init_CosEC (void);
67
 
  // initializes the COS EC.
68
 
  // Returns 0 on success, -1 on error.
69
 
 
70
 
  CORBA::ORB_var orb_;
71
 
  // The ORB that we use.
72
 
 
73
 
  TAO_Naming_Client naming_client_;
74
 
  // An instance of the name client used for resolving the factory
75
 
  // objects.
76
 
};
77
 
 
78
 
#endif /* COSECMULTIPLE_H */