summaryrefslogtreecommitdiff
path: root/TAO/tao/GIOP_Message_Version.inl
blob: 6db2e26f6882118fb9a9516066343edd20a7d5dd (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
// -*- C++ -*-
//
//$Id$

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

ACE_INLINE
TAO_GIOP_Message_Version::TAO_GIOP_Message_Version (
    const TAO_GIOP_Message_Version &src)
  : major (src.major),
    minor (src.minor)
{
}

ACE_INLINE
TAO_GIOP_Message_Version::TAO_GIOP_Message_Version (CORBA::Octet maj,
                                                    CORBA::Octet min)
  : major (maj),
    minor (min)
{
}

ACE_INLINE TAO_GIOP_Message_Version &
TAO_GIOP_Message_Version::operator= (const TAO_GIOP_Message_Version &src)
{
  if (this != &src)
    {
      this->major = src.major;
      this->minor = src.minor;
    }

  return *this;
}


ACE_INLINE void
TAO_GIOP_Message_Version::set_version (CORBA::Octet maj, CORBA::Octet min)
{
  this->major = maj;
  this->minor = min;
}

ACE_INLINE bool
TAO_GIOP_Message_Version::operator== (const TAO_GIOP_Message_Version &src) const
{
  return this->minor == src.minor && this->major == src.major;
}

ACE_INLINE bool
TAO_GIOP_Message_Version::operator!= (const TAO_GIOP_Message_Version &src) const
{
  return !(*this == src);
}

ACE_INLINE CORBA::Octet
TAO_GIOP_Message_Version::major_version (void) const
{
  return this->major;
}

ACE_INLINE CORBA::Octet
TAO_GIOP_Message_Version::minor_version (void) const
{
  return this->minor;
}

TAO_END_VERSIONED_NAMESPACE_DECL