DII_Reply_Handler.cpp

Go to the documentation of this file.
00001 // $Id: DII_Reply_Handler.cpp 77492 2007-03-01 21:33:55Z zhangw $
00002 
00003 #include "Request.h"
00004 #include "ExceptionList.h"
00005 #include "DII_Invocation.h"
00006 #if defined (TAO_HAS_AMI)
00007 #include "DII_Reply_Handler.h"
00008 #endif /* TAO_HAS_AMI */
00009 
00010 #include "tao/Object.h"
00011 #include "tao/Pluggable_Messaging_Utils.h"
00012 
00013 ACE_RCSID(DynamicInterface, Request, "$Id: DII_Reply_Handler.cpp 77492 2007-03-01 21:33:55Z zhangw $")
00014 
00015 #if !defined (__ACE_INLINE__)
00016 # include "DII_Reply_Handler.inl"
00017 #endif /* ! __ACE_INLINE__ */
00018 
00019 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00020 
00021 // The pseudo-object _nil method.
00022 TAO_DII_Reply_Handler_ptr
00023 TAO_DII_Reply_Handler::_nil (void)
00024 {
00025   return static_cast<TAO_DII_Reply_Handler_ptr> (0);
00026 }
00027 
00028 // DII Request class implementation
00029 int TAO_DII_Reply_Handler::_tao_class_id = 0;
00030 TAO_DII_Reply_Handler::TAO_DII_Reply_Handler ()
00031 {
00032 }
00033 
00034 TAO_DII_Reply_Handler::~TAO_DII_Reply_Handler (void)
00035 {
00036 }
00037 
00038 TAO_DII_Reply_Handler_ptr
00039 TAO_DII_Reply_Handler::_narrow (CORBA::Object_ptr obj)
00040 {
00041   return TAO_DII_Reply_Handler::_unchecked_narrow (obj);
00042 }
00043 
00044 TAO_DII_Reply_Handler_ptr
00045 TAO_DII_Reply_Handler::_unchecked_narrow (CORBA::Object_ptr obj)
00046 {
00047   if (CORBA::is_nil (obj))
00048     return TAO_DII_Reply_Handler::_nil ();
00049 
00050   return
00051     reinterpret_cast<TAO_DII_Reply_Handler_ptr> (
00052         &TAO_DII_Reply_Handler::_tao_class_id);
00053 }
00054 
00055 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Sun Jan 27 13:37:31 2008 for TAO_DynamicInterface by doxygen 1.3.6