Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / IdAssignmentPolicy.cpp
blob21f763b3aa65571f976eb93c104014280a90ab72
1 // -*- C++ -*-
2 #include "tao/PortableServer/IdAssignmentPolicy.h"
3 #include "tao/PortableServer/PortableServer.h"
4 #include "ace/CORBA_macros.h"
6 #if !defined (CORBA_E_MICRO)
8 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
10 namespace TAO
12 namespace Portable_Server
14 IdAssignmentPolicy::IdAssignmentPolicy (
15 ::PortableServer::IdAssignmentPolicyValue value) :
16 value_ (value)
20 CORBA::Policy_ptr
21 IdAssignmentPolicy::copy ()
23 IdAssignmentPolicy *copy = 0;
24 ACE_NEW_THROW_EX (copy,
25 IdAssignmentPolicy (this->value_),
26 CORBA::NO_MEMORY ());
28 return copy;
31 void
32 IdAssignmentPolicy::destroy ()
36 ::PortableServer::IdAssignmentPolicyValue
37 IdAssignmentPolicy::value ()
39 return value_;
42 CORBA::PolicyType
43 IdAssignmentPolicy::policy_type ()
45 return ::PortableServer::ID_ASSIGNMENT_POLICY_ID;
48 TAO_Cached_Policy_Type
49 IdAssignmentPolicy::_tao_cached_type () const
51 return TAO_CACHED_POLICY_ID_ASSIGNMENT;
54 TAO_Policy_Scope
55 IdAssignmentPolicy::_tao_scope () const
57 return TAO_POLICY_POA_SCOPE;
62 TAO_END_VERSIONED_NAMESPACE_DECL
64 #endif