Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / PortableServer / IdUniquenessStrategyUnique.h
blob37223597713ea439e5025153f74ecb70d0576ebc
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file IdUniquenessStrategyUnique.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
8 */
9 //=============================================================================
11 #ifndef TAO_ID_UNIQUENESSSTRATEGYUNIQUE_H
12 #define TAO_ID_UNIQUENESSSTRATEGYUNIQUE_H
13 #include /**/ "ace/pre.h"
15 #include "tao/PortableServer/IdUniquenessStrategy.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 # pragma once
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
23 namespace TAO
25 namespace Portable_Server
27 class IdUniquenessStrategyUnique : public IdUniquenessStrategy
29 public:
30 IdUniquenessStrategyUnique () = default;
32 void strategy_init (TAO_Root_POA *poa) override;
34 void strategy_cleanup () override;
36 bool is_servant_activation_allowed (PortableServer::Servant servant, bool &wait_occurred_restart_call) override;
38 bool allow_multiple_activations () const override;
40 private:
41 TAO_Root_POA* poa_ {};
46 TAO_END_VERSIONED_NAMESPACE_DECL
48 #include /**/ "ace/post.h"
49 #endif /* TAO_ID_UNIQUENESSSTRATEGYUNIQUE_H */