Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / docs / tutorials / Quoter / On_Demand_Activation / Handler_i.cpp
blob24f8d503a3a907c91dc56dadeecf5c81ec3fcb09
2 #include "Handler_i.h"
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)
11 void
12 Single_Query_Stock_Handler_i::get_price_and_names (CORBA::Double ami_return_val,
13 const char *symbol,
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_)++;
22 void
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"
29 << endl;
30 (*this->response_count_)++;
34 void
35 Single_Query_Stock_Handler_i::get_symbol (const char *)
37 throw CORBA::NO_IMPLEMENT ();
40 void
41 Single_Query_Stock_Handler_i::get_symbol_excep (::Messaging::ExceptionHolder *)
43 throw CORBA::NO_IMPLEMENT ();
46 void
47 Single_Query_Stock_Handler_i::get_full_name (const char *)
49 throw CORBA::NO_IMPLEMENT ();
52 void
53 Single_Query_Stock_Handler_i::
54 get_full_name_excep (::Messaging::ExceptionHolder *)
56 throw CORBA::NO_IMPLEMENT ();
59 void
60 Single_Query_Stock_Handler_i::price (double)
62 throw CORBA::NO_IMPLEMENT ();
65 void
66 Single_Query_Stock_Handler_i::price_excep (::Messaging::ExceptionHolder *)
68 throw CORBA::NO_IMPLEMENT ();