00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_PORTABLESERVER_SERVANTRETENTIONPOLICY_H
00014 #define TAO_PORTABLESERVER_SERVANTRETENTIONPOLICY_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
00022
00023 #include "tao/PortableServer/ServantRetentionPolicyC.h"
00024 #include "tao/LocalObject.h"
00025
00026
00027
00028 #if defined(_MSC_VER)
00029 #pragma warning(push)
00030 #pragma warning(disable:4250)
00031 #endif
00032
00033 #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
00034
00035 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00036
00037 namespace TAO
00038 {
00039 namespace Portable_Server
00040 {
00041 class TAO_PortableServer_Export ServantRetentionPolicy :
00042 public virtual ::PortableServer::ServantRetentionPolicy,
00043 public virtual ::CORBA::LocalObject
00044 {
00045 public:
00046 ServantRetentionPolicy (::PortableServer::ServantRetentionPolicyValue value);
00047
00048 CORBA::Policy_ptr copy (void);
00049
00050 void destroy (void);
00051
00052 ::PortableServer::ServantRetentionPolicyValue value (void);
00053
00054 CORBA::PolicyType policy_type (void);
00055
00056
00057 TAO_Cached_Policy_Type _tao_cached_type (void) const;
00058
00059
00060 TAO_Policy_Scope _tao_scope (void) const;
00061
00062 private:
00063 ::PortableServer::ServantRetentionPolicyValue value_;
00064 };
00065 }
00066 }
00067
00068 TAO_END_VERSIONED_NAMESPACE_DECL
00069
00070 #endif
00071
00072 #if defined(_MSC_VER)
00073 #pragma warning(pop)
00074 #endif
00075
00076 #include "ace/post.h"
00077 #endif