From 47aca60ee970a8127b93f77de9871dc9657fa340 Mon Sep 17 00:00:00 2001 From: kirthika Date: Sat, 25 Dec 1999 05:34:48 +0000 Subject: smart proxy implementation --- .../Smart_Proxies/On_Demand/Smart_Proxy_Impl.cpp | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 TAO/tests/Smart_Proxies/On_Demand/Smart_Proxy_Impl.cpp (limited to 'TAO/tests/Smart_Proxies') diff --git a/TAO/tests/Smart_Proxies/On_Demand/Smart_Proxy_Impl.cpp b/TAO/tests/Smart_Proxies/On_Demand/Smart_Proxy_Impl.cpp new file mode 100644 index 00000000000..cf60c41b0b2 --- /dev/null +++ b/TAO/tests/Smart_Proxies/On_Demand/Smart_Proxy_Impl.cpp @@ -0,0 +1,35 @@ +// $Id$ +#include "Smart_Proxy_Impl.h" + +Smart_Test_Proxy::Smart_Test_Proxy (Test_ptr proxy) + : TAO_Test_Smart_Proxy_Base (proxy) +{ +} + +CORBA::Short +Smart_Test_Proxy::method (CORBA::Short boo, + CORBA::Environment &ACE_TRY_ENV) + ACE_THROW_SPEC ((CORBA::SystemException, + Test::Oops)) +{ + ACE_DEBUG ((LM_DEBUG, + "Yahoo, I am smart\n")); + + CORBA::Short retval = 0; + ACE_TRY + { + retval = TAO_Test_Smart_Proxy_Base::method (boo, + ACE_TRY_ENV); + ACE_TRY_CHECK; + } + ACE_CATCH (Test::Oops, reason) + { + ACE_PRINT_EXCEPTION (reason, + "User Exception"); + return -1; + } + ACE_ENDTRY; + + return retval; +} + -- cgit v1.2.1