summaryrefslogtreecommitdiff
path: root/trunk/TAO/orbsvcs/examples/LoadBalancing/Stock.h
blob: 3a902ed52610ca56cb3c41132e6e2d895130a8b2 (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
//
// $Id$
//

#ifndef STOCK_H
#define STOCK_H

#include "TestS.h"
#include <string>

class Stock
  : public POA_Test::Stock
{
public:
  Stock (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);

private:
#if defined (HPUX) && (ACE_HAS_STANDARD_CPP_LIBRARY == 0)
  string symbol_;
  string full_name_;
#else
  std::string symbol_;
  std::string full_name_;
#endif /* HPUX */
  CORBA::Double price_;
};

#endif /* STOCK_H */