Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Tagged_Profile.inl
blob1122f0402eb3802f0d1670345bc590db97af813c
1 // -*- C++ -*-
2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE
5 TAO_Tagged_Profile::TAO_Tagged_Profile (TAO_ORB_Core *orb_core)
6   : orb_core_ (orb_core),
7     discriminator_ (0),
8     object_key_extracted_ (false),
9     object_key_ (),
10     profile_ (),
11     profile_index_ (0),
12     type_id_ (0)
17 ACE_INLINE TAO::ObjectKey &
18 TAO_Tagged_Profile::object_key ()
20   if (!this->object_key_extracted_)
21     this->object_key_extracted_ = this->extract_object_key (this->profile_);
23   return this->object_key_;
26 ACE_INLINE void
27 TAO_Tagged_Profile::object_key (TAO::ObjectKey &object_key)
29   this->object_key_.replace (object_key.length (),
30                              object_key.length (),
31                              object_key.get_buffer ());
32   this->object_key_extracted_ = true;
35 ACE_INLINE const TAO::ObjectKey &
36 TAO_Tagged_Profile::object_key () const
38   return const_cast<TAO_Tagged_Profile *> (this)->object_key ();
41 ACE_INLINE const IOP::TaggedProfile &
42 TAO_Tagged_Profile::tagged_profile () const
44   return this->profile_;
47 ACE_INLINE CORBA::ULong
48 TAO_Tagged_Profile::profile_index () const
50   return this->profile_index_;
53 ACE_INLINE const char*
54 TAO_Tagged_Profile::type_id () const
56   return this->type_id_ == 0 ? "" : this->type_id_;
59 ACE_INLINE CORBA::Short
60 TAO_Tagged_Profile::discriminator () const
62   return this->discriminator_;
65 TAO_END_VERSIONED_NAMESPACE_DECL