diff options
Diffstat (limited to 'trunk/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/test_i.cpp')
-rw-r--r-- | trunk/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/test_i.cpp | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/trunk/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/test_i.cpp b/trunk/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/test_i.cpp new file mode 100644 index 00000000000..0b76048e39b --- /dev/null +++ b/trunk/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/test_i.cpp @@ -0,0 +1,56 @@ +// $Id$ + +#include "test_i.h" + +ACE_RCSID (Service_Context_Manipulation, + test_i, + "$Id$") + + +Visual_i::Visual_i (CORBA::ORB_ptr orb) + : orb_ (CORBA::ORB::_duplicate (orb)) +{ +} + +void +Visual_i::normal (CORBA::Long + ACE_ENV_ARG_DECL_NOT_USED) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ +// ACE_DEBUG ((LM_DEBUG, "Visual::normal called with %d\n", arg)); +} + +void +Visual_i::nothing (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ +// ACE_DEBUG ((LM_DEBUG, "Visual::nothing\n")); +} + +void +Visual_i::user (ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException, + Test_Interceptors::Silly)) +{ + // ACE_DEBUG ((LM_DEBUG, "Visual::user, throwing Silly\n")); + ACE_THROW (Test_Interceptors::Silly ()); +} + +void +Visual_i::system (ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + // ACE_DEBUG ((LM_DEBUG, "Visual::user, throwing INV_OBJREF\n")); + ACE_THROW (CORBA::INV_OBJREF ()); +} + +void +Visual_i::shutdown (ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + // this->_remove_ref (ACE_ENV_SINGLE_ARG_PARAMETER); + // ACE_CHECK; + ACE_DEBUG ((LM_DEBUG,"(%P|%t) visual_i::shutdown\n")); + this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER); + ACE_CHECK; +} |