diff options
Diffstat (limited to 'TAO/tests/corba_loc/Stock_i.cpp')
-rw-r--r-- | TAO/tests/corba_loc/Stock_i.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/TAO/tests/corba_loc/Stock_i.cpp b/TAO/tests/corba_loc/Stock_i.cpp new file mode 100644 index 00000000000..2421370054c --- /dev/null +++ b/TAO/tests/corba_loc/Stock_i.cpp @@ -0,0 +1,33 @@ +// +// $Id$ +// + +#include "Stock_i.h" + +Quoter_Stock_i::Quoter_Stock_i (const char *symbol, + const char *full_name, + CORBA::Double price, + CORBA::Environment & = TAO_default_environment()) + : symbol_ (symbol), + full_name_ (full_name), + price_ (price) +{ +} + +char * +Quoter_Stock_i::symbol (CORBA::Environment & = TAO_default_environment()) throw (CORBA::SystemException) +{ + return CORBA::string_dup (this->symbol_.c_str ()); +} + +char * +Quoter_Stock_i::full_name (CORBA::Environment & = TAO_default_environment()) throw (CORBA::SystemException) +{ + return CORBA::string_dup (this->full_name_.c_str ()); +} + +CORBA::Double +Quoter_Stock_i::price (CORBA::Environment & = TAO_default_environment()) throw (CORBA::SystemException) +{ + return this->price_; +} |