~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/docs/tutorials/Quoter/Simple/Server/Stock_Factory_i.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//
2
 
// Stock_Factory_i.cpp,v 1.1 1999/11/28 17:41:12 coryan Exp
3
 
//
4
 
 
5
 
#include "Stock_Factory_i.h"
6
 
 
7
 
Quoter_Stock_Factory_i::Quoter_Stock_Factory_i ()
8
 
  :  rhat_ ("RHAT", "RedHat, Inc.", 210),
9
 
     msft_ ("MSFT", "Microsoft, Inc.", 91)
10
 
{
11
 
}
12
 
 
13
 
Quoter::Stock_ptr
14
 
Quoter_Stock_Factory_i::get_stock (const char *symbol)
15
 
    throw (Quoter::Invalid_Stock_Symbol)
16
 
{
17
 
  if (strcmp (symbol, "RHAT") == 0) {
18
 
    return this->rhat_._this ();
19
 
  } else if (strcmp (symbol, "MSFT") == 0) {
20
 
    return this->msft_._this ();
21
 
  }
22
 
  throw Quoter::Invalid_Stock_Symbol ();
23
 
}