summaryrefslogtreecommitdiff
path: root/TAO/tao/diffs/PolicyS.cpp.diff
blob: d9caa4f33b885fefdde85513eb5724302a8105c4 (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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
--- PolicyS.cpp	Fri Jul 14 06:18:45 2000
+++ PolicyS.cpp.mod	Fri Jul 14 06:18:30 2000
@@ -7,12 +7,16 @@
 // Information about TAO is available at:
 //                 http://www.cs.wustl.edu/~schmidt/TAO.html
 
-#include "PolicyS.h"
+#include "tao/PolicyC.h"
+#include "tao/Operation_Table.h"
+#include "tao/Server_Request.h"
+#include "tao/NVList.h"
+#include "tao/Stub.h"
+#include "tao/POA_CORBA.h"
+#include "tao/Typecode.h"
+#include "tao/Object_Adapter.h"
+#include "tao/ORB_Core.h"
 
-#if !defined (__ACE_INLINE__)
-#include "PolicyS.i"
-#endif /* !defined INLINE */
-
 class TAO_CORBA_Policy_Perfect_Hash_OpTable : public TAO_Perfect_Hash_OpTable
 {
 private:
@@ -91,14 +95,14 @@
   static const class TAO_operation_db_entry  wordlist[] =
     {
       {"",0},{"",0},{"",0},{"",0},
-      {"copy", 	&POA_CORBA_Policy::copy_skel},
-      {"_is_a",  &POA_CORBA_Policy::_is_a_skel},
+      {"copy",  &POA_CORBA::Policy::copy_skel},
+      {"_is_a",  &POA_CORBA::Policy::_is_a_skel},
       {"",0},
-      {"destroy", 	&POA_CORBA_Policy::destroy_skel},
+      {"destroy",       &POA_CORBA::Policy::destroy_skel},
       {"",0},{"",0},{"",0},{"",0},{"",0},
-      {"_non_existent",  &POA_CORBA_Policy::_non_existent_skel},
+      {"_non_existent",  &POA_CORBA::Policy::_non_existent_skel},
       {"",0},{"",0},
-      {"_get_policy_type", 	&POA_CORBA_Policy::_get_policy_type_skel},
+      {"_get_policy_type",      &POA_CORBA::Policy::_get_policy_type_skel},
     };
 
   if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
@@ -131,7 +135,7 @@
       CORBA_Policy_ptr retval = 0;
       ACE_NEW_RETURN (
           retval,
-          _tao_thru_poa_collocated_CORBA_Policy (stub),
+          POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy (stub),
           0
         );
       return retval;
@@ -158,29 +162,29 @@
   _TAO_collocation_POA_CORBA_Policy_Stub_Factory_Initializer (ACE_reinterpret_cast (long, _TAO_collocation_POA_CORBA_Policy_Stub_Factory_Initializer));
 
 // skeleton constructor
-POA_CORBA_Policy::POA_CORBA_Policy (void)
+POA_CORBA::Policy::Policy (void)
 {
   this->optable_ = &tao_CORBA_Policy_optable;
 }
 
 // copy ctor
-POA_CORBA_Policy::POA_CORBA_Policy (const POA_CORBA_Policy& rhs)
+POA_CORBA::Policy::Policy (const POA_CORBA::Policy& rhs)
   :   TAO_ServantBase (rhs)
 {}
 
 // skeleton destructor
-POA_CORBA_Policy::~POA_CORBA_Policy (void)
+POA_CORBA::Policy::~Policy (void)
 {
 }
 
-void POA_CORBA_Policy::_get_policy_type_skel (
+void POA_CORBA::Policy::_get_policy_type_skel (
     CORBA::ServerRequest &_tao_server_request,
     void *_tao_object_reference, 
     void * /* context */, 
     CORBA::Environment &ACE_TRY_ENV
 )
 {
-  POA_CORBA_Policy *_tao_impl = (POA_CORBA_Policy *)_tao_object_reference;
+  POA_CORBA::Policy *_tao_impl = (POA_CORBA::Policy *)_tao_object_reference;
 
   CORBA::PolicyType _tao_retval = 0;
 #if (TAO_HAS_INTERCEPTORS == 1)
@@ -259,14 +263,14 @@
 
 }
 
-void POA_CORBA_Policy::copy_skel (
+void POA_CORBA::Policy::copy_skel (
     CORBA::ServerRequest &_tao_server_request,
     void *_tao_object_reference, 
     void * /* context */, 
     CORBA::Environment &ACE_TRY_ENV
 )
 {
-  POA_CORBA_Policy *_tao_impl = (POA_CORBA_Policy *)_tao_object_reference;
+  POA_CORBA::Policy *_tao_impl = (POA_CORBA::Policy *)_tao_object_reference;
 
   CORBA_Policy_var _tao_retval;
 #if (TAO_HAS_INTERCEPTORS == 1)
@@ -345,14 +349,14 @@
 
 }
 
-void POA_CORBA_Policy::destroy_skel (
+void POA_CORBA::Policy::destroy_skel (
     CORBA::ServerRequest &_tao_server_request,
     void *_tao_object_reference, 
     void * /* context */, 
     CORBA::Environment &ACE_TRY_ENV
 )
 {
-  POA_CORBA_Policy *_tao_impl = (POA_CORBA_Policy *)_tao_object_reference;
+  POA_CORBA::Policy *_tao_impl = (POA_CORBA::Policy *)_tao_object_reference;
 
 #if (TAO_HAS_INTERCEPTORS == 1)
   TAO_ServerRequestInterceptor_Adapter
@@ -424,7 +428,7 @@
   ACE_CHECK;
   }
 
-void POA_CORBA_Policy::_is_a_skel (
+void POA_CORBA::Policy::_is_a_skel (
     CORBA::ServerRequest &_tao_server_request, 
     void * _tao_object_reference,
     void * /* context */,
@@ -432,7 +436,7 @@
   )
 {
   TAO_InputCDR &_tao_in = _tao_server_request.incoming ();
-  POA_CORBA_Policy *_tao_impl = (POA_CORBA_Policy *) _tao_object_reference;
+  POA_CORBA::Policy *_tao_impl = (POA_CORBA::Policy *) _tao_object_reference;
   CORBA::Boolean _tao_retval = 0;
   CORBA::String_var value;
   if (!(_tao_in >> value.out ()))
@@ -448,14 +452,14 @@
     ACE_THROW (CORBA::MARSHAL ());
 }
 
-void POA_CORBA_Policy::_non_existent_skel (
+void POA_CORBA::Policy::_non_existent_skel (
     CORBA::ServerRequest &_tao_server_request, 
     void * _tao_object_reference,
     void * /* context */,
     CORBA::Environment &ACE_TRY_ENV
   )
 {
-  POA_CORBA_Policy *_tao_impl = (POA_CORBA_Policy *) _tao_object_reference;
+  POA_CORBA::Policy *_tao_impl = (POA_CORBA::Policy *) _tao_object_reference;
   CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_TRY_ENV);
   ACE_CHECK;
   
@@ -466,7 +470,7 @@
     ACE_THROW (CORBA::MARSHAL ());
 }
 
-CORBA::Boolean POA_CORBA_Policy::_is_a (
+CORBA::Boolean POA_CORBA::Policy::_is_a (
     const char* value,
     CORBA::Environment &ACE_TRY_ENV
   )
@@ -479,29 +483,29 @@
       return 0;
 }
 
-void* POA_CORBA_Policy::_downcast (
+void* POA_CORBA::Policy::_downcast (
     const char* logical_type_id
   )
 {
 if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA_Policy:1.0") == 0)
-    return ACE_static_cast (POA_CORBA_Policy_ptr, this);
+    return ACE_static_cast (POA_CORBA::Policy_ptr, this);
     if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
     return ACE_static_cast(PortableServer::Servant, this);
   return 0;
 }
 
-void POA_CORBA_Policy::_dispatch (CORBA::ServerRequest &req, void *context, CORBA::Environment &ACE_TRY_ENV)
+void POA_CORBA::Policy::_dispatch (CORBA::ServerRequest &req, void *context, CORBA::Environment &ACE_TRY_ENV)
 {
   this->synchronous_upcall_dispatch(req, context, this, ACE_TRY_ENV);
 }
 
-const char* POA_CORBA_Policy::_interface_repository_id (void) const
+const char* POA_CORBA::Policy::_interface_repository_id (void) const
 {
   return "IDL:omg.org/CORBA_Policy:1.0";
 }
 
 CORBA_Policy*
-POA_CORBA_Policy::_this (CORBA_Environment &ACE_TRY_ENV)
+POA_CORBA::Policy::_this (CORBA_Environment &ACE_TRY_ENV)
 {
   TAO_Stub *stub = this->_create_stub (ACE_TRY_ENV);
   ACE_CHECK_RETURN (0);
@@ -513,7 +517,7 @@
           ::CORBA_Policy_ptr retval = 0;
           ACE_NEW_RETURN (
               retval,
-              _tao_thru_poa_collocated_CORBA_Policy (stub),
+              POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy (stub),
               0
             );
           return retval;
@@ -533,14 +537,14 @@
     }
 }
 
-_tao_thru_poa_collocated_CORBA_Policy::_tao_thru_poa_collocated_CORBA_Policy (
+POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::_tao_thru_poa_collocated_CORBA_Policy (
   TAO_Stub *stub
 )
   :  CORBA_Object (stub, 0, 1)
 {
 }
 
-CORBA::Boolean _tao_thru_poa_collocated_CORBA_Policy::_is_a(
+CORBA::Boolean POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::_is_a(
     const CORBA::Char *logical_type_id,
     CORBA_Environment &ACE_TRY_ENV
   )
@@ -556,7 +560,7 @@
     );
   ACE_CHECK_RETURN (0);
   return ACE_reinterpret_cast (
-      POA_CORBA_Policy_ptr,
+      POA_CORBA::Policy_ptr,
       servant_upcall.servant ()->_downcast (
           "IDL:omg.org/CORBA_Policy:1.0"
         )
@@ -564,7 +568,7 @@
 }
 
 
-CORBA::Boolean _tao_thru_poa_collocated_CORBA_Policy::_non_existent(
+CORBA::Boolean POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::_non_existent(
     CORBA_Environment &ACE_TRY_ENV
   )
 
@@ -579,7 +583,7 @@
     );
   ACE_CHECK_RETURN (0);
   return ACE_reinterpret_cast (
-      POA_CORBA_Policy_ptr,
+      POA_CORBA::Policy_ptr,
       servant_upcall.servant ()->_downcast (
           "IDL:omg.org/CORBA_Policy:1.0"
         )
@@ -587,7 +591,7 @@
 }
 
 
-CORBA::PolicyType _tao_thru_poa_collocated_CORBA_Policy::policy_type  (
+CORBA::PolicyType POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::policy_type  (
     CORBA::Environment &ACE_TRY_ENV
   )
   ACE_THROW_SPEC ((
@@ -606,7 +610,7 @@
     );
   ACE_CHECK_RETURN  (_tao_retval);
   return ACE_reinterpret_cast (
-      POA_CORBA_Policy_ptr,
+      POA_CORBA::Policy_ptr,
       servant_upcall.servant ()->_downcast (
           "IDL:omg.org/CORBA_Policy:1.0"
         )
@@ -616,7 +620,7 @@
 
 }
 
-CORBA_Policy_ptr _tao_thru_poa_collocated_CORBA_Policy::copy  (
+CORBA_Policy_ptr POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::copy  (
     CORBA::Environment &ACE_TRY_ENV
   )
   ACE_THROW_SPEC ((
@@ -635,7 +639,7 @@
     );
   ACE_CHECK_RETURN (0);
   return ACE_reinterpret_cast (
-      POA_CORBA_Policy_ptr,
+      POA_CORBA::Policy_ptr,
       servant_upcall.servant ()->_downcast (
           "IDL:omg.org/CORBA_Policy:1.0"
         )
@@ -645,7 +649,7 @@
 
 }
 
-void _tao_thru_poa_collocated_CORBA_Policy::destroy  (
+void POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::destroy  (
     CORBA::Environment &ACE_TRY_ENV
   )
   ACE_THROW_SPEC ((
@@ -662,7 +666,7 @@
     );
   ACE_CHECK;
   ACE_reinterpret_cast (
-      POA_CORBA_Policy_ptr,
+      POA_CORBA::Policy_ptr,
       servant_upcall.servant ()->_downcast (
           "IDL:omg.org/CORBA_Policy:1.0"
         )
@@ -671,6 +675,3 @@
     );
   return;
 }
-
-
-