Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / docs / tutorials / Quoter / AMI / Stock_Factory_i.cpp
blob06a2f8bf9d13dcafe04ec9f93642bc9040b8f677
2 #include "Stock_Factory_i.h"
4 Quoter_Stock_Factory_i::Quoter_Stock_Factory_i ()
5 : rhat_ ("RHAT", "RedHat, Inc.", 210),
6 msft_ ("MSFT", "Microsoft, Inc.", 91)
10 Quoter::Stock_ptr
11 Quoter_Stock_Factory_i::get_stock (const char *symbol)
13 if (ACE_OS::strcmp (symbol, "RHAT") == 0) {
14 return this->rhat_._this ();
15 } else if (ACE_OS::strcmp (symbol, "MSFT") == 0) {
16 return this->msft_._this ();
18 throw Quoter::Invalid_Stock_Symbol ();