Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Service_Context.inl
blob12508008d02a76673ae9b14a639a76792b4de6f4
1 // -*- C++ -*-
2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE
5 TAO_Service_Context::TAO_Service_Context ()
6   : service_context_ ()
10 ACE_INLINE IOP::ServiceContextList &
11 TAO_Service_Context::service_info ()
13   return this->service_context_;
16 ACE_INLINE const IOP::ServiceContextList &
17 TAO_Service_Context::service_info () const
19   return this->service_context_;
22 ACE_INLINE void
23 TAO_Service_Context::set_context (IOP::ServiceId id, TAO_OutputCDR &cdr)
25   this->set_context_i (id, cdr);
28 ACE_INLINE void
29 TAO_Service_Context::set_context (IOP::ServiceContext &context,
30                                   TAO_OutputCDR &cdr)
32   this->set_context_i (context, cdr);
35 ACE_INLINE bool
36 TAO_Service_Context::is_service_id (IOP::ServiceId id)
38   for (CORBA::ULong i = 0;
39        i != this->service_context_.length ();
40        ++i)
41     {
42       if (id == this->service_context_[i].context_id)
43         {
44           return true;
45         }
46     }
47   return false;
50 ACE_INLINE void
51 TAO_Service_Context::set_context (IOP::ServiceContext &context)
53   this->add_context_i (context);
56 TAO_END_VERSIONED_NAMESPACE_DECL