diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2023-02-14 09:05:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 09:05:54 +0100 |
commit | 54406e2ff1e39a3245d04253648153d5f4751938 (patch) | |
tree | 2c92b2450e6872403cdd50b43ff764da236ffb12 /TAO/tao/PortableServer/LifespanStrategy.h | |
parent | 69fbec6c475060cf01a710a3d7ed6e756538858c (diff) | |
parent | d19030946af88f57a4b2b29af9228cbbf0386a71 (diff) | |
download | ATCD-54406e2ff1e39a3245d04253648153d5f4751938.tar.gz |
Merge pull request #2050 from jwillemsen/jwi-portableserverstrategysimplify
Major cleanup in PortableServer library
Diffstat (limited to 'TAO/tao/PortableServer/LifespanStrategy.h')
-rw-r--r-- | TAO/tao/PortableServer/LifespanStrategy.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/TAO/tao/PortableServer/LifespanStrategy.h b/TAO/tao/PortableServer/LifespanStrategy.h index 01a9a150dbd..ac034037f9f 100644 --- a/TAO/tao/PortableServer/LifespanStrategy.h +++ b/TAO/tao/PortableServer/LifespanStrategy.h @@ -12,17 +12,18 @@ #define TAO_PORTABLESERVER_LIFESPANPOLICY_H #include /**/ "ace/pre.h" -#include "tao/PortableServer/Policy_Strategy.h" +#include "tao/PortableServer/LifespanPolicyC.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ -#include "tao/PortableServer/LifespanPolicyC.h" #include "tao/Object_KeyC.h" TAO_BEGIN_VERSIONED_NAMESPACE_DECL +class TAO_Root_POA; + namespace TAO { namespace Portable_Server @@ -30,10 +31,10 @@ namespace TAO class Temporary_Creation_Time; class LifespanStrategy - : public Policy_Strategy { public: - LifespanStrategy (); + LifespanStrategy () = default; + virtual ~LifespanStrategy () = default; virtual void strategy_init (TAO_Root_POA *poa); @@ -70,8 +71,6 @@ namespace TAO /// Check the state of the POA. virtual void check_state () = 0; - virtual ::PortableServer::LifespanPolicyValue type () const = 0; - virtual bool use_imr () const = 0; virtual CORBA::Object_ptr imr_key_to_object ( @@ -79,7 +78,7 @@ namespace TAO const char *type_id) const = 0; protected: - TAO_Root_POA *poa_; + TAO_Root_POA *poa_ {}; }; } /* namespace Portable_Server */ } /* namespace TAO */ |