blob: 85938fec13d32c1bfd28f10f1a58f6180c3a1a9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#include "tao/PI/ProcessingModePolicy.h"
#if TAO_HAS_INTERCEPTORS == 1
#include "tao/PortableInterceptorC.h"
#include "tao/SystemException.h"
#include "ace/CORBA_macros.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// Should this all be wrapped in #if (TAO_HAS_MINIMUM_POA == 0)?
TAO_ProcessingModePolicy::TAO_ProcessingModePolicy
(PortableInterceptor::ProcessingMode mode)
: processing_mode_ (mode)
{
}
CORBA::Policy_ptr
TAO_ProcessingModePolicy::copy ()
{
TAO_ProcessingModePolicy *copy {};
ACE_NEW_THROW_EX (copy,
TAO_ProcessingModePolicy (this->processing_mode_),
CORBA::NO_MEMORY ());
return copy;
}
void
TAO_ProcessingModePolicy::destroy ()
{
}
PortableInterceptor::ProcessingMode
TAO_ProcessingModePolicy::processing_mode ()
{
return processing_mode_;
}
CORBA::PolicyType
TAO_ProcessingModePolicy::policy_type ()
{
return PortableInterceptor::PROCESSING_MODE_POLICY_TYPE;
}
TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_HAS_INTERCEPTORS == 1 */
|