00001 // $Id: ProcessingModePolicy.cpp 76995 2007-02-11 12:51:42Z johnnyw $ 00002 00003 #include "tao/PI/ProcessingModePolicy.h" 00004 00005 #if TAO_HAS_INTERCEPTORS == 1 00006 00007 #include "tao/PortableInterceptorC.h" 00008 #include "tao/SystemException.h" 00009 #include "ace/CORBA_macros.h" 00010 00011 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00012 00013 ACE_RCSID (tao, 00014 ProcessingModePolicy, 00015 "$Id: ProcessingModePolicy.cpp 76995 2007-02-11 12:51:42Z johnnyw $") 00016 00017 // Should this all be wrapped in #if (TAO_HAS_MINIMUM_POA == 0)? 00018 00019 TAO_ProcessingModePolicy::TAO_ProcessingModePolicy 00020 (PortableInterceptor::ProcessingMode mode) 00021 : processing_mode_ (mode) 00022 { 00023 } 00024 00025 CORBA::Policy_ptr 00026 TAO_ProcessingModePolicy::copy (void) 00027 { 00028 TAO_ProcessingModePolicy *copy = 0; 00029 ACE_NEW_THROW_EX (copy, 00030 TAO_ProcessingModePolicy (this->processing_mode_), 00031 CORBA::NO_MEMORY ()); 00032 00033 return copy; 00034 } 00035 00036 void 00037 TAO_ProcessingModePolicy::destroy (void) 00038 { 00039 } 00040 00041 PortableInterceptor::ProcessingMode 00042 TAO_ProcessingModePolicy::processing_mode (void) 00043 { 00044 return processing_mode_; 00045 } 00046 00047 CORBA::PolicyType 00048 TAO_ProcessingModePolicy::policy_type (void) 00049 { 00050 return PortableInterceptor::PROCESSING_MODE_POLICY_TYPE; 00051 } 00052 00053 TAO_END_VERSIONED_NAMESPACE_DECL 00054 00055 #endif /* TAO_HAS_INTERCEPTORS == 1 */ 00056