diff options
Diffstat (limited to 'TAO/tao/PortableServer/POA_Current.cpp')
-rw-r--r-- | TAO/tao/PortableServer/POA_Current.cpp | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/TAO/tao/PortableServer/POA_Current.cpp b/TAO/tao/PortableServer/POA_Current.cpp index 09a8f02134c..a1e30c3faed 100644 --- a/TAO/tao/PortableServer/POA_Current.cpp +++ b/TAO/tao/PortableServer/POA_Current.cpp @@ -1,20 +1,18 @@ // $Id$ // -- PortableServer Include -- -#include "POA_Current.h" -#include "POA_Current_Impl.h" +#include "tao/PortableServer/POA_Current.h" +#include "tao/PortableServer/POA_Current_Impl.h" // -- TAO Include -- #include "tao/TSS_Resources.h" -#if !defined (__ACE_INLINE__) -# include "POA_Current.inl" -#endif /* __ACE_INLINE__ */ - ACE_RCSID (PortableServer, POA_Current, "$Id$") +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + namespace TAO { namespace Portable_Server @@ -58,6 +56,18 @@ namespace TAO return impl->get_servant (); } + CORBA::Object_ptr + POA_Current::get_reference (ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException, + PortableServer::Current::NoContext)) + { + POA_Current_Impl *impl = this->implementation (); + + if (impl == 0) + ACE_THROW_RETURN (PortableServer::Current::NoContext (), + 0); + return impl->get_reference (); + } POA_Current_Impl * POA_Current::implementation (void) @@ -81,3 +91,4 @@ namespace TAO } } +TAO_END_VERSIONED_NAMESPACE_DECL |