diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-12-04 12:51:16 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-12-04 12:51:16 +0000 |
commit | 500ee1776512a7b018aa3b4784eb9694662c8c2e (patch) | |
tree | fceb535ee4274f72210006bee8d23d651b02bd3e | |
parent | de889fdd603d2501a06a2b19d0f7ef255e51d5f4 (diff) | |
download | ATCD-500ee1776512a7b018aa3b4784eb9694662c8c2e.tar.gz |
-rw-r--r-- | TAO/docs/tutorials/Quoter/RTCORBA/StockNameConsumer_i.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/TAO/docs/tutorials/Quoter/RTCORBA/StockNameConsumer_i.cpp b/TAO/docs/tutorials/Quoter/RTCORBA/StockNameConsumer_i.cpp index 2e5698c1c71..8fe636bcd96 100644 --- a/TAO/docs/tutorials/Quoter/RTCORBA/StockNameConsumer_i.cpp +++ b/TAO/docs/tutorials/Quoter/RTCORBA/StockNameConsumer_i.cpp @@ -1,3 +1,4 @@ +// $Id$ // local headers #include "StockNameConsumer_i.h" @@ -23,7 +24,7 @@ void Stock_StockNameConsumer_i::push_StockName (::Stock::StockNames *the_stockna i < the_stockname->names ().length (); ++i) { - if (ACE_OS::strcmp (this->stock_name_, + if (ACE_OS::strcmp (this->stock_name_, the_stockname->names ()[i]) == 0) { // Get the quoter for the connection from the <context_>. @@ -31,7 +32,7 @@ void Stock_StockNameConsumer_i::push_StockName (::Stock::StockNames *the_stockna "*** message: getting the quoter connection\n")); Stock::StockQuoter_var quoter = this->context_.get_connection_quoter_info (); - + try { // Request more information from the StockQuoter. @@ -39,10 +40,10 @@ void Stock_StockNameConsumer_i::push_StockName (::Stock::StockNames *the_stockna "*** message: requesting the stock info from the quoter\n")); Stock::StockInfo_var stock_info = quoter->get_stock_info (the_stockname->names()[i]); - + // Display the current value of the stock. ACE_DEBUG ((LM_DEBUG, - "Current value of %s is $%d\n", + "Current value of %s is $%d\n", stock_info->name.in (), stock_info->last)); } @@ -59,14 +60,14 @@ void Stock_StockNameConsumer_i::push_StockName (::Stock::StockNames *the_stockna } -::Stock::Cookie * +::Stock::Cookie * Stock_StockNameConsumer_i::cookie () throw (::CORBA::SystemException) { return this->cookie_.in (); } -void +void Stock_StockNameConsumer_i::cookie (::Stock::Cookie *cookie) throw (::CORBA::SystemException) { |