//
// $Id: Stock_i.h 90504 2010-06-09 15:57:35Z vzykov $
//

#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 ();
  char *full_name ();
  CORBA::Double price ();
  Quoter::Stock::StockHistory * history ();

  static void set_default_POA ( PortableServer::POA_ptr poa )
  {
    Quoter_Stock_i::_poa = PortableServer::POA::_duplicate (poa);
  }
  virtual PortableServer::POA_ptr _default_POA ()
  {
    return PortableServer::POA::_duplicate (Quoter_Stock_i::_poa.in ());
  }

private:
  std::string symbol_;
  std::string full_name_;
  CORBA::Double price_;

  static PortableServer::POA_var _poa ;
};

#endif /* TAO_TUTORIAL_QUOTER_SIMPLE_SERVER_STOCK_I_H */


