summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.inl
blob: d30cabb4e392f181166a350d6a998b4e63762263 (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
// $Id$

ACE_INLINE TAO_NS_Property_Boolean&
TAO_NS_Property_Boolean::operator= (const TAO_NS_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_NS_Property_Boolean&
TAO_NS_Property_Boolean::operator= (const CORBA::Boolean& value)
{
  this->value_ = value;

  return *this;
}

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

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

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

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