blob: 87a430ccc63ee3a1cb105e137d83dbd4dde55792 (
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
33
34
35
|
//
// $Id$
//
#ifndef TAO_TUTORIAL_QUOTER_SIMPLE_SERVER_STOCK_I_H
#define TAO_TUTORIAL_QUOTER_SIMPLE_SERVER_STOCK_I_H
#include "QuoterS.h"
#include <string>
class Quoter_Stock_i : public POA_Quoter::Stock {
public:
Quoter_Stock_i (const char *symbol,
const char *full_name,
CORBA::Double price);
char *symbol () throw (CORBA::SystemException);
char *full_name () throw (CORBA::SystemException);
CORBA::Double price () throw (CORBA::SystemException);
Quoter::Stock::StockHistory * history () throw (CORBA::SystemException) ;
static void set_default_POA ( PortableServer::POA_ptr poa ) { Quoter_Stock_i::_poa = poa ; }
virtual PortableServer::POA_ptr _default_POA () { return Quoter_Stock_i::_poa ; }
private:
std::string symbol_;
std::string full_name_;
CORBA::Double price_;
static PortableServer::POA_ptr _poa ;
};
#endif /* TAO_TUTORIAL_QUOTER_SIMPLE_SERVER_STOCK_I_H */
|