00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file IdUniquenessStrategy.h 00006 * 00007 * $Id: IdUniquenessStrategy.h 75869 2006-12-06 19:22:23Z johnnyw $ 00008 * 00009 * @author Johnny Willemsen <jwillemsen@remedy.nl> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_ID_UNIQUENESS_STRATEGY_H 00014 #define TAO_ID_UNIQUENESS_STRATEGY_H 00015 #include /**/ "ace/pre.h" 00016 00017 #include "tao/PortableServer/portableserver_export.h" 00018 00019 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00020 # pragma once 00021 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00022 00023 #include "tao/PortableServer/Policy_Strategy.h" 00024 #include "tao/PortableServer/IdUniquenessPolicyC.h" 00025 #include "tao/PortableServer/PS_ForwardC.h" 00026 00027 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00028 00029 namespace TAO 00030 { 00031 namespace Portable_Server 00032 { 00033 class TAO_PortableServer_Export IdUniquenessStrategy 00034 : public Policy_Strategy 00035 { 00036 public: 00037 /* 00038 * Validate if the servant may be activated 00039 * @retval true This servant may be activated 00040 * @retval false This servant may not be activated 00041 */ 00042 virtual bool is_servant_activation_allowed ( 00043 PortableServer::Servant s, 00044 bool &w) = 0; 00045 00046 virtual bool allow_multiple_activations (void) const = 0; 00047 00048 virtual ::PortableServer::IdUniquenessPolicyValue type() const = 0; 00049 }; 00050 } 00051 } 00052 00053 TAO_END_VERSIONED_NAMESPACE_DECL 00054 00055 #include /**/ "ace/post.h" 00056 #endif /* TAO_ID_UNIQUENESS_STRATEGY_H */