POA_Current_Impl.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // POA_Current_Impl.inl,v 1.4 2005/11/04 09:26:55 ossama Exp
00004 
00005 #include "tao/SystemException.h"
00006 
00007 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00008 
00009 namespace TAO
00010 {
00011   namespace Portable_Server
00012   {
00013     ACE_INLINE void
00014     POA_Current_Impl::poa (::TAO_Root_POA *p)
00015     {
00016       this->poa_ = p;
00017     }
00018 
00019     ACE_INLINE ::TAO_Root_POA *
00020     POA_Current_Impl::poa (void) const
00021     {
00022       return this->poa_;
00023     }
00024 
00025     ACE_INLINE void
00026     POA_Current_Impl::object_id (const PortableServer::ObjectId &id)
00027     {
00028       this->object_id_ = id;
00029     }
00030 
00031     ACE_INLINE const PortableServer::ObjectId &
00032     POA_Current_Impl::object_id (void) const
00033     {
00034       return this->object_id_;
00035     }
00036 
00037     ACE_INLINE void
00038     POA_Current_Impl::replace_object_id (
00039       const PortableServer::ObjectId &system_id)
00040     {
00041       object_id_.replace (system_id.maximum (),
00042                           system_id.length (),
00043                           const_cast <CORBA::Octet *> (system_id.get_buffer ()),
00044                           0);
00045     }
00046 
00047     ACE_INLINE void
00048     POA_Current_Impl::object_key (const TAO::ObjectKey &key)
00049     {
00050       this->object_key_ = &key;
00051     }
00052 
00053     ACE_INLINE const TAO::ObjectKey &
00054     POA_Current_Impl::object_key (void) const
00055     {
00056       return *this->object_key_;
00057     }
00058 
00059     ACE_INLINE void
00060     POA_Current_Impl::servant (PortableServer::Servant servant)
00061     {
00062       this->servant_ = servant;
00063     }
00064 
00065     ACE_INLINE PortableServer::Servant
00066     POA_Current_Impl::servant (void) const
00067     {
00068       return this->servant_;
00069     }
00070 
00071     ACE_INLINE void
00072     POA_Current_Impl::priority (CORBA::Short priority)
00073     {
00074       this->priority_ = priority;
00075     }
00076 
00077     ACE_INLINE CORBA::Short
00078     POA_Current_Impl::priority (void) const
00079     {
00080       return this->priority_;
00081     }
00082 
00083   }
00084 }
00085 
00086 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 12:40:40 2006 for TAO_PortableServer by doxygen 1.3.6