3 //=============================================================================
5 * @file IdAssignmentStrategyFactory.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
9 //=============================================================================
11 #ifndef TAO_PORTABLESERVER_IDASSIGNMENTSTRATEGYFACTORY_H
12 #define TAO_PORTABLESERVER_IDASSIGNMENTSTRATEGYFACTORY_H
13 #include /**/ "ace/pre.h"
15 #include "tao/PortableServer/portableserver_export.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "tao/PortableServer/StrategyFactory.h"
22 #include "tao/PortableServer/IdAssignmentPolicyC.h"
24 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
28 namespace Portable_Server
30 class IdAssignmentStrategy
;
32 class TAO_PortableServer_Export IdAssignmentStrategyFactory
33 : public StrategyFactory
36 /// Create a new servant retention strategy
37 virtual IdAssignmentStrategy
* create (::PortableServer::IdAssignmentPolicyValue value
) = 0;
39 virtual void destroy (IdAssignmentStrategy
*strategy
) = 0;
44 TAO_END_VERSIONED_NAMESPACE_DECL
46 #include /**/ "ace/post.h"
47 #endif /* TAO_PORTABLESERVER_IDASSIGNMENTSTRATEGYFACTORY_H */