2 //=============================================================================
4 * @file ProcessingModePolicy.h
6 * @author Tim Bradley (bradley_t@ociweb.com)
8 //=============================================================================
10 #ifndef TAO_PROCESSING_MODE_POLICY_H
11 #define TAO_PROCESSING_MODE_POLICY_H
13 #include /**/ "ace/pre.h"
15 #include "tao/orbconf.h"
17 #if TAO_HAS_INTERCEPTORS == 1
19 #include "tao/PI/pi_export.h"
21 #if !defined (ACE_LACKS_PRAGMA_ONCE)
23 #endif /* ACE_LACKS_PRAGMA_ONCE */
25 #include "tao/LocalObject.h"
26 #include "tao/PI/PI_includeC.h"
28 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
31 * @class TAO_ProcessingModePolicy
33 * @brief Implementation class for Portable Interceptor ProcessingModePolicy.
35 * This policy is used to specify which kinds of requests (collocated vs.
36 * remote) should (or should not) cause a Portable Interceptor to be used.
39 class TAO_PI_Export TAO_ProcessingModePolicy
40 : public PortableInterceptor::ProcessingModePolicy
,
41 public ::CORBA::LocalObject
45 TAO_ProcessingModePolicy (PortableInterceptor::ProcessingMode mode
);
47 virtual PortableInterceptor::ProcessingMode
processing_mode ();
49 virtual CORBA::PolicyType
policy_type ();
51 virtual CORBA::Policy_ptr
copy ();
53 virtual void destroy ();
57 PortableInterceptor::ProcessingMode processing_mode_
;
60 TAO_END_VERSIONED_NAMESPACE_DECL
62 #endif /* TAO_HAS_INTERCEPTORS == 1 */
64 #include /**/ "ace/post.h"
65 #endif /* TAO_PROCESSING_MODE_POLICY_H */