Service_Context.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: Service_Context.inl 80861 2008-03-07 13:48:34Z johnnyw $
00004 
00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00006 
00007 ACE_INLINE
00008 TAO_Service_Context::TAO_Service_Context (void)
00009   : service_context_ ()
00010 {
00011 }
00012 
00013 ACE_INLINE IOP::ServiceContextList &
00014 TAO_Service_Context::service_info (void)
00015 {
00016   return this->service_context_;
00017 }
00018 
00019 ACE_INLINE const IOP::ServiceContextList &
00020 TAO_Service_Context::service_info (void) const
00021 {
00022   return this->service_context_;
00023 }
00024 
00025 ACE_INLINE void
00026 TAO_Service_Context::set_context (IOP::ServiceId id, TAO_OutputCDR &cdr)
00027 {
00028   this->set_context_i (id, cdr);
00029 }
00030 
00031 ACE_INLINE void
00032 TAO_Service_Context::set_context (IOP::ServiceContext &context,
00033                                   TAO_OutputCDR &cdr)
00034 {
00035   this->set_context_i (context, cdr);
00036 }
00037 
00038 ACE_INLINE bool
00039 TAO_Service_Context::is_service_id (IOP::ServiceId id)
00040 {
00041   for (CORBA::ULong i = 0;
00042        i != this->service_context_.length ();
00043        ++i)
00044     {
00045       if (id == this->service_context_[i].context_id)
00046         {
00047           return true;
00048         }
00049     }
00050   return false;
00051 }
00052 
00053 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Tue Feb 2 17:37:52 2010 for TAO by  doxygen 1.4.7