summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/LoadBalancing/Stock.cpp
blob: fd6a8f70e7747a811b7ba27c219e6be584f3249e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// $Id$
//

#include "Stock.h"

Stock::Stock (const char *symbol,
              const char *full_name,
              CORBA::Double price)
  :  symbol_ (symbol),
     full_name_ (full_name),
     price_ (price)
{
}

char *
Stock::symbol () throw (CORBA::SystemException)
{
  return CORBA::string_dup (this->symbol_.c_str ());
}

char *
Stock::full_name () throw (CORBA::SystemException)
{
  return CORBA::string_dup (this->full_name_.c_str ());
}

CORBA::Double
Stock::price () throw (CORBA::SystemException)
{
  return this->price_;
}