Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / examples / Callback_Quoter / Consumer_i.cpp
blob2e37f82b1c6f8e618a4c7c69b8b92f8f282a1720
2 //=============================================================================
3 /**
4 * @file Consumer_i.cpp
6 * Implements the Consumer_i class, which is used by the
7 * callback quoter client.
9 * @author Kirthika Parameswaran <kirthika@cs.wustl.edu>
11 //=============================================================================
13 #include "Consumer_i.h"
15 void
16 Consumer_i::push (const Callback_Quoter::Info &data)
18 // On getting the needed information you now proceed to the next
19 // step, which could be obtaining the shares.
21 ACE_DEBUG ((LM_DEBUG,
22 "Selling 10,000 %s shares at %d!!\n",
23 data.stock_name.in (),
24 data.value));
27 void
28 Consumer_i::shutdown ()
30 // Instruct the ORB to shutdown.
31 ACE_DEBUG ((LM_DEBUG,
32 " consumer shutting down \n"));
34 this->orb_->shutdown ();
37 void
38 Consumer_i::orb (CORBA::ORB_ptr o)
40 // Makes a copy of the ORB pointer.
42 this->orb_ = CORBA::ORB::_duplicate (o);