blob: 4c47630e2d71272628d24a871deac0a35470ed0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
|
// -*- C++ -*-
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO
//
// = FILENAME
// POA_Policies.h
//
// = DESCRIPTION
// POA
//
// = AUTHOR
// Irfan Pyarali
//
// ============================================================================
#ifndef TAO_POA_POLICIES_H
#define TAO_POA_POLICIES_H
#include "ace/pre.h"
#include "PortableServerC.h"
#include "tao/LocalObject.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
// This is to remove "inherits via dominance" warnings from MSVC.
// MSVC is being a little too paranoid.
#if defined(_MSC_VER)
#if (_MSC_VER >= 1200)
#pragma warning(push)
#endif /* _MSC_VER >= 1200 */
#pragma warning(disable:4250)
#endif /* _MSC_VER */
#if (TAO_HAS_MINIMUM_POA == 0)
class TAO_PortableServer_Export TAO_Thread_Policy :
public PortableServer::ThreadPolicy,
public TAO_Local_RefCounted_Object
{
public:
TAO_Thread_Policy (PortableServer::ThreadPolicyValue value);
PortableServer::ThreadPolicyValue value (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
CORBA::Policy_ptr copy (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
void destroy (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
CORBA::PolicyType policy_type (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
// Return the cached policy type for this policy.
virtual TAO_Cached_Policy_Type _tao_cached_type (void) const;
// Returns the scope at which this policy can be applied. See orbconf.h.
virtual TAO_Policy_Scope _tao_scope (void) const;
protected:
PortableServer::ThreadPolicyValue value_;
};
#endif /* TAO_HAS_MINIMUM_POA == 0 */
class TAO_PortableServer_Export TAO_Lifespan_Policy :
public PortableServer::LifespanPolicy,
public TAO_Local_RefCounted_Object
{
public:
TAO_Lifespan_Policy (PortableServer::LifespanPolicyValue value);
PortableServer::LifespanPolicyValue value (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
CORBA::Policy_ptr copy (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
void destroy (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
CORBA::PolicyType policy_type (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
// Return the cached policy type for this policy.
virtual TAO_Cached_Policy_Type _tao_cached_type (void) const;
// Returns the scope at which this policy can be applied. See orbconf.h.
virtual TAO_Policy_Scope _tao_scope (void) const;
protected:
PortableServer::LifespanPolicyValue value_;
};
class TAO_PortableServer_Export TAO_Id_Uniqueness_Policy :
public PortableServer::IdUniquenessPolicy,
public TAO_Local_RefCounted_Object
{
public:
TAO_Id_Uniqueness_Policy (PortableServer::IdUniquenessPolicyValue value);
PortableServer::IdUniquenessPolicyValue value (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
CORBA::Policy_ptr copy (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
void destroy (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
CORBA::PolicyType policy_type (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
// Return the cached policy type for this policy.
virtual TAO_Cached_Policy_Type _tao_cached_type (void) const;
// Returns the scope at which this policy can be applied. See orbconf.h.
virtual TAO_Policy_Scope _tao_scope (void) const;
protected:
PortableServer::IdUniquenessPolicyValue value_;
};
class TAO_PortableServer_Export TAO_Id_Assignment_Policy :
public PortableServer::IdAssignmentPolicy,
public TAO_Local_RefCounted_Object
{
public:
TAO_Id_Assignment_Policy (PortableServer::IdAssignmentPolicyValue value);
PortableServer::IdAssignmentPolicyValue value (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
CORBA::Policy_ptr copy (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
void destroy (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
CORBA::PolicyType policy_type (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
// Return the cached policy type for this policy.
virtual TAO_Cached_Policy_Type _tao_cached_type (void) const;
// Returns the scope at which this policy can be applied. See orbconf.h.
virtual TAO_Policy_Scope _tao_scope (void) const;
protected:
PortableServer::IdAssignmentPolicyValue value_;
};
#if (TAO_HAS_MINIMUM_POA == 0)
class TAO_PortableServer_Export TAO_Implicit_Activation_Policy :
public PortableServer::ImplicitActivationPolicy,
public TAO_Local_RefCounted_Object
{
public:
TAO_Implicit_Activation_Policy (PortableServer::ImplicitActivationPolicyValue value);
PortableServer::ImplicitActivationPolicyValue value (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
CORBA::Policy_ptr copy (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
void destroy (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
CORBA::PolicyType policy_type (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
// Return the cached policy type for this policy.
virtual TAO_Cached_Policy_Type _tao_cached_type (void) const;
// Returns the scope at which this policy can be applied. See orbconf.h.
virtual TAO_Policy_Scope _tao_scope (void) const;
protected:
PortableServer::ImplicitActivationPolicyValue value_;
};
class TAO_PortableServer_Export TAO_Servant_Retention_Policy :
public PortableServer::ServantRetentionPolicy,
public TAO_Local_RefCounted_Object
{
public:
TAO_Servant_Retention_Policy (PortableServer::ServantRetentionPolicyValue value);
PortableServer::ServantRetentionPolicyValue value (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
CORBA::Policy_ptr copy (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
void destroy (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
CORBA::PolicyType policy_type (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
// Return the cached policy type for this policy.
virtual TAO_Cached_Policy_Type _tao_cached_type (void) const;
// Returns the scope at which this policy can be applied. See orbconf.h.
virtual TAO_Policy_Scope _tao_scope (void) const;
protected:
PortableServer::ServantRetentionPolicyValue value_;
};
class TAO_PortableServer_Export TAO_Request_Processing_Policy :
public PortableServer::RequestProcessingPolicy,
public TAO_Local_RefCounted_Object
{
public:
TAO_Request_Processing_Policy (PortableServer::RequestProcessingPolicyValue value);
PortableServer::RequestProcessingPolicyValue value (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
CORBA::Policy_ptr copy (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
void destroy (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
CORBA::PolicyType policy_type (TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
// Return the cached policy type for this policy.
virtual TAO_Cached_Policy_Type _tao_cached_type (void) const;
// Returns the scope at which this policy can be applied. See orbconf.h.
virtual TAO_Policy_Scope _tao_scope (void) const;
protected:
PortableServer::RequestProcessingPolicyValue value_;
};
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
#pragma warning(pop)
#endif /* _MSC_VER */
#if defined (__ACE_INLINE__)
# include "POA_Policies.i"
#endif /* __ACE_INLINE__ */
#include "ace/post.h"
#endif /* TAO_POA_POLICIES_H */
|