blob: c1c6f9adef4fc1c9337c504383b1ff0ecb0b37a6 (
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
|
/* -*- C++ -*- */
// $Id$
// ===========================================================
//
// = LIBRARY
// TAO/examples/Callback_Quoter
//
// = FILENAME
// Consumer_i.h
//
// = DESCRIPTION
// Defines the implementation header for the Consumer interface.
//
// = AUTHOR
// Kirthika Parameswaran <kirthika@cs.wustl.edu>
//
// ===========================================================
#if !defined (CONSUMER_I_H)
#define CONSUMER_I_H
#include "ConsumerS.h"
#include "ConsumerC.h"
#include "NotifierS.h"
class Consumer_i : public POA_Callback_Quoter::Consumer
{
// = TITLE
// Consumer object implementation.
//
// = DESCRIPTION
// This class has methods that are called by the callback quoter
// server.
public:
// = Initialization and termination methods.
Consumer_i (void);
// Constructor.
~Consumer_i (void);
// Destructor.
void push (const Callback_Quoter::Info & data,
CORBA_Environment& TAO_TRY_ENV);
// Gets the stock information from the Notifier.
virtual void shutdown (CORBA::Environment &TAO_TRY_ENV);
// Used to get the consumer to shut down.
void orb (CORBA::ORB_ptr o);
// Set the ORB pointer.
private:
int done_;
// Denotes whether the information about the stock has been
// received.
CORBA::ORB_var orb_;
// ORB pointer.
// @@ Please rename to Notifier.
Notifier_var server_;
// Smart pointer to the Notifier object.
};
#endif /* CONSUMER_I_H */
|