Service_Context.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: Service_Context.inl 76593 2007-01-25 19:19:27Z 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 
00026 ACE_INLINE void
00027 TAO_Service_Context::set_context (IOP::ServiceId id, TAO_OutputCDR &cdr)
00028 {
00029   this->set_context_i (id,
00030                        cdr);
00031 }
00032 
00033 ACE_INLINE void
00034 TAO_Service_Context::set_context (IOP::ServiceContext &context,
00035                                   TAO_OutputCDR &cdr)
00036 {
00037   this->set_context_i (context,
00038                        cdr);
00039 }
00040 
00041 ACE_INLINE bool
00042 TAO_Service_Context::is_service_id (IOP::ServiceId id)
00043 {
00044   for (CORBA::ULong i = 0;
00045        i != this->service_context_.length ();
00046        ++i)
00047     {
00048       if (id == this->service_context_[i].context_id)
00049         {
00050           return true;
00051         }
00052     }
00053   return false;
00054 }
00055 
00056 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Sun Jan 27 13:07:36 2008 for TAO by doxygen 1.3.6