summaryrefslogtreecommitdiff
path: root/trunk/TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.inl
blob: bccd42bed592ae896376e2222ab47697ddacbbc5 (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
// -*- C++ -*-
//
// $Id$

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

ACE_INLINE TAO_Notify_Property_Boolean&
TAO_Notify_Property_Boolean::operator= (const TAO_Notify_Property_Boolean& rhs)
{
  if (this == &rhs)
    return *this;

  if (rhs.is_valid ())
    {
      this->name_ = rhs.name_;
      this->value_ = rhs.value_;
      this->valid_ = rhs.valid_;
    }

  return *this;
}

ACE_INLINE TAO_Notify_Property_Boolean&
TAO_Notify_Property_Boolean::operator= (const CORBA::Boolean& value)
{
  this->value_ = value;

  return *this;
}

ACE_INLINE bool
TAO_Notify_Property_Boolean::operator== (const CORBA::Boolean &rhs) const
{
  return (this->value_ == rhs);
}

ACE_INLINE bool
TAO_Notify_Property_Boolean::operator!= (const CORBA::Boolean &rhs) const
{
  return (this->value_ != rhs);
}

ACE_INLINE
const char *
TAO_Notify_Property_Boolean::name (void) const
{
  return this->name_;
}

ACE_INLINE CORBA::Boolean
TAO_Notify_Property_Boolean::value (void) const
{
  return this->value_;
}

ACE_INLINE CORBA::Boolean
TAO_Notify_Property_Boolean::is_valid (void) const
{
  return this->valid_;
}

TAO_END_VERSIONED_NAMESPACE_DECL