diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
commit | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (patch) | |
tree | 197c810e5f5bce17b1233a7cb8d7b50c0bcd25e2 /TAO/tao/PortableServer/IdAssignmentPolicy.cpp | |
parent | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (diff) | |
download | ATCD-3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/tao/PortableServer/IdAssignmentPolicy.cpp')
-rw-r--r-- | TAO/tao/PortableServer/IdAssignmentPolicy.cpp | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/IdAssignmentPolicy.cpp b/TAO/tao/PortableServer/IdAssignmentPolicy.cpp new file mode 100644 index 00000000000..7d036f83c72 --- /dev/null +++ b/TAO/tao/PortableServer/IdAssignmentPolicy.cpp @@ -0,0 +1,71 @@ +#include "tao/PortableServer/IdAssignmentPolicy.h" +#include "tao/PortableServer/PortableServer.h" + +ACE_RCSID (PortableServer, + IdAssignmentPolicy, + "$Id$") + +#if !defined (CORBA_E_MICRO) + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +namespace TAO +{ + namespace Portable_Server + { + IdAssignmentPolicy::IdAssignmentPolicy ( + ::PortableServer::IdAssignmentPolicyValue value) : + value_ (value) + { + } + + CORBA::Policy_ptr + IdAssignmentPolicy::copy (ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)) + { + IdAssignmentPolicy *copy = 0; + ACE_NEW_THROW_EX (copy, + IdAssignmentPolicy (this->value_), + CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (CORBA::Policy::_nil ()); + + return copy; + } + + void + IdAssignmentPolicy::destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC ((CORBA::SystemException)) + { + } + + ::PortableServer::IdAssignmentPolicyValue + IdAssignmentPolicy::value (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC ((CORBA::SystemException)) + { + return value_; + } + + CORBA::PolicyType + IdAssignmentPolicy::policy_type (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC ((CORBA::SystemException)) + { + return ::PortableServer::ID_ASSIGNMENT_POLICY_ID; + } + + TAO_Cached_Policy_Type + IdAssignmentPolicy::_tao_cached_type (void) const + { + return TAO_CACHED_POLICY_ID_ASSIGNMENT; + } + + TAO_Policy_Scope + IdAssignmentPolicy::_tao_scope (void) const + { + return TAO_POLICY_POA_SCOPE; + } + } +} + +TAO_END_VERSIONED_NAMESPACE_DECL + +#endif |