summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/RequestProcessingPolicy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/PortableServer/RequestProcessingPolicy.cpp')
-rw-r--r--TAO/tao/PortableServer/RequestProcessingPolicy.cpp70
1 files changed, 70 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/RequestProcessingPolicy.cpp b/TAO/tao/PortableServer/RequestProcessingPolicy.cpp
new file mode 100644
index 00000000000..3a1f478abc6
--- /dev/null
+++ b/TAO/tao/PortableServer/RequestProcessingPolicy.cpp
@@ -0,0 +1,70 @@
+#include "tao/orbconf.h"
+
+ACE_RCSID (PortableServer,
+ RequestProcessingPolicy,
+ "$Id$")
+
+#if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
+
+#include "tao/PortableServer/RequestProcessingPolicy.h"
+#include "tao/PortableServer/PortableServer.h"
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+namespace TAO
+{
+ namespace Portable_Server
+ {
+ RequestProcessingPolicy::RequestProcessingPolicy (
+ ::PortableServer::RequestProcessingPolicyValue value) :
+ value_ (value)
+ {
+ }
+
+ CORBA::Policy_ptr
+ RequestProcessingPolicy::copy (void)
+ {
+ RequestProcessingPolicy *copy = 0;
+ ACE_NEW_THROW_EX (copy,
+ RequestProcessingPolicy (this->value_),
+ CORBA::NO_MEMORY ());
+
+ return copy;
+ }
+
+ void
+ RequestProcessingPolicy::destroy (void)
+ {
+ }
+
+ ::PortableServer::RequestProcessingPolicyValue
+ RequestProcessingPolicy::value (void)
+ {
+ return value_;
+ }
+
+ CORBA::PolicyType
+ RequestProcessingPolicy::policy_type (void)
+ {
+ return ::PortableServer::REQUEST_PROCESSING_POLICY_ID;
+ }
+
+ TAO_Cached_Policy_Type
+ RequestProcessingPolicy::_tao_cached_type (void) const
+ {
+ return TAO_CACHED_POLICY_REQUEST_PROCESSING;
+ }
+
+ TAO_Policy_Scope
+ RequestProcessingPolicy::_tao_scope (void) const
+ {
+ return TAO_POLICY_POA_SCOPE;
+ }
+
+
+ }
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */