Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / Bug_2560_Regression / Stock_i.h
blob8cdefb39ed36d0882d3b075737419f3c1d3cd057
2 #ifndef TAO_TUTORIAL_QUOTER_SIMPLE_SERVER_STOCK_I_H
3 #define TAO_TUTORIAL_QUOTER_SIMPLE_SERVER_STOCK_I_H
5 #include "QuoterS.h"
6 #include <string>
8 class Quoter_Stock_i : public POA_Quoter::Stock {
9 public:
10 Quoter_Stock_i (const char *symbol,
11 const char *full_name,
12 CORBA::Double price);
14 char *symbol ();
15 char *full_name ();
16 CORBA::Double price ();
17 Quoter::Stock::StockHistory * history ();
19 static void set_default_POA (PortableServer::POA_ptr poa)
21 Quoter_Stock_i::_poa = PortableServer::POA::_duplicate (poa);
23 virtual PortableServer::POA_ptr _default_POA ()
25 return PortableServer::POA::_duplicate (Quoter_Stock_i::_poa.in ());
28 private:
29 std::string symbol_;
30 std::string full_name_;
31 CORBA::Double price_;
33 static PortableServer::POA_var _poa ;
36 #endif /* TAO_TUTORIAL_QUOTER_SIMPLE_SERVER_STOCK_I_H */