RequestProcessingPolicy.cpp

Go to the documentation of this file.
00001 #include "tao/orbconf.h"
00002 
00003 ACE_RCSID (PortableServer,
00004            RequestProcessingPolicy,
00005            "$Id: RequestProcessingPolicy.cpp 76995 2007-02-11 12:51:42Z johnnyw $")
00006 
00007 #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
00008 
00009 #include "tao/PortableServer/RequestProcessingPolicy.h"
00010 #include "tao/PortableServer/PortableServer.h"
00011 
00012 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00013 
00014 namespace TAO
00015 {
00016   namespace Portable_Server
00017   {
00018     RequestProcessingPolicy::RequestProcessingPolicy (
00019       ::PortableServer::RequestProcessingPolicyValue value) :
00020         value_ (value)
00021     {
00022     }
00023 
00024     CORBA::Policy_ptr
00025     RequestProcessingPolicy::copy (void)
00026     {
00027       RequestProcessingPolicy *copy = 0;
00028       ACE_NEW_THROW_EX (copy,
00029                         RequestProcessingPolicy (this->value_),
00030                         CORBA::NO_MEMORY ());
00031 
00032       return copy;
00033     }
00034 
00035     void
00036     RequestProcessingPolicy::destroy (void)
00037     {
00038     }
00039 
00040     ::PortableServer::RequestProcessingPolicyValue
00041     RequestProcessingPolicy::value (void)
00042     {
00043       return value_;
00044     }
00045 
00046     CORBA::PolicyType
00047     RequestProcessingPolicy::policy_type (void)
00048     {
00049       return ::PortableServer::REQUEST_PROCESSING_POLICY_ID;
00050     }
00051 
00052     TAO_Cached_Policy_Type
00053     RequestProcessingPolicy::_tao_cached_type (void) const
00054     {
00055       return TAO_CACHED_POLICY_REQUEST_PROCESSING;
00056     }
00057 
00058     TAO_Policy_Scope
00059     RequestProcessingPolicy::_tao_scope (void) const
00060     {
00061       return TAO_POLICY_POA_SCOPE;
00062     }
00063 
00064 
00065   }
00066 }
00067 
00068 TAO_END_VERSIONED_NAMESPACE_DECL
00069 
00070 #endif /* TAO_HAS_MINIMUM_POA == 0 */

Generated on Tue Feb 2 17:40:54 2010 for TAO_PortableServer by  doxygen 1.4.7