Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / examples / Callback_Quoter / Consumer_i.h
blob23fa3e574e0dfc23ca079a6e14f393416d2bb82b
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file Consumer_i.h
7 * Defines the implementation header for the Consumer interface.
9 * @author Kirthika Parameswaran <kirthika@cs.wustl.edu>
11 //=============================================================================
14 #ifndef CONSUMER_I_H
15 #define CONSUMER_I_H
16 #include "ConsumerS.h"
17 #include "ConsumerC.h"
18 #include "NotifierS.h"
20 /**
21 * @class Consumer_i
23 * @brief Consumer object implementation.
25 * This class has methods that are called by the callback quoter
26 * server.
28 class Consumer_i : public POA_Callback_Quoter::Consumer
30 public:
31 /// Constructor.
32 Consumer_i (void);
34 /// Destructor.
35 ~Consumer_i (void);
37 /// Gets the stock information from the Notifier.
38 void push (const Callback_Quoter::Info & data);
40 /// Used to get the consumer to shut down.
41 virtual void shutdown (void);
43 /// Set the ORB pointer.
44 void orb (CORBA::ORB_ptr o);
46 private:
47 /// ORB pointer.
48 CORBA::ORB_var orb_;
50 /// If 1 denotes that the consumer is dead else alive.
51 int quit_;
53 // @@ Please rename to Notifier.
54 /// Smart pointer to the Notifier object.
55 Notifier_var server_;
58 #endif /* CONSUMER_I_H */