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
|
/* -*- C++ -*- */
//
// $Id$
//
// ================================================================
//
// = LIBRARY
// TAO
//
// = FILENAME
// PollableC.h
//
// = DESCRIPTION
// Generated from Pollable.pidl
// The code was generated by the IDL compiler and then hand-crafted
// to reduce the includes interdependencies.
//
// ================================================================
#ifndef TAO_IDL_POLLABLES_H
#include "ace/pre.h"
#define TAO_IDL_POLLABLES_H
#include "tao/PollableC.h"
#if (TAO_HAS_CORBA_MESSAGING == 1) && (TAO_HAS_AMI_POLLER == 1)
#include "tao/POA_CORBA.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if defined(_MSC_VER)
#if (_MSC_VER >= 1200)
#pragma warning(push)
#endif /* _MSC_VER >= 1200 */
#pragma warning(disable:4250)
#endif /* _MSC_VER */
#if 0
TAO_NAMESPACE POA_CORBA
{
#if defined (ACE_HAS_USING_KEYWORD)
// TIE class: Refer to CORBA v2.2, Section 20.34.4
template <class T>
class TAO_Export Pollable_tie : public Pollable
{
public:
Pollable_tie (T &t);
// the T& ctor
Pollable_tie (T &t, PortableServer::POA_ptr poa);
// ctor taking a POA
Pollable_tie (T *tp, CORBA::Boolean release=1);
// ctor taking pointer and an ownership flag
Pollable_tie (T *tp, PortableServer::POA_ptr poa, CORBA::Boolean release=1);
// ctor with T*, ownership flag and a POA
~Pollable_tie (void);
// dtor
// TIE specific functions
T *_tied_object (void);
// return the underlying object
void _tied_object (T &obj);
// set the underlying object
void _tied_object (T *obj, CORBA::Boolean release=1);
// set the underlying object and the ownership flag
CORBA::Boolean _is_owner (void);
// do we own it
void _is_owner (CORBA::Boolean b);
// set the ownership
// overridden ServantBase operations
PortableServer::POA_ptr _default_POA (
CORBA::Environment &ACE_TRY_ENV =
CORBA::Environment::default_environment ()
);
CORBA::Boolean is_ready (
CORBA::ULong timeout,
CORBA::Environment &ACE_TRY_ENV =
CORBA::Environment::default_environment ()
);
CORBA::PollableSet_ptr create_pollable_set (
CORBA::Environment &ACE_TRY_ENV =
CORBA::Environment::default_environment ()
);
private:
T *ptr_;
PortableServer::POA_var poa_;
CORBA::Boolean rel_;
// copy and assignment are not allowed
Pollable_tie (const Pollable_tie &);
void operator= (const Pollable_tie &);
};
#endif /* ACE_HAS_USING_KEYWORD */
#if defined (ACE_HAS_USING_KEYWORD)
// TIE class: Refer to CORBA v2.2, Section 20.34.4
template <class T>
class TAO_Export DIIPollable_tie : public DIIPollable
{
public:
DIIPollable_tie (T &t);
// the T& ctor
DIIPollable_tie (T &t, PortableServer::POA_ptr poa);
// ctor taking a POA
DIIPollable_tie (T *tp, CORBA::Boolean release=1);
// ctor taking pointer and an ownership flag
DIIPollable_tie (T *tp, PortableServer::POA_ptr poa, CORBA::Boolean release=1);
// ctor with T*, ownership flag and a POA
~DIIPollable_tie (void);
// dtor
// TIE specific functions
T *_tied_object (void);
// return the underlying object
void _tied_object (T &obj);
// set the underlying object
void _tied_object (T *obj, CORBA::Boolean release=1);
// set the underlying object and the ownership flag
CORBA::Boolean _is_owner (void);
// do we own it
void _is_owner (CORBA::Boolean b);
// set the ownership
// overridden ServantBase operations
PortableServer::POA_ptr _default_POA (
CORBA::Environment &ACE_TRY_ENV =
CORBA::Environment::default_environment ()
);
CORBA::Boolean is_ready (
CORBA::ULong timeout,
CORBA::Environment &ACE_TRY_ENV =
CORBA::Environment::default_environment ()
);
CORBA::PollableSet_ptr create_pollable_set (
CORBA::Environment &ACE_TRY_ENV =
CORBA::Environment::default_environment ()
);
private:
T *ptr_;
PortableServer::POA_var poa_;
CORBA::Boolean rel_;
// copy and assignment are not allowed
DIIPollable_tie (const DIIPollable_tie &);
void operator= (const DIIPollable_tie &);
};
#endif /* ACE_HAS_USING_KEYWORD */
#if defined (ACE_HAS_USING_KEYWORD)
// TIE class: Refer to CORBA v2.2, Section 20.34.4
template <class T>
class TAO_Export PollableSet_tie : public PollableSet
{
public:
PollableSet_tie (T &t);
// the T& ctor
PollableSet_tie (T &t, PortableServer::POA_ptr poa);
// ctor taking a POA
PollableSet_tie (T *tp, CORBA::Boolean release=1);
// ctor taking pointer and an ownership flag
PollableSet_tie (T *tp, PortableServer::POA_ptr poa, CORBA::Boolean release=1);
// ctor with T*, ownership flag and a POA
~PollableSet_tie (void);
// dtor
// TIE specific functions
T *_tied_object (void);
// return the underlying object
void _tied_object (T &obj);
// set the underlying object
void _tied_object (T *obj, CORBA::Boolean release=1);
// set the underlying object and the ownership flag
CORBA::Boolean _is_owner (void);
// do we own it
void _is_owner (CORBA::Boolean b);
// set the ownership
// overridden ServantBase operations
PortableServer::POA_ptr _default_POA (
CORBA::Environment &ACE_TRY_ENV =
CORBA::Environment::default_environment ()
);
CORBA::DIIPollable_ptr create_dii_pollable (
CORBA::Environment &ACE_TRY_ENV =
CORBA::Environment::default_environment ()
);
void add_pollable (
CORBA::Pollable_ptr potential,
CORBA::Environment &ACE_TRY_ENV =
CORBA::Environment::default_environment ()
);
CORBA::Pollable_ptr poll (
CORBA::ULong timeout,
CORBA::Environment &ACE_TRY_ENV =
CORBA::Environment::default_environment ()
);
void remove (
CORBA::Pollable_ptr potential,
CORBA::Environment &ACE_TRY_ENV =
CORBA::Environment::default_environment ()
);
CORBA::UShort number_left (
CORBA::Environment &ACE_TRY_ENV =
CORBA::Environment::default_environment ()
);
private:
T *ptr_;
PortableServer::POA_var poa_;
CORBA::Boolean rel_;
// copy and assignment are not allowed
PollableSet_tie (const PollableSet_tie &);
void operator= (const PollableSet_tie &);
};
#endif /* ACE_HAS_USING_KEYWORD */
}
TAO_NAMESPACE_CLOSE
#include "tao/PollableS_T.h"
#endif /* 0 */
#if defined (__ACE_INLINE__)
#include "tao/PollableS.i"
#endif /* defined INLINE */
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_HAS_CORBA_MESSAGING == 1 && TAO_HAS_AMI_POLLER == 1 */
#include "ace/post.h"
#endif /* ifndef */
|