=default for generated implementation copy ctor
[ACE_TAO.git] / TAO / tao / PI / ProcessingModePolicy.cpp
blob85938fec13d32c1bfd28f10f1a58f6180c3a1a9e
1 #include "tao/PI/ProcessingModePolicy.h"
3 #if TAO_HAS_INTERCEPTORS == 1
5 #include "tao/PortableInterceptorC.h"
6 #include "tao/SystemException.h"
7 #include "ace/CORBA_macros.h"
9 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
11 // Should this all be wrapped in #if (TAO_HAS_MINIMUM_POA == 0)?
13 TAO_ProcessingModePolicy::TAO_ProcessingModePolicy
14 (PortableInterceptor::ProcessingMode mode)
15 : processing_mode_ (mode)
19 CORBA::Policy_ptr
20 TAO_ProcessingModePolicy::copy ()
22 TAO_ProcessingModePolicy *copy {};
23 ACE_NEW_THROW_EX (copy,
24 TAO_ProcessingModePolicy (this->processing_mode_),
25 CORBA::NO_MEMORY ());
27 return copy;
30 void
31 TAO_ProcessingModePolicy::destroy ()
35 PortableInterceptor::ProcessingMode
36 TAO_ProcessingModePolicy::processing_mode ()
38 return processing_mode_;
41 CORBA::PolicyType
42 TAO_ProcessingModePolicy::policy_type ()
44 return PortableInterceptor::PROCESSING_MODE_POLICY_TYPE;
47 TAO_END_VERSIONED_NAMESPACE_DECL
49 #endif /* TAO_HAS_INTERCEPTORS == 1 */