diff options
Diffstat (limited to 'trunk/TAO/tests/Bug_2560_Regression/Stock_i.h')
-rw-r--r-- | trunk/TAO/tests/Bug_2560_Regression/Stock_i.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/trunk/TAO/tests/Bug_2560_Regression/Stock_i.h b/trunk/TAO/tests/Bug_2560_Regression/Stock_i.h new file mode 100644 index 00000000000..87a430ccc63 --- /dev/null +++ b/trunk/TAO/tests/Bug_2560_Regression/Stock_i.h @@ -0,0 +1,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 */ + + |