Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / IdUniquenessStrategy.h
blob323356245ea2491ff3a2f96f97330eef13026ad5
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file IdUniquenessStrategy.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
8 */
9 //=============================================================================
11 #ifndef TAO_ID_UNIQUENESS_STRATEGY_H
12 #define TAO_ID_UNIQUENESS_STRATEGY_H
13 #include /**/ "ace/pre.h"
15 #include "tao/PortableServer/IdUniquenessPolicyC.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 # pragma once
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "tao/PortableServer/PS_ForwardC.h"
23 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
25 namespace TAO
27 namespace Portable_Server
29 class IdUniquenessStrategy
31 public:
32 IdUniquenessStrategy ();
33 virtual ~IdUniquenessStrategy () = default;
35 virtual void strategy_init (TAO_Root_POA *poa) = 0;
37 virtual void strategy_cleanup () = 0;
40 * Validate if the servant may be activated
41 * @retval true This servant may be activated
42 * @retval false This servant may not be activated
44 virtual bool is_servant_activation_allowed (PortableServer::Servant s, bool &w) = 0;
46 virtual bool allow_multiple_activations () const = 0;
51 TAO_END_VERSIONED_NAMESPACE_DECL
53 #include /**/ "ace/post.h"
54 #endif /* TAO_ID_UNIQUENESS_STRATEGY_H */