Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / docs / tutorials / Quoter / AMI / Handler_i.cpp
blob168dc2d222c457cfe2eb483de04df5d12e994ee8
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::
42 get_symbol_excep (::Messaging::ExceptionHolder *)
44 throw CORBA::NO_IMPLEMENT ();
47 void
48 Single_Query_Stock_Handler_i::get_full_name (const char *)
50 throw CORBA::NO_IMPLEMENT ();
53 void
54 Single_Query_Stock_Handler_i::
55 get_full_name_excep (::Messaging::ExceptionHolder *)
57 throw CORBA::NO_IMPLEMENT ();
60 void
61 Single_Query_Stock_Handler_i::price (double)
63 throw CORBA::NO_IMPLEMENT ();
66 void
67 Single_Query_Stock_Handler_i::
68 price_excep (::Messaging::ExceptionHolder *)
70 throw CORBA::NO_IMPLEMENT ();