Use =default for skeleton copy constructor
[ACE_TAO.git] / TAO / tests / Bug_2560_Regression / Stock_i.cpp
blob0df17c0ef9ba01be534d4b81cffe3c7851845a74
2 #include "Stock_i.h"
3 #include "ace/OS_NS_unistd.h"
5 PortableServer::POA_var Quoter_Stock_i::_poa ;
7 Quoter_Stock_i::Quoter_Stock_i (const char *symbol,
8 const char *full_name,
9 CORBA::Double price)
10 : symbol_ (symbol)
11 , full_name_ (full_name)
12 , price_ (price)
16 char *
17 Quoter_Stock_i::symbol ()
19 return CORBA::string_dup (this->symbol_.c_str ());
22 char *
23 Quoter_Stock_i::full_name ()
25 return CORBA::string_dup (this->full_name_.c_str ());
28 CORBA::Double
29 Quoter_Stock_i::price ()
31 return this->price_;
34 Quoter::Stock::StockHistory*
35 Quoter_Stock_i::history ()
37 Quoter::Stock::StockHistory_var hist = new Quoter::Stock::StockHistory ;
39 // delay a little bit so we have chance to kill client
40 // before this method returns
41 ACE_OS::sleep(5);
43 const unsigned hsize = 200000 ;
44 hist->length(hsize);
45 for (unsigned int i = 0 ; i < hsize ; ++ i) {
46 hist[i] = double(i+1);
49 ACE_DEBUG ((LM_DEBUG, "Returning method in server\n"));
50 return hist._retn();