summaryrefslogtreecommitdiff
path: root/TAO/tao/Tagged_Profile.inl
blob: 1122f0402eb3802f0d1670345bc590db97af813c (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
// -*- C++ -*-
TAO_BEGIN_VERSIONED_NAMESPACE_DECL

ACE_INLINE
TAO_Tagged_Profile::TAO_Tagged_Profile (TAO_ORB_Core *orb_core)
  : orb_core_ (orb_core),
    discriminator_ (0),
    object_key_extracted_ (false),
    object_key_ (),
    profile_ (),
    profile_index_ (0),
    type_id_ (0)
{

}

ACE_INLINE TAO::ObjectKey &
TAO_Tagged_Profile::object_key ()
{
  if (!this->object_key_extracted_)
    this->object_key_extracted_ = this->extract_object_key (this->profile_);

  return this->object_key_;
}

ACE_INLINE void
TAO_Tagged_Profile::object_key (TAO::ObjectKey &object_key)
{
  this->object_key_.replace (object_key.length (),
                             object_key.length (),
                             object_key.get_buffer ());
  this->object_key_extracted_ = true;
}

ACE_INLINE const TAO::ObjectKey &
TAO_Tagged_Profile::object_key () const
{
  return const_cast<TAO_Tagged_Profile *> (this)->object_key ();
}

ACE_INLINE const IOP::TaggedProfile &
TAO_Tagged_Profile::tagged_profile () const
{
  return this->profile_;
}

ACE_INLINE CORBA::ULong
TAO_Tagged_Profile::profile_index () const
{
  return this->profile_index_;
}

ACE_INLINE const char*
TAO_Tagged_Profile::type_id () const
{
  return this->type_id_ == 0 ? "" : this->type_id_;
}

ACE_INLINE CORBA::Short
TAO_Tagged_Profile::discriminator () const
{
  return this->discriminator_;
}

TAO_END_VERSIONED_NAMESPACE_DECL