blob: 78e69462db75516712273f1551c30af7a297cd24 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
// $Id$
#include "Direct_Object_Proxy_Impl.h"
#include "Object_Adapter.h"
#include "tao/Object.h"
ACE_RCSID(tao, TAO_Direct_Object_Proxy_Impl, "$Id$")
TAO_Direct_Object_Proxy_Impl::TAO_Direct_Object_Proxy_Impl (void)
{
// No-op
}
TAO_Direct_Object_Proxy_Impl::~TAO_Direct_Object_Proxy_Impl (void)
{
// No-op
}
CORBA::Boolean
TAO_Direct_Object_Proxy_Impl::_is_a (const CORBA::Object_ptr target,
const CORBA::Char *logical_type_id
ACE_ENV_ARG_DECL )
{
return target->_servant ()->_is_a (logical_type_id
ACE_ENV_ARG_PARAMETER);
}
#if (TAO_HAS_MINIMUM_CORBA == 0)
CORBA::Boolean
TAO_Direct_Object_Proxy_Impl::_non_existent (const CORBA::Object_ptr target
ACE_ENV_ARG_DECL)
{
CORBA::Boolean _tao_retval = 0;
ACE_TRY
{
if (target->_servant () != 0)
return target->_servant ()->_non_existent (ACE_ENV_SINGLE_ARG_PARAMETER);
// @@ Maybe we want to change this exception...
ACE_THROW_RETURN (CORBA::INV_OBJREF (), 0);
}
ACE_CATCH (CORBA::OBJECT_NOT_EXIST, ex)
{
_tao_retval = 1;
}
ACE_CATCHANY
{
ACE_RE_THROW;
}
ACE_ENDTRY;
return _tao_retval;
}
CORBA_InterfaceDef_ptr
TAO_Direct_Object_Proxy_Impl::_get_interface (const CORBA::Object_ptr target
ACE_ENV_ARG_DECL)
{
ACE_TRY
{
if (target->_servant () != 0)
return target->_servant ()->_get_interface (ACE_ENV_SINGLE_ARG_PARAMETER);
// @@ Maybe we want to change this exception...
ACE_THROW_RETURN (CORBA::INV_OBJREF (), 0);
}
ACE_CATCH (CORBA::OBJECT_NOT_EXIST, ex)
{
}
ACE_CATCHANY
{
ACE_RE_THROW;
}
ACE_ENDTRY;
return 0;
}
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
|