diff options
Diffstat (limited to 'TAO/tests/OBV/Factory/FactoryS_impl.cpp')
-rw-r--r-- | TAO/tests/OBV/Factory/FactoryS_impl.cpp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/TAO/tests/OBV/Factory/FactoryS_impl.cpp b/TAO/tests/OBV/Factory/FactoryS_impl.cpp new file mode 100644 index 00000000000..49bd2e9401b --- /dev/null +++ b/TAO/tests/OBV/Factory/FactoryS_impl.cpp @@ -0,0 +1,55 @@ +// $Id$ + +#include "FactoryC_impl.h" +#include "FactoryS_impl.h" + + +ACE_RCSID(Factory, FactoryS_impl, "$Id$") + +Test_impl::Test_impl (CORBA::ORB_ptr orb) + : orb_ (CORBA::ORB::_duplicate (orb)) +{ +} + +OBV_FactoryTest::BaseValue * +Test_impl::get_base_value (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + OBV_FactoryTest::BaseValue* ret_val = 0; + ACE_NEW_RETURN (ret_val, + OBV_OBV_FactoryTest::BaseValue, + 0); + + return ret_val; +} + +OBV_FactoryTest::Value1 * +Test_impl::get_value1 (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + OBV_FactoryTest::Value1* ret_val = 0; + ACE_NEW_RETURN (ret_val, + OBV_OBV_FactoryTest::Value1, + 0); + + return ret_val; +} + +OBV_FactoryTest::Value2 * +Test_impl::get_value2 (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + OBV_FactoryTest::Value2* ret_val = 0; + ACE_NEW_RETURN (ret_val, + Value2_impl, + 0); + + return ret_val; +} + +void +Test_impl::shutdown (ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER); +} |