summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/POA_Current_Impl.inl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/PortableServer/POA_Current_Impl.inl')
-rw-r--r--TAO/tao/PortableServer/POA_Current_Impl.inl83
1 files changed, 83 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/POA_Current_Impl.inl b/TAO/tao/PortableServer/POA_Current_Impl.inl
new file mode 100644
index 00000000000..292e8b59b40
--- /dev/null
+++ b/TAO/tao/PortableServer/POA_Current_Impl.inl
@@ -0,0 +1,83 @@
+// -*- C++ -*-
+//
+// $Id$
+
+#include "tao/SystemException.h"
+
+namespace TAO
+{
+ namespace Portable_Server
+ {
+ ACE_INLINE void
+ POA_Current_Impl::poa (TAO_Root_POA *p)
+ {
+ this->poa_ = p;
+ }
+
+ ACE_INLINE TAO_Root_POA *
+ POA_Current_Impl::poa (void) const
+ {
+ return this->poa_;
+ }
+
+ ACE_INLINE void
+ POA_Current_Impl::object_id (const PortableServer::ObjectId &id)
+ {
+ this->object_id_ = id;
+ }
+
+ ACE_INLINE const PortableServer::ObjectId &
+ POA_Current_Impl::object_id (void) const
+ {
+ return this->object_id_;
+ }
+
+ ACE_INLINE void
+ POA_Current_Impl::replace_object_id (
+ const PortableServer::ObjectId &system_id)
+ {
+ object_id_.replace (system_id.maximum (),
+ system_id.length (),
+ const_cast <CORBA::Octet *> (system_id.get_buffer ()),
+ 0);
+ }
+
+ ACE_INLINE void
+ POA_Current_Impl::object_key (const TAO::ObjectKey &key)
+ {
+ this->object_key_ = &key;
+ }
+
+ ACE_INLINE const TAO::ObjectKey &
+ POA_Current_Impl::object_key (void) const
+ {
+ return *this->object_key_;
+ }
+
+ ACE_INLINE void
+ POA_Current_Impl::servant (PortableServer::Servant servant)
+ {
+ this->servant_ = servant;
+ }
+
+ ACE_INLINE PortableServer::Servant
+ POA_Current_Impl::servant (void) const
+ {
+ return this->servant_;
+ }
+
+ ACE_INLINE void
+ POA_Current_Impl::priority (CORBA::Short priority)
+ {
+ this->priority_ = priority;
+ }
+
+ ACE_INLINE CORBA::Short
+ POA_Current_Impl::priority (void) const
+ {
+ return this->priority_;
+ }
+
+ }
+}
+