Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / ImplicitActivationPolicy.cpp
blobee97fc016dbd6748c8f152ac3a5a6201b2afbceb
1 #include "tao/PortableServer/ImplicitActivationPolicy.h"
2 #include "tao/PortableServer/PortableServer.h"
3 #include "ace/CORBA_macros.h"
5 #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
7 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
9 namespace TAO
11 namespace Portable_Server
13 ImplicitActivationPolicy::ImplicitActivationPolicy (
14 ::PortableServer::ImplicitActivationPolicyValue value) :
15 value_ (value)
19 CORBA::Policy_ptr
20 ImplicitActivationPolicy::copy ()
22 ImplicitActivationPolicy *copy = 0;
23 ACE_NEW_THROW_EX (copy,
24 ImplicitActivationPolicy (this->value_),
25 CORBA::NO_MEMORY ());
27 return copy;
30 void
31 ImplicitActivationPolicy::destroy ()
35 ::PortableServer::ImplicitActivationPolicyValue
36 ImplicitActivationPolicy::value ()
38 return value_;
41 CORBA::PolicyType
42 ImplicitActivationPolicy::policy_type ()
44 return ::PortableServer::IMPLICIT_ACTIVATION_POLICY_ID;
47 TAO_Cached_Policy_Type
48 ImplicitActivationPolicy::_tao_cached_type () const
50 return TAO_CACHED_POLICY_IMPLICIT_ACTIVATION;
53 TAO_Policy_Scope
54 ImplicitActivationPolicy::_tao_scope () const
56 return TAO_POLICY_POA_SCOPE;
61 TAO_END_VERSIONED_NAMESPACE_DECL
63 #endif /* TAO_HAS_MINIMUM_POA == 0 && !CORBA_E_COMPACT && !CORBA_E_MICRO */