Service_Context.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Service_Context.inl,v 1.3 2005/11/02 11:03:27 ossama Exp
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,
00028                                   TAO_OutputCDR &cdr)
00029 {
00030   this->set_context_i (id,
00031                        cdr);
00032 }
00033 
00034 ACE_INLINE void
00035 TAO_Service_Context::set_context (IOP::ServiceContext &context,
00036                                   TAO_OutputCDR &cdr)
00037 {
00038   this->set_context_i (context,
00039                        cdr);
00040 }
00041 
00042 ACE_INLINE int
00043 TAO_Service_Context::is_service_id (IOP::ServiceId id)
00044 {
00045   for (CORBA::ULong i = 0;
00046        i != this->service_context_.length ();
00047        ++i)
00048     {
00049       if (id == this->service_context_[i].context_id)
00050         {
00051           return 1;
00052         }
00053     }
00054   return 0;
00055 }
00056 
00057 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 11:54:22 2006 for TAO by doxygen 1.3.6