diff options
Diffstat (limited to 'TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Request_Interceptor.cpp')
-rw-r--r-- | TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Request_Interceptor.cpp | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Request_Interceptor.cpp b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Request_Interceptor.cpp deleted file mode 100644 index c918a767b2c..00000000000 --- a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Request_Interceptor.cpp +++ /dev/null @@ -1,72 +0,0 @@ -// -*- C++ -*- - -#include "Request_Interceptor.h" - -ACE_RCSID (Request_Interceptor_Flow, - Request_Interceptor, - "$Id$") - -Request_Interceptor::Request_Interceptor (const char *name) - : name_ (name), - starting_interception_point_count_ (0), - ending_interception_point_count_ (0) -{ -} - -char * -Request_Interceptor::name ( - ACE_ENV_SINGLE_ARG_DECL_NOT_USED) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - return CORBA::string_dup (this->name_.in ()); -} - -void -Request_Interceptor::destroy (ACE_ENV_SINGLE_ARG_DECL) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - - CORBA::ULong s_count = - this->starting_interception_point_count_.value (); - - CORBA::ULong e_count = - this->ending_interception_point_count_.value (); - - if (s_count == 0) - { - ACE_ERROR ((LM_ERROR, - "(%P) ERROR: Interceptor %d \"%s\"\n" - "(%P) The number of starting interception point calls " - "is zero\n", s_count, - this->name_.in ())); - - ACE_THROW (CORBA::INTERNAL ()); - } - - if (e_count == 0) - { - ACE_ERROR ((LM_ERROR, - "(%P) ERROR: Interceptor %d \"%s\"\n" - "(%P) The number of ending interception point calls" - "is zero\n", - e_count, this->name_.in ())); - - ACE_THROW (CORBA::INTERNAL ()); - } - - if (s_count != e_count) - { - ACE_ERROR ((LM_ERROR, - "(%P) ERROR: Interceptor \"%s\"\n" - "(%P) The number of starting interception point " - "calls (%u)\n" - "(%P) did not equal the number of ending " - "interception \n" - "(%P) point calls (%u).\n\n", - this->name_.in (), - s_count, - e_count)); - - ACE_THROW (CORBA::INTERNAL ()); - } -} |