diff options
Diffstat (limited to 'TAO/tests/Smart_Proxies/dtor/Smart_Proxy_Impl.cpp')
-rw-r--r-- | TAO/tests/Smart_Proxies/dtor/Smart_Proxy_Impl.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/TAO/tests/Smart_Proxies/dtor/Smart_Proxy_Impl.cpp b/TAO/tests/Smart_Proxies/dtor/Smart_Proxy_Impl.cpp new file mode 100644 index 00000000000..33354c75f64 --- /dev/null +++ b/TAO/tests/Smart_Proxies/dtor/Smart_Proxy_Impl.cpp @@ -0,0 +1,33 @@ +//$Id$ + +#include "Smart_Proxy_Impl.h" + +Test_ptr +Test_Smart_Factory::create_proxy (Test_ptr proxy + ACE_ENV_ARG_DECL_NOT_USED) +{ + // creat Smart_Proxy + ACE_DEBUG ((LM_DEBUG, + "create a smart_proxy\n")); + + if (CORBA::is_nil (proxy) == 0) + ACE_NEW_RETURN (proxy, + Test_Smart_Proxy(proxy), + 0); + + return proxy; +} + +Test_Smart_Proxy::Test_Smart_Proxy (Test_ptr proxy) + : TAO_Smart_Proxy_Base (proxy) +{ + dtor_called = false; + ACE_DEBUG ((LM_DEBUG, "Smart Proxy constructor called\n")); +} + +Test_Smart_Proxy::~Test_Smart_Proxy() +{ + dtor_called = true; + ACE_DEBUG ((LM_DEBUG, "Smart Proxy destructor called\n")); +} + |