summaryrefslogtreecommitdiff
path: root/trunk/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.inl
blob: aa64246f6a5fed8dd67dc2aebfdb3e876d8863cc (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
// -*- C++ -*-

//=============================================================================
/**
 *  @file    PG_Properties_Encoder.inl
 *
 *  $Id$
 *
 *  @author Dale Wilson <wilson_d@ociweb.com>
 */
//=============================================================================

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

namespace TAO_PG
{
  ACE_INLINE
  Properties_Encoder::NamedValue::NamedValue ()
  {
  }

  ACE_INLINE
  Properties_Encoder::NamedValue::NamedValue (const ACE_CString & name, const PortableGroup::Value & value)
    : name_ (name)
    , value_ (value)
  {
  }

  ACE_INLINE
  Properties_Encoder::NamedValue::NamedValue (const Properties_Encoder::NamedValue & rhs)
    : name_ (rhs.name_)
    , value_ (rhs.value_)
  {
  }

  ACE_INLINE
  Properties_Encoder::NamedValue &
  Properties_Encoder::NamedValue::operator = (const Properties_Encoder::NamedValue & rhs)
  {
    if (this != &rhs)
    {
      this->name_ = rhs.name_;
      this->value_ = rhs.value_;
    }
    return *this;
  }

  ACE_INLINE
  bool
  Properties_Encoder::NamedValue::operator == (const Properties_Encoder::NamedValue &rhs) const
  {
    return this->name_ == rhs.name_;
  }

  ACE_INLINE
  bool
  Properties_Encoder::NamedValue::operator != (const Properties_Encoder::NamedValue &rhs) const
  {
    return this->name_ != rhs.name_;
  }

} //namespace TAO_PG

TAO_END_VERSIONED_NAMESPACE_DECL