#ifndef STOCK_IMPL_H
#define STOCK_IMPL_H

#include <string>
#include <Quote_skel.h>

using namespace std;

class Quote_Stock_impl: public POA_Quote::Stock, public PortableServer::RefCountServantBase{

public:
  Quote_Stock_impl(CORBA::Double pPrice, const char* pName, const char* pSymbol);

  // the business function
  virtual CORBA::Double price() throw (CORBA::SystemException);

  // the getter for the attributes
  virtual char* name() throw (CORBA::SystemException);
  virtual char* symbol() throw (CORBA::SystemException);

  // a management function
  virtual void destroy() throw (CORBA::SystemException);

private:
  CORBA::Double m_dPrice;
  string m_strName;  /* the readonly attribute */
  string m_strSymbol;  /* the readonly attribute */

};

#endif

