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::
42 get_symbol_excep (::Messaging::ExceptionHolder
*)
44 throw CORBA::NO_IMPLEMENT ();
48 Single_Query_Stock_Handler_i::get_full_name (const char *)
50 throw CORBA::NO_IMPLEMENT ();
54 Single_Query_Stock_Handler_i::
55 get_full_name_excep (::Messaging::ExceptionHolder
*)
57 throw CORBA::NO_IMPLEMENT ();
61 Single_Query_Stock_Handler_i::price (double)
63 throw CORBA::NO_IMPLEMENT ();
67 Single_Query_Stock_Handler_i::
68 price_excep (::Messaging::ExceptionHolder
*)
70 throw CORBA::NO_IMPLEMENT ();