1 #include "Smart_Proxy_Impl.h"
3 ACE_CString
Smart_Test_Proxy::fake_ior_ ("This_is_my_fake_ior");
5 Smart_Test_Factory::Smart_Test_Factory (void)
8 "Smart_Test_Factory\n"));
12 Smart_Test_Factory::create_proxy (Test_ptr proxy
)
15 "create_smart_proxy\n"));
17 if (CORBA::is_nil (proxy
) == 0)
18 ACE_NEW_RETURN (proxy
, Smart_Test_Proxy (proxy
), 0);
24 Smart_Test_Proxy::Smart_Test_Proxy (Test_ptr proxy
)
25 : TAO_Smart_Proxy_Base (proxy
)
30 Smart_Test_Proxy::can_convert_to_ior () const
32 // Even though a smart proxy is local, this one can be stringified
37 Smart_Test_Proxy::convert_to_ior (bool,
40 // If this implementation wasn't provided, the ORB would provide
41 // a stringified representation of this object.
42 return CORBA::string_dup (fake_ior_
.c_str ());
46 Smart_Test_Proxy::method (CORBA::Short boo
)
49 "Yahoo, I am smart\n"));
51 CORBA::Short retval
= 0;
54 retval
= TAO_Test_Smart_Proxy_Base::method (boo
);
56 catch (const Test::Oops
& reason
)
58 reason
._tao_print_exception ("User Exception");
66 Smart_Test_Proxy::fake_ior (void)