IdAssignmentPolicy.cpp

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

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