blob: 0b7150a9c5b640f26160aa8f8744de849814dce4 (
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
|
#include "tao/RTCORBA/RT_Transport_Descriptor_Property.h"
#include "ace/OS_Memory.h"
#if ! defined (__ACE_INLINE__)
#include "tao/RTCORBA/RT_Transport_Descriptor_Property.inl"
#endif /* __ACE_INLINE__ */
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_RT_Transport_Descriptor_Property::~TAO_RT_Transport_Descriptor_Property (void)
{
}
/*************************************************************************************************/
TAO_RT_Transport_Descriptor_Private_Connection_Property::~TAO_RT_Transport_Descriptor_Private_Connection_Property (void)
{
}
TAO_RT_Transport_Descriptor_Property*
TAO_RT_Transport_Descriptor_Private_Connection_Property::duplicate (void)
{
// Construct a copy of our class
TAO_RT_Transport_Descriptor_Private_Connection_Property *desc_prop = 0;
ACE_NEW_RETURN (desc_prop,
TAO_RT_Transport_Descriptor_Private_Connection_Property (this->object_id_),
0);
return desc_prop;
}
CORBA::Boolean
TAO_RT_Transport_Descriptor_Private_Connection_Property::is_equivalent (const TAO_RT_Transport_Descriptor_Property *other_prop)
{
const TAO_RT_Transport_Descriptor_Private_Connection_Property *rhs =
dynamic_cast<const TAO_RT_Transport_Descriptor_Private_Connection_Property*> (other_prop);
return (rhs != 0 &&
this->object_id_ == rhs->object_id_);
}
/*************************************************************************************************/
TAO_RT_Transport_Descriptor_Banded_Connection_Property::~TAO_RT_Transport_Descriptor_Banded_Connection_Property ()
{
}
TAO_RT_Transport_Descriptor_Property*
TAO_RT_Transport_Descriptor_Banded_Connection_Property::duplicate (void)
{
// Construct a copy of our class
TAO_RT_Transport_Descriptor_Banded_Connection_Property *desc_prop = 0;
ACE_NEW_RETURN (desc_prop,
TAO_RT_Transport_Descriptor_Banded_Connection_Property (this->low_priority_,
this->high_priority_),
0);
return desc_prop;
}
CORBA::Boolean
TAO_RT_Transport_Descriptor_Banded_Connection_Property::is_equivalent (const TAO_RT_Transport_Descriptor_Property *other_prop)
{
const TAO_RT_Transport_Descriptor_Banded_Connection_Property *rhs =
dynamic_cast<const TAO_RT_Transport_Descriptor_Banded_Connection_Property*> (other_prop);
return (rhs != 0 &&
this->low_priority_ == rhs->low_priority_ &&
this->high_priority_ == rhs->high_priority_);
}
TAO_END_VERSIONED_NAMESPACE_DECL
|