Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / examples / Callback_Quoter / Consumer_i.cpp
blob35f47f2df2d45831203a3663652f709d1dfcf037
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 //=============================================================================
14 #include "Consumer_i.h"
16 Consumer_i::Consumer_i (void)
20 Consumer_i::~Consumer_i (void)
24 void
25 Consumer_i::push (const Callback_Quoter::Info &data)
27 // On getting the needed information you now proceed to the next
28 // step, which could be obtaining the shares.
30 ACE_DEBUG ((LM_DEBUG,
31 "Selling 10,000 %s shares at %d!!\n",
32 data.stock_name.in (),
33 data.value));
36 void
37 Consumer_i::shutdown (void)
40 // Instruct the ORB to shutdown.
42 ACE_DEBUG ((LM_DEBUG,
43 " consumer shutting down \n"));
45 this->orb_->shutdown ();
48 void
49 Consumer_i::orb (CORBA::ORB_ptr o)
51 // Makes a copy of the ORB pointer.
53 this->orb_ = CORBA::ORB::_duplicate (o);