blob: 53c7dd0be354adf34c0fb96c1c7450b6c42d953a (
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
|
#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 ()
{
return CORBA::string_dup (this->symbol_.c_str ());
}
char *
Stock::full_name ()
{
return CORBA::string_dup (this->full_name_.c_str ());
}
CORBA::Double
Stock::price ()
{
return this->price_;
}
|