2 //=============================================================================
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)
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.
31 "Selling 10,000 %s shares at %d!!\n",
32 data
.stock_name
.in (),
37 Consumer_i::shutdown (void)
40 // Instruct the ORB to shutdown.
43 " consumer shutting down \n"));
45 this->orb_
->shutdown ();
49 Consumer_i::orb (CORBA::ORB_ptr o
)
51 // Makes a copy of the ORB pointer.
53 this->orb_
= CORBA::ORB::_duplicate (o
);