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 //=============================================================================
13 #include "Consumer_i.h"
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.
22 "Selling 10,000 %s shares at %d!!\n",
23 data
.stock_name
.in (),
28 Consumer_i::shutdown ()
30 // Instruct the ORB to shutdown.
32 " consumer shutting down \n"));
34 this->orb_
->shutdown ();
38 Consumer_i::orb (CORBA::ORB_ptr o
)
40 // Makes a copy of the ORB pointer.
42 this->orb_
= CORBA::ORB::_duplicate (o
);