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 "tao/EndpointPolicy/EndpointPolicy_i.h"
#include "tao/SystemException.h"
ACE_RCSID (EndpointPolicy,
EndpointPolicy_i,
"$Id$")
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_EndpointPolicy_i::TAO_EndpointPolicy_i (const EndpointPolicy::EndpointList &value)
: value_ (value)
{
}
TAO_EndpointPolicy_i::TAO_EndpointPolicy_i (const TAO_EndpointPolicy_i &rhs)
: ::CORBA::Object ()
, ::CORBA::Policy ()
, ::EndpointPolicy::Policy ()
, ::CORBA::LocalObject ()
, TAO_Local_RefCounted_Object ()
, value_ (rhs.value_)
{
}
TAO_EndpointPolicy_i::~TAO_EndpointPolicy_i ()
{
}
CORBA::PolicyType
TAO_EndpointPolicy_i::policy_type (void)
{
return EndpointPolicy::ENDPOINT_POLICY_TYPE;
}
TAO_EndpointPolicy_i *
TAO_EndpointPolicy_i::clone (void) const
{
TAO_EndpointPolicy_i *copy = 0;
ACE_NEW_RETURN (copy,
TAO_EndpointPolicy_i (*this),
0);
return copy;
}
EndpointPolicy::EndpointList *
TAO_EndpointPolicy_i::value (void)
{
EndpointPolicy::EndpointList* list = 0;
ACE_NEW_RETURN (list,
EndpointPolicy::EndpointList (this->value_),
0);
return list;
}
CORBA::Policy_ptr
TAO_EndpointPolicy_i::copy (void)
{
TAO_EndpointPolicy_i* servant = 0;
ACE_NEW_THROW_EX (servant,
TAO_EndpointPolicy_i (*this),
CORBA::NO_MEMORY ());
return servant;
}
void
TAO_EndpointPolicy_i::destroy (void)
{
this->value_.length (0);
}
TAO_Cached_Policy_Type
TAO_EndpointPolicy_i::_tao_cached_type (void) const
{
return TAO_CACHED_POLICY_ENDPOINT;
}
TAO_END_VERSIONED_NAMESPACE_DECL
|