diff options
Diffstat (limited to 'TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op5.cpp')
-rw-r--r-- | TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op5.cpp | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op5.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op5.cpp deleted file mode 100644 index 6f5b6756dda..00000000000 --- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op5.cpp +++ /dev/null @@ -1,81 +0,0 @@ -// $Id$ -#include "Foo_C_cust_op5.h" -#include "Foo_C_i.h" -#include "CancelledExceptionC.h" -#include "CustomExceptionC.h" - - -Foo_C_cust_op5::Foo_C_cust_op5(Foo_C_i* servant) - : TAO::CSD::TP_Custom_Request_Operation(servant), - exception_(false), - cancelled_(false), - servant_(servant) -{ - // This try-catch block is not really necessary, but we have to add it to - // satisfy the non-exception builds. Since there is actually no exception - // raised from _add_ref, we just ignore the exception here. - ACE_TRY_NEW_ENV - { - servant_->_add_ref (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_TRY_CHECK; - } - ACE_CATCHALL - { - } - ACE_ENDTRY; -} - - -Foo_C_cust_op5::~Foo_C_cust_op5() -{ - // This try-catch block is not really necessary, but we have to add it to - // satisfy the non-exception builds. Since there is actually no exception - // raised from _add_ref, we just ignore the exception here. - ACE_TRY_NEW_ENV - { - servant_->_remove_ref (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_TRY_CHECK; - } - ACE_CATCHALL - { - } - ACE_ENDTRY; -} - - -void -Foo_C_cust_op5::result(ACE_ENV_SINGLE_ARG_DECL) -{ - if (this->cancelled_) - { - ACE_THROW (CancelledException()); - } - - if (this->exception_) - { - ACE_THROW (CustomException()); - } -} - - -void -Foo_C_cust_op5::execute_i() -{ - ACE_TRY_NEW_ENV - { - this->servant_->cust_op5(ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_TRY_CHECK; - } - ACE_CATCH (CustomException, ex) - { - this->exception_ = true; - } - ACE_ENDTRY; -} - - -void -Foo_C_cust_op5::cancel_i() -{ - this->cancelled_ = true; -} |