3 #include "ace/streams.h"
5 Single_Query_Stock_Handler_i::
6 Single_Query_Stock_Handler_i (int *response_count
)
7 : response_count_ (response_count
)
12 Single_Query_Stock_Handler_i::get_price_and_names (CORBA::Double ami_return_val
,
14 const char *full_name
)
16 cout
<< "The price of one stock in \""
17 << full_name
<< "\" (" << symbol
<< ") is "
18 << ami_return_val
<< endl
;
19 (*this->response_count_
)++;
23 Single_Query_Stock_Handler_i::
24 get_price_and_names_excep (::Messaging::ExceptionHolder
*)
26 // We ignore the exception, but this counts as a reponse, otherwise
27 // the application would not finish.
28 cerr
<< "Exception raised while querying stock price"
30 (*this->response_count_
)++;
35 Single_Query_Stock_Handler_i::get_symbol (const char *)
37 throw CORBA::NO_IMPLEMENT ();
41 Single_Query_Stock_Handler_i::get_symbol_excep (::Messaging::ExceptionHolder
*)
43 throw CORBA::NO_IMPLEMENT ();
47 Single_Query_Stock_Handler_i::get_full_name (const char *)
49 throw CORBA::NO_IMPLEMENT ();
53 Single_Query_Stock_Handler_i::
54 get_full_name_excep (::Messaging::ExceptionHolder
*)
56 throw CORBA::NO_IMPLEMENT ();
60 Single_Query_Stock_Handler_i::price (double)
62 throw CORBA::NO_IMPLEMENT ();
66 Single_Query_Stock_Handler_i::price_excep (::Messaging::ExceptionHolder
*)
68 throw CORBA::NO_IMPLEMENT ();