00001 // -*- C++ -*- 00002 // 00003 // $Id: Servant_Upcall.inl 69198 2005-11-04 09:26:56Z ossama $ 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 namespace TAO 00008 { 00009 namespace Portable_Server 00010 { 00011 ACE_INLINE ::TAO_Root_POA & 00012 Servant_Upcall::poa (void) const 00013 { 00014 return *this->poa_; 00015 } 00016 00017 ACE_INLINE PortableServer::Servant 00018 Servant_Upcall::servant (void) const 00019 { 00020 return this->servant_; 00021 } 00022 00023 ACE_INLINE TAO_Object_Adapter & 00024 Servant_Upcall::object_adapter (void) const 00025 { 00026 return *this->object_adapter_; 00027 } 00028 00029 ACE_INLINE const PortableServer::ObjectId & 00030 Servant_Upcall::id (void) const 00031 { 00032 return this->system_id_; 00033 } 00034 00035 ACE_INLINE void 00036 Servant_Upcall::user_id ( 00037 const PortableServer::ObjectId *id) 00038 { 00039 this->user_id_ = id; 00040 } 00041 00042 ACE_INLINE const PortableServer::ObjectId & 00043 Servant_Upcall::user_id (void) const 00044 { 00045 return *(this->user_id_); 00046 } 00047 00048 #if (TAO_HAS_MINIMUM_POA == 0) 00049 00050 ACE_INLINE void* 00051 Servant_Upcall::locator_cookie (void) const 00052 { 00053 return this->cookie_; 00054 } 00055 00056 ACE_INLINE void 00057 Servant_Upcall::locator_cookie (void* cookie) 00058 { 00059 this->cookie_ = cookie; 00060 } 00061 00062 ACE_INLINE const char * 00063 Servant_Upcall::operation (void) const 00064 { 00065 return this->operation_; 00066 } 00067 00068 ACE_INLINE void 00069 Servant_Upcall::operation (const char *name) 00070 { 00071 this->operation_ = name; 00072 } 00073 00074 #endif /* TAO_HAS_MINIMUM_POA == 0 */ 00075 00076 ACE_INLINE void 00077 Servant_Upcall::active_object_map_entry (TAO_Active_Object_Map_Entry *entry) 00078 { 00079 this->active_object_map_entry_ = entry; 00080 } 00081 00082 ACE_INLINE TAO_Active_Object_Map_Entry * 00083 Servant_Upcall::active_object_map_entry (void) const 00084 { 00085 return this->active_object_map_entry_; 00086 } 00087 00088 ACE_INLINE CORBA::Short 00089 Servant_Upcall::priority (void) const 00090 { 00091 return this->current_context_.priority (); 00092 } 00093 00094 ACE_INLINE Servant_Upcall::State 00095 Servant_Upcall::state (void) const 00096 { 00097 return this->state_; 00098 } 00099 00100 ACE_INLINE void 00101 Servant_Upcall::state (Servant_Upcall::State state) 00102 { 00103 this->state_ = state; 00104 } 00105 } 00106 } 00107 00108 TAO_END_VERSIONED_NAMESPACE_DECL