blob: fc629e39647334786716f4e66d31432c95fc57a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// $Id$
#include "Smart_Proxy_Impl.h"
#include "ace/OS_NS_string.h"
#include "ace/Log_Msg.h"
Smart_Diamond_Top_Factory::Smart_Diamond_Top_Factory (void)
{
ACE_DEBUG ((LM_DEBUG, "Smart_Diamond_Top_Factory\n"));
}
Diamond::Top_ptr
Smart_Diamond_Top_Factory::create_proxy (Diamond::Top_ptr proxy
)
{
ACE_DEBUG ((LM_DEBUG, "create_smart_proxy\n"));
if (CORBA::is_nil (proxy) == 0)
ACE_NEW_RETURN (proxy,
Smart_Diamond_Top_Proxy (proxy),
0);
return proxy;
}
Smart_Diamond_Top_Proxy::Smart_Diamond_Top_Proxy (Diamond::Top_ptr proxy)
: TAO_Smart_Proxy_Base (proxy)
{
}
char *
Smart_Diamond_Top_Proxy::shape ()
{
ACE_DEBUG ((LM_DEBUG, "Smart_proxy: This is "));
char *ans= 0;
try
{
ans = ACE_OS::strdup (
Diamond::TAO_Diamond_Top_Smart_Proxy_Base::shape ());
ACE_DEBUG ((LM_DEBUG, "%C\n", ans));
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("Uncaught Exception");
return 0;
}
return ans;
}
|