Line |
Branch |
Exec |
Source |
1 |
|
|
// This file is generated by omniidl (C++ backend) - omniORB_4_3. Do not edit. |
2 |
|
|
|
3 |
|
|
#include "distances-idl.hh" |
4 |
|
|
#include <omniORB4/IOP_S.h> |
5 |
|
|
#include <omniORB4/IOP_C.h> |
6 |
|
|
#include <omniORB4/callDescriptor.h> |
7 |
|
|
#include <omniORB4/callHandle.h> |
8 |
|
|
#include <omniORB4/objTracker.h> |
9 |
|
|
|
10 |
|
|
|
11 |
|
|
OMNI_USING_NAMESPACE(omni) |
12 |
|
|
|
13 |
|
|
OMNI_MAYBE_UNUSED static const char* _0RL_library_version = omniORB_4_3; |
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
✗ |
hpp::core_idl::Distance_ptr hpp::core_idl::Distance_Helper::_nil() { |
18 |
|
✗ |
return ::hpp::core_idl::Distance::_nil(); |
19 |
|
|
} |
20 |
|
|
|
21 |
|
✗ |
::CORBA::Boolean hpp::core_idl::Distance_Helper::is_nil(::hpp::core_idl::Distance_ptr p) { |
22 |
|
✗ |
return ::CORBA::is_nil(p); |
23 |
|
|
|
24 |
|
|
} |
25 |
|
|
|
26 |
|
✗ |
void hpp::core_idl::Distance_Helper::release(::hpp::core_idl::Distance_ptr p) { |
27 |
|
✗ |
::CORBA::release(p); |
28 |
|
|
} |
29 |
|
|
|
30 |
|
✗ |
void hpp::core_idl::Distance_Helper::marshalObjRef(::hpp::core_idl::Distance_ptr obj, cdrStream& s) { |
31 |
|
✗ |
::hpp::core_idl::Distance::_marshalObjRef(obj, s); |
32 |
|
|
} |
33 |
|
|
|
34 |
|
✗ |
hpp::core_idl::Distance_ptr hpp::core_idl::Distance_Helper::unmarshalObjRef(cdrStream& s) { |
35 |
|
✗ |
return ::hpp::core_idl::Distance::_unmarshalObjRef(s); |
36 |
|
|
} |
37 |
|
|
|
38 |
|
✗ |
void hpp::core_idl::Distance_Helper::duplicate(::hpp::core_idl::Distance_ptr obj) { |
39 |
|
✗ |
if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj); |
40 |
|
|
} |
41 |
|
|
|
42 |
|
|
hpp::core_idl::Distance_ptr |
43 |
|
✗ |
hpp::core_idl::Distance::_duplicate(::hpp::core_idl::Distance_ptr obj) |
44 |
|
|
{ |
45 |
|
✗ |
if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj); |
46 |
|
✗ |
return obj; |
47 |
|
|
} |
48 |
|
|
|
49 |
|
|
hpp::core_idl::Distance_ptr |
50 |
|
✗ |
hpp::core_idl::Distance::_narrow(::CORBA::Object_ptr obj) |
51 |
|
|
{ |
52 |
|
✗ |
if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil(); |
53 |
|
✗ |
_ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId); |
54 |
|
✗ |
return e ? e : _nil(); |
55 |
|
|
} |
56 |
|
|
|
57 |
|
|
|
58 |
|
|
hpp::core_idl::Distance_ptr |
59 |
|
✗ |
hpp::core_idl::Distance::_unchecked_narrow(::CORBA::Object_ptr obj) |
60 |
|
|
{ |
61 |
|
✗ |
if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil(); |
62 |
|
✗ |
_ptr_type e = (_ptr_type) obj->_PR_getobj()->_uncheckedNarrow(_PD_repoId); |
63 |
|
✗ |
return e ? e : _nil(); |
64 |
|
|
} |
65 |
|
|
|
66 |
|
|
hpp::core_idl::Distance_ptr |
67 |
|
✗ |
hpp::core_idl::Distance::_nil() |
68 |
|
|
{ |
69 |
|
|
#ifdef OMNI_UNLOADABLE_STUBS |
70 |
|
|
static _objref_Distance _the_nil_obj; |
71 |
|
|
return &_the_nil_obj; |
72 |
|
|
#else |
73 |
|
|
static _objref_Distance* _the_nil_ptr = 0; |
74 |
|
✗ |
if (!_the_nil_ptr) { |
75 |
|
✗ |
omni::nilRefLock().lock(); |
76 |
|
✗ |
if (!_the_nil_ptr) { |
77 |
|
✗ |
_the_nil_ptr = new _objref_Distance; |
78 |
|
✗ |
registerNilCorbaObject(_the_nil_ptr); |
79 |
|
|
} |
80 |
|
✗ |
omni::nilRefLock().unlock(); |
81 |
|
|
} |
82 |
|
✗ |
return _the_nil_ptr; |
83 |
|
|
#endif |
84 |
|
|
} |
85 |
|
|
|
86 |
|
|
const char* hpp::core_idl::Distance::_PD_repoId = "IDL:hpp/core_idl/Distance:1.0"; |
87 |
|
|
|
88 |
|
|
|
89 |
|
✗ |
hpp::core_idl::_objref_Distance::~_objref_Distance() { |
90 |
|
|
|
91 |
|
|
} |
92 |
|
|
|
93 |
|
|
|
94 |
|
✗ |
hpp::core_idl::_objref_Distance::_objref_Distance(omniIOR* ior, omniIdentity* id) : |
95 |
|
✗ |
omniObjRef(::hpp::core_idl::Distance::_PD_repoId, ior, id, 1) |
96 |
|
|
|
97 |
|
|
|
98 |
|
|
{ |
99 |
|
✗ |
_PR_setobj(this); |
100 |
|
|
} |
101 |
|
|
|
102 |
|
|
void* |
103 |
|
✗ |
hpp::core_idl::_objref_Distance::_ptrToObjRef(const char* id) |
104 |
|
|
{ |
105 |
|
✗ |
if (id == ::hpp::core_idl::Distance::_PD_repoId) |
106 |
|
✗ |
return (::hpp::core_idl::Distance_ptr) this; |
107 |
|
|
|
108 |
|
✗ |
if (id == ::CORBA::Object::_PD_repoId) |
109 |
|
✗ |
return (::CORBA::Object_ptr) this; |
110 |
|
|
|
111 |
|
✗ |
if (omni::strMatch(id, ::hpp::core_idl::Distance::_PD_repoId)) |
112 |
|
✗ |
return (::hpp::core_idl::Distance_ptr) this; |
113 |
|
|
|
114 |
|
✗ |
if (omni::strMatch(id, ::CORBA::Object::_PD_repoId)) |
115 |
|
✗ |
return (::CORBA::Object_ptr) this; |
116 |
|
|
|
117 |
|
✗ |
return 0; |
118 |
|
|
} |
119 |
|
|
|
120 |
|
|
|
121 |
|
|
// |
122 |
|
|
// Code for hpp::core_idl::Distance::deleteThis |
123 |
|
|
|
124 |
|
|
// Proxy call descriptor class. Mangled signature: |
125 |
|
|
// void_e_chpp_mError |
126 |
|
|
class _0RL_cd_b858ed6a73860bd2_00000000 |
127 |
|
|
: public omniCallDescriptor |
128 |
|
|
{ |
129 |
|
|
public: |
130 |
|
✗ |
inline _0RL_cd_b858ed6a73860bd2_00000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0) |
131 |
|
✗ |
: omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall) |
132 |
|
|
{ |
133 |
|
|
|
134 |
|
|
} |
135 |
|
|
|
136 |
|
|
|
137 |
|
|
|
138 |
|
|
void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*); |
139 |
|
|
static const char* const _user_exns[]; |
140 |
|
|
|
141 |
|
|
|
142 |
|
|
}; |
143 |
|
|
|
144 |
|
|
const char* const _0RL_cd_b858ed6a73860bd2_00000000::_user_exns[] = { |
145 |
|
|
hpp::Error::_PD_repoId |
146 |
|
|
}; |
147 |
|
|
|
148 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_00000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId) |
149 |
|
|
{ |
150 |
|
✗ |
if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) { |
151 |
|
✗ |
hpp::Error _ex; |
152 |
|
✗ |
_ex <<= s; |
153 |
|
✗ |
if (iop_client) iop_client->RequestCompleted(); |
154 |
|
✗ |
throw _ex; |
155 |
|
|
} |
156 |
|
|
|
157 |
|
|
|
158 |
|
|
else { |
159 |
|
✗ |
if (iop_client) iop_client->RequestCompleted(1); |
160 |
|
✗ |
OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException, |
161 |
|
|
(::CORBA::CompletionStatus)s.completion()); |
162 |
|
|
} |
163 |
|
|
} |
164 |
|
|
|
165 |
|
|
// Local call call-back function. |
166 |
|
|
static void |
167 |
|
✗ |
_0RL_lcfn_b858ed6a73860bd2_10000000(omniCallDescriptor* _OMNIORB_EX_ONLY_CD(cd), omniServant* svnt) |
168 |
|
|
{ |
169 |
|
|
|
170 |
|
✗ |
hpp::core_idl::_impl_Distance* impl = (hpp::core_idl::_impl_Distance*) svnt->_ptrToInterface(hpp::core_idl::Distance::_PD_repoId); |
171 |
|
|
#ifdef OMNI_HAS_Cplusplus_catch_exception_by_base |
172 |
|
✗ |
impl->deleteThis(); |
173 |
|
|
#else |
174 |
|
|
if (!cd->is_upcall()) |
175 |
|
|
impl->deleteThis(); |
176 |
|
|
else { |
177 |
|
|
try { |
178 |
|
|
impl->deleteThis(); |
179 |
|
|
} |
180 |
|
|
catch(hpp::Error& ex) { |
181 |
|
|
throw omniORB::StubUserException(ex._NP_duplicate()); |
182 |
|
|
} |
183 |
|
|
|
184 |
|
|
|
185 |
|
|
} |
186 |
|
|
#endif |
187 |
|
|
|
188 |
|
|
|
189 |
|
|
} |
190 |
|
|
|
191 |
|
✗ |
void hpp::core_idl::_objref_Distance::deleteThis() |
192 |
|
|
{ |
193 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_00000000 _call_desc(_0RL_lcfn_b858ed6a73860bd2_10000000, "deleteThis", 11); |
194 |
|
|
|
195 |
|
|
|
196 |
|
✗ |
_invoke(_call_desc); |
197 |
|
|
|
198 |
|
|
|
199 |
|
|
|
200 |
|
|
} |
201 |
|
|
|
202 |
|
|
|
203 |
|
|
// |
204 |
|
|
// Code for hpp::core_idl::Distance::deleteIfExpired |
205 |
|
|
|
206 |
|
|
// Proxy call descriptor class. Mangled signature: |
207 |
|
|
// _cboolean_e_chpp_mError |
208 |
|
|
class _0RL_cd_b858ed6a73860bd2_20000000 |
209 |
|
|
: public omniCallDescriptor |
210 |
|
|
{ |
211 |
|
|
public: |
212 |
|
✗ |
inline _0RL_cd_b858ed6a73860bd2_20000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0) |
213 |
|
✗ |
: omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall) |
214 |
|
|
{ |
215 |
|
|
|
216 |
|
|
} |
217 |
|
|
|
218 |
|
|
|
219 |
|
|
void unmarshalReturnedValues(cdrStream&); |
220 |
|
|
void marshalReturnedValues(cdrStream&); |
221 |
|
|
|
222 |
|
|
void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*); |
223 |
|
|
static const char* const _user_exns[]; |
224 |
|
|
|
225 |
|
|
::CORBA::Boolean result; |
226 |
|
|
}; |
227 |
|
|
|
228 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_20000000::marshalReturnedValues(cdrStream& _n) |
229 |
|
|
{ |
230 |
|
✗ |
_n.marshalBoolean(result); |
231 |
|
|
|
232 |
|
|
} |
233 |
|
|
|
234 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_20000000::unmarshalReturnedValues(cdrStream& _n) |
235 |
|
|
{ |
236 |
|
✗ |
result = _n.unmarshalBoolean(); |
237 |
|
|
|
238 |
|
|
} |
239 |
|
|
|
240 |
|
|
const char* const _0RL_cd_b858ed6a73860bd2_20000000::_user_exns[] = { |
241 |
|
|
hpp::Error::_PD_repoId |
242 |
|
|
}; |
243 |
|
|
|
244 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_20000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId) |
245 |
|
|
{ |
246 |
|
✗ |
if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) { |
247 |
|
✗ |
hpp::Error _ex; |
248 |
|
✗ |
_ex <<= s; |
249 |
|
✗ |
if (iop_client) iop_client->RequestCompleted(); |
250 |
|
✗ |
throw _ex; |
251 |
|
|
} |
252 |
|
|
|
253 |
|
|
|
254 |
|
|
else { |
255 |
|
✗ |
if (iop_client) iop_client->RequestCompleted(1); |
256 |
|
✗ |
OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException, |
257 |
|
|
(::CORBA::CompletionStatus)s.completion()); |
258 |
|
|
} |
259 |
|
|
} |
260 |
|
|
|
261 |
|
|
// Local call call-back function. |
262 |
|
|
static void |
263 |
|
✗ |
_0RL_lcfn_b858ed6a73860bd2_30000000(omniCallDescriptor* cd, omniServant* svnt) |
264 |
|
|
{ |
265 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_20000000* tcd = (_0RL_cd_b858ed6a73860bd2_20000000*)cd; |
266 |
|
✗ |
hpp::core_idl::_impl_Distance* impl = (hpp::core_idl::_impl_Distance*) svnt->_ptrToInterface(hpp::core_idl::Distance::_PD_repoId); |
267 |
|
|
#ifdef OMNI_HAS_Cplusplus_catch_exception_by_base |
268 |
|
✗ |
tcd->result = impl->deleteIfExpired(); |
269 |
|
|
#else |
270 |
|
|
if (!cd->is_upcall()) |
271 |
|
|
tcd->result = impl->deleteIfExpired(); |
272 |
|
|
else { |
273 |
|
|
try { |
274 |
|
|
tcd->result = impl->deleteIfExpired(); |
275 |
|
|
} |
276 |
|
|
catch(hpp::Error& ex) { |
277 |
|
|
throw omniORB::StubUserException(ex._NP_duplicate()); |
278 |
|
|
} |
279 |
|
|
|
280 |
|
|
|
281 |
|
|
} |
282 |
|
|
#endif |
283 |
|
|
|
284 |
|
|
|
285 |
|
|
} |
286 |
|
|
|
287 |
|
✗ |
::CORBA::Boolean hpp::core_idl::_objref_Distance::deleteIfExpired() |
288 |
|
|
{ |
289 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_20000000 _call_desc(_0RL_lcfn_b858ed6a73860bd2_30000000, "deleteIfExpired", 16); |
290 |
|
|
|
291 |
|
|
|
292 |
|
✗ |
_invoke(_call_desc); |
293 |
|
✗ |
return _call_desc.result; |
294 |
|
|
|
295 |
|
|
|
296 |
|
|
} |
297 |
|
|
|
298 |
|
|
|
299 |
|
|
// |
300 |
|
|
// Code for hpp::core_idl::Distance::persistantStorage |
301 |
|
|
|
302 |
|
|
// Proxy call descriptor class. Mangled signature: |
303 |
|
|
// void_i_cboolean_e_chpp_mError |
304 |
|
|
class _0RL_cd_b858ed6a73860bd2_40000000 |
305 |
|
|
: public omniCallDescriptor |
306 |
|
|
{ |
307 |
|
|
public: |
308 |
|
✗ |
inline _0RL_cd_b858ed6a73860bd2_40000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0) |
309 |
|
✗ |
: omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall) |
310 |
|
|
{ |
311 |
|
|
|
312 |
|
|
} |
313 |
|
|
|
314 |
|
|
void marshalArguments(cdrStream&); |
315 |
|
|
void unmarshalArguments(cdrStream&); |
316 |
|
|
|
317 |
|
|
|
318 |
|
|
void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*); |
319 |
|
|
static const char* const _user_exns[]; |
320 |
|
|
|
321 |
|
|
::CORBA::Boolean arg_0; |
322 |
|
|
}; |
323 |
|
|
|
324 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_40000000::marshalArguments(cdrStream& _n) |
325 |
|
|
{ |
326 |
|
✗ |
_n.marshalBoolean(arg_0); |
327 |
|
|
|
328 |
|
|
} |
329 |
|
|
|
330 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_40000000::unmarshalArguments(cdrStream& _n) |
331 |
|
|
{ |
332 |
|
✗ |
arg_0 = _n.unmarshalBoolean(); |
333 |
|
|
|
334 |
|
|
} |
335 |
|
|
|
336 |
|
|
const char* const _0RL_cd_b858ed6a73860bd2_40000000::_user_exns[] = { |
337 |
|
|
hpp::Error::_PD_repoId |
338 |
|
|
}; |
339 |
|
|
|
340 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_40000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId) |
341 |
|
|
{ |
342 |
|
✗ |
if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) { |
343 |
|
✗ |
hpp::Error _ex; |
344 |
|
✗ |
_ex <<= s; |
345 |
|
✗ |
if (iop_client) iop_client->RequestCompleted(); |
346 |
|
✗ |
throw _ex; |
347 |
|
|
} |
348 |
|
|
|
349 |
|
|
|
350 |
|
|
else { |
351 |
|
✗ |
if (iop_client) iop_client->RequestCompleted(1); |
352 |
|
✗ |
OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException, |
353 |
|
|
(::CORBA::CompletionStatus)s.completion()); |
354 |
|
|
} |
355 |
|
|
} |
356 |
|
|
|
357 |
|
|
// Local call call-back function. |
358 |
|
|
static void |
359 |
|
✗ |
_0RL_lcfn_b858ed6a73860bd2_50000000(omniCallDescriptor* cd, omniServant* svnt) |
360 |
|
|
{ |
361 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_40000000* tcd = (_0RL_cd_b858ed6a73860bd2_40000000*)cd; |
362 |
|
✗ |
hpp::core_idl::_impl_Distance* impl = (hpp::core_idl::_impl_Distance*) svnt->_ptrToInterface(hpp::core_idl::Distance::_PD_repoId); |
363 |
|
|
#ifdef OMNI_HAS_Cplusplus_catch_exception_by_base |
364 |
|
✗ |
impl->persistantStorage(tcd->arg_0); |
365 |
|
|
#else |
366 |
|
|
if (!cd->is_upcall()) |
367 |
|
|
impl->persistantStorage(tcd->arg_0); |
368 |
|
|
else { |
369 |
|
|
try { |
370 |
|
|
impl->persistantStorage(tcd->arg_0); |
371 |
|
|
} |
372 |
|
|
catch(hpp::Error& ex) { |
373 |
|
|
throw omniORB::StubUserException(ex._NP_duplicate()); |
374 |
|
|
} |
375 |
|
|
|
376 |
|
|
|
377 |
|
|
} |
378 |
|
|
#endif |
379 |
|
|
|
380 |
|
|
|
381 |
|
|
} |
382 |
|
|
|
383 |
|
✗ |
void hpp::core_idl::_objref_Distance::persistantStorage(::CORBA::Boolean persistant) |
384 |
|
|
{ |
385 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_40000000 _call_desc(_0RL_lcfn_b858ed6a73860bd2_50000000, "persistantStorage", 18); |
386 |
|
✗ |
_call_desc.arg_0 = persistant; |
387 |
|
|
|
388 |
|
✗ |
_invoke(_call_desc); |
389 |
|
|
|
390 |
|
|
|
391 |
|
|
|
392 |
|
|
} |
393 |
|
|
|
394 |
|
|
|
395 |
|
|
// |
396 |
|
|
// Code for hpp::core_idl::Distance::call |
397 |
|
|
|
398 |
|
|
// Proxy call descriptor class. Mangled signature: |
399 |
|
|
// _cdouble_i_chpp_mfloatSeq_i_chpp_mfloatSeq_e_chpp_mError |
400 |
|
|
class _0RL_cd_b858ed6a73860bd2_60000000 |
401 |
|
|
: public omniCallDescriptor |
402 |
|
|
{ |
403 |
|
|
public: |
404 |
|
✗ |
inline _0RL_cd_b858ed6a73860bd2_60000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0) |
405 |
|
✗ |
: omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall) |
406 |
|
|
{ |
407 |
|
|
|
408 |
|
|
} |
409 |
|
|
|
410 |
|
|
void marshalArguments(cdrStream&); |
411 |
|
|
void unmarshalArguments(cdrStream&); |
412 |
|
|
|
413 |
|
|
void unmarshalReturnedValues(cdrStream&); |
414 |
|
|
void marshalReturnedValues(cdrStream&); |
415 |
|
|
|
416 |
|
|
void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*); |
417 |
|
|
static const char* const _user_exns[]; |
418 |
|
|
|
419 |
|
|
hpp::floatSeq_var arg_0_; |
420 |
|
|
const hpp::floatSeq* arg_0; |
421 |
|
|
hpp::floatSeq_var arg_1_; |
422 |
|
|
const hpp::floatSeq* arg_1; |
423 |
|
|
hpp::value_type result; |
424 |
|
|
}; |
425 |
|
|
|
426 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_60000000::marshalArguments(cdrStream& _n) |
427 |
|
|
{ |
428 |
|
✗ |
(const hpp::floatSeq&) *arg_0 >>= _n; |
429 |
|
✗ |
(const hpp::floatSeq&) *arg_1 >>= _n; |
430 |
|
|
|
431 |
|
|
} |
432 |
|
|
|
433 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_60000000::unmarshalArguments(cdrStream& _n) |
434 |
|
|
{ |
435 |
|
✗ |
arg_0_ = new hpp::floatSeq; |
436 |
|
✗ |
(hpp::floatSeq&)arg_0_ <<= _n; |
437 |
|
✗ |
arg_0 = &arg_0_.in(); |
438 |
|
✗ |
arg_1_ = new hpp::floatSeq; |
439 |
|
✗ |
(hpp::floatSeq&)arg_1_ <<= _n; |
440 |
|
✗ |
arg_1 = &arg_1_.in(); |
441 |
|
|
|
442 |
|
|
} |
443 |
|
|
|
444 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_60000000::marshalReturnedValues(cdrStream& _n) |
445 |
|
|
{ |
446 |
|
✗ |
result >>= _n; |
447 |
|
|
|
448 |
|
|
} |
449 |
|
|
|
450 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_60000000::unmarshalReturnedValues(cdrStream& _n) |
451 |
|
|
{ |
452 |
|
✗ |
(hpp::value_type&)result <<= _n; |
453 |
|
|
|
454 |
|
|
} |
455 |
|
|
|
456 |
|
|
const char* const _0RL_cd_b858ed6a73860bd2_60000000::_user_exns[] = { |
457 |
|
|
hpp::Error::_PD_repoId |
458 |
|
|
}; |
459 |
|
|
|
460 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_60000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId) |
461 |
|
|
{ |
462 |
|
✗ |
if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) { |
463 |
|
✗ |
hpp::Error _ex; |
464 |
|
✗ |
_ex <<= s; |
465 |
|
✗ |
if (iop_client) iop_client->RequestCompleted(); |
466 |
|
✗ |
throw _ex; |
467 |
|
|
} |
468 |
|
|
|
469 |
|
|
|
470 |
|
|
else { |
471 |
|
✗ |
if (iop_client) iop_client->RequestCompleted(1); |
472 |
|
✗ |
OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException, |
473 |
|
|
(::CORBA::CompletionStatus)s.completion()); |
474 |
|
|
} |
475 |
|
|
} |
476 |
|
|
|
477 |
|
|
// Local call call-back function. |
478 |
|
|
static void |
479 |
|
✗ |
_0RL_lcfn_b858ed6a73860bd2_70000000(omniCallDescriptor* cd, omniServant* svnt) |
480 |
|
|
{ |
481 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_60000000* tcd = (_0RL_cd_b858ed6a73860bd2_60000000*)cd; |
482 |
|
✗ |
hpp::core_idl::_impl_Distance* impl = (hpp::core_idl::_impl_Distance*) svnt->_ptrToInterface(hpp::core_idl::Distance::_PD_repoId); |
483 |
|
|
#ifdef OMNI_HAS_Cplusplus_catch_exception_by_base |
484 |
|
✗ |
tcd->result = impl->call(*tcd->arg_0, *tcd->arg_1); |
485 |
|
|
#else |
486 |
|
|
if (!cd->is_upcall()) |
487 |
|
|
tcd->result = impl->call(*tcd->arg_0, *tcd->arg_1); |
488 |
|
|
else { |
489 |
|
|
try { |
490 |
|
|
tcd->result = impl->call(*tcd->arg_0, *tcd->arg_1); |
491 |
|
|
} |
492 |
|
|
catch(hpp::Error& ex) { |
493 |
|
|
throw omniORB::StubUserException(ex._NP_duplicate()); |
494 |
|
|
} |
495 |
|
|
|
496 |
|
|
|
497 |
|
|
} |
498 |
|
|
#endif |
499 |
|
|
|
500 |
|
|
|
501 |
|
|
} |
502 |
|
|
|
503 |
|
✗ |
hpp::value_type hpp::core_idl::_objref_Distance::call(const ::hpp::floatSeq& q1, const ::hpp::floatSeq& q2) |
504 |
|
|
{ |
505 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_60000000 _call_desc(_0RL_lcfn_b858ed6a73860bd2_70000000, "call", 5); |
506 |
|
✗ |
_call_desc.arg_0 = &(::hpp::floatSeq&) q1; |
507 |
|
✗ |
_call_desc.arg_1 = &(::hpp::floatSeq&) q2; |
508 |
|
|
|
509 |
|
✗ |
_invoke(_call_desc); |
510 |
|
✗ |
return _call_desc.result; |
511 |
|
|
|
512 |
|
|
|
513 |
|
|
} |
514 |
|
|
|
515 |
|
16 |
hpp::core_idl::_pof_Distance::~_pof_Distance() {} |
516 |
|
|
|
517 |
|
|
|
518 |
|
|
omniObjRef* |
519 |
|
✗ |
hpp::core_idl::_pof_Distance::newObjRef(omniIOR* ior, omniIdentity* id) |
520 |
|
|
{ |
521 |
|
✗ |
return new ::hpp::core_idl::_objref_Distance(ior, id); |
522 |
|
|
} |
523 |
|
|
|
524 |
|
|
|
525 |
|
|
::CORBA::Boolean |
526 |
|
✗ |
hpp::core_idl::_pof_Distance::is_a(const char* id) const |
527 |
|
|
{ |
528 |
|
✗ |
if (omni::ptrStrMatch(id, ::hpp::core_idl::Distance::_PD_repoId)) |
529 |
|
✗ |
return 1; |
530 |
|
|
|
531 |
|
✗ |
return 0; |
532 |
|
|
} |
533 |
|
|
|
534 |
|
|
const hpp::core_idl::_pof_Distance _the_pof_hpp_mcore__idl_mDistance; |
535 |
|
|
|
536 |
|
✗ |
hpp::core_idl::_impl_Distance::~_impl_Distance() {} |
537 |
|
|
|
538 |
|
|
|
539 |
|
|
::CORBA::Boolean |
540 |
|
✗ |
hpp::core_idl::_impl_Distance::_dispatch(omniCallHandle& _handle) |
541 |
|
|
{ |
542 |
|
✗ |
const char* op = _handle.operation_name(); |
543 |
|
|
|
544 |
|
✗ |
if (omni::strMatch(op, "deleteThis")) { |
545 |
|
|
|
546 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_00000000 _call_desc(_0RL_lcfn_b858ed6a73860bd2_10000000, "deleteThis", 11, 1); |
547 |
|
|
|
548 |
|
✗ |
_handle.upcall(this,_call_desc); |
549 |
|
✗ |
return 1; |
550 |
|
|
} |
551 |
|
|
|
552 |
|
✗ |
if (omni::strMatch(op, "deleteIfExpired")) { |
553 |
|
|
|
554 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_20000000 _call_desc(_0RL_lcfn_b858ed6a73860bd2_30000000, "deleteIfExpired", 16, 1); |
555 |
|
|
|
556 |
|
✗ |
_handle.upcall(this,_call_desc); |
557 |
|
✗ |
return 1; |
558 |
|
|
} |
559 |
|
|
|
560 |
|
✗ |
if (omni::strMatch(op, "persistantStorage")) { |
561 |
|
|
|
562 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_40000000 _call_desc(_0RL_lcfn_b858ed6a73860bd2_50000000, "persistantStorage", 18, 1); |
563 |
|
|
|
564 |
|
✗ |
_handle.upcall(this,_call_desc); |
565 |
|
✗ |
return 1; |
566 |
|
|
} |
567 |
|
|
|
568 |
|
✗ |
if (omni::strMatch(op, "call")) { |
569 |
|
|
|
570 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_60000000 _call_desc(_0RL_lcfn_b858ed6a73860bd2_70000000, "call", 5, 1); |
571 |
|
|
|
572 |
|
✗ |
_handle.upcall(this,_call_desc); |
573 |
|
✗ |
return 1; |
574 |
|
|
} |
575 |
|
|
|
576 |
|
|
|
577 |
|
✗ |
return 0; |
578 |
|
|
} |
579 |
|
|
|
580 |
|
|
void* |
581 |
|
✗ |
hpp::core_idl::_impl_Distance::_ptrToInterface(const char* id) |
582 |
|
|
{ |
583 |
|
✗ |
if (id == ::hpp::core_idl::Distance::_PD_repoId) |
584 |
|
✗ |
return (::hpp::core_idl::_impl_Distance*) this; |
585 |
|
|
|
586 |
|
✗ |
if (id == ::CORBA::Object::_PD_repoId) |
587 |
|
✗ |
return (void*) 1; |
588 |
|
|
|
589 |
|
✗ |
if (omni::strMatch(id, ::hpp::core_idl::Distance::_PD_repoId)) |
590 |
|
✗ |
return (::hpp::core_idl::_impl_Distance*) this; |
591 |
|
|
|
592 |
|
✗ |
if (omni::strMatch(id, ::CORBA::Object::_PD_repoId)) |
593 |
|
✗ |
return (void*) 1; |
594 |
|
✗ |
return 0; |
595 |
|
|
} |
596 |
|
|
|
597 |
|
|
const char* |
598 |
|
✗ |
hpp::core_idl::_impl_Distance::_mostDerivedRepoId() |
599 |
|
|
{ |
600 |
|
✗ |
return ::hpp::core_idl::Distance::_PD_repoId; |
601 |
|
|
} |
602 |
|
|
|
603 |
|
✗ |
hpp::core_idl::WeighedDistance_ptr hpp::core_idl::WeighedDistance_Helper::_nil() { |
604 |
|
✗ |
return ::hpp::core_idl::WeighedDistance::_nil(); |
605 |
|
|
} |
606 |
|
|
|
607 |
|
✗ |
::CORBA::Boolean hpp::core_idl::WeighedDistance_Helper::is_nil(::hpp::core_idl::WeighedDistance_ptr p) { |
608 |
|
✗ |
return ::CORBA::is_nil(p); |
609 |
|
|
|
610 |
|
|
} |
611 |
|
|
|
612 |
|
✗ |
void hpp::core_idl::WeighedDistance_Helper::release(::hpp::core_idl::WeighedDistance_ptr p) { |
613 |
|
✗ |
::CORBA::release(p); |
614 |
|
|
} |
615 |
|
|
|
616 |
|
✗ |
void hpp::core_idl::WeighedDistance_Helper::marshalObjRef(::hpp::core_idl::WeighedDistance_ptr obj, cdrStream& s) { |
617 |
|
✗ |
::hpp::core_idl::WeighedDistance::_marshalObjRef(obj, s); |
618 |
|
|
} |
619 |
|
|
|
620 |
|
✗ |
hpp::core_idl::WeighedDistance_ptr hpp::core_idl::WeighedDistance_Helper::unmarshalObjRef(cdrStream& s) { |
621 |
|
✗ |
return ::hpp::core_idl::WeighedDistance::_unmarshalObjRef(s); |
622 |
|
|
} |
623 |
|
|
|
624 |
|
✗ |
void hpp::core_idl::WeighedDistance_Helper::duplicate(::hpp::core_idl::WeighedDistance_ptr obj) { |
625 |
|
✗ |
if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj); |
626 |
|
|
} |
627 |
|
|
|
628 |
|
|
hpp::core_idl::WeighedDistance_ptr |
629 |
|
✗ |
hpp::core_idl::WeighedDistance::_duplicate(::hpp::core_idl::WeighedDistance_ptr obj) |
630 |
|
|
{ |
631 |
|
✗ |
if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj); |
632 |
|
✗ |
return obj; |
633 |
|
|
} |
634 |
|
|
|
635 |
|
|
hpp::core_idl::WeighedDistance_ptr |
636 |
|
✗ |
hpp::core_idl::WeighedDistance::_narrow(::CORBA::Object_ptr obj) |
637 |
|
|
{ |
638 |
|
✗ |
if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil(); |
639 |
|
✗ |
_ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId); |
640 |
|
✗ |
return e ? e : _nil(); |
641 |
|
|
} |
642 |
|
|
|
643 |
|
|
|
644 |
|
|
hpp::core_idl::WeighedDistance_ptr |
645 |
|
✗ |
hpp::core_idl::WeighedDistance::_unchecked_narrow(::CORBA::Object_ptr obj) |
646 |
|
|
{ |
647 |
|
✗ |
if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil(); |
648 |
|
✗ |
_ptr_type e = (_ptr_type) obj->_PR_getobj()->_uncheckedNarrow(_PD_repoId); |
649 |
|
✗ |
return e ? e : _nil(); |
650 |
|
|
} |
651 |
|
|
|
652 |
|
|
hpp::core_idl::WeighedDistance_ptr |
653 |
|
✗ |
hpp::core_idl::WeighedDistance::_nil() |
654 |
|
|
{ |
655 |
|
|
#ifdef OMNI_UNLOADABLE_STUBS |
656 |
|
|
static _objref_WeighedDistance _the_nil_obj; |
657 |
|
|
return &_the_nil_obj; |
658 |
|
|
#else |
659 |
|
|
static _objref_WeighedDistance* _the_nil_ptr = 0; |
660 |
|
✗ |
if (!_the_nil_ptr) { |
661 |
|
✗ |
omni::nilRefLock().lock(); |
662 |
|
✗ |
if (!_the_nil_ptr) { |
663 |
|
✗ |
_the_nil_ptr = new _objref_WeighedDistance; |
664 |
|
✗ |
registerNilCorbaObject(_the_nil_ptr); |
665 |
|
|
} |
666 |
|
✗ |
omni::nilRefLock().unlock(); |
667 |
|
|
} |
668 |
|
✗ |
return _the_nil_ptr; |
669 |
|
|
#endif |
670 |
|
|
} |
671 |
|
|
|
672 |
|
|
const char* hpp::core_idl::WeighedDistance::_PD_repoId = "IDL:hpp/core_idl/WeighedDistance:1.0"; |
673 |
|
|
|
674 |
|
|
|
675 |
|
✗ |
hpp::core_idl::_objref_WeighedDistance::~_objref_WeighedDistance() { |
676 |
|
|
|
677 |
|
|
} |
678 |
|
|
|
679 |
|
|
|
680 |
|
✗ |
hpp::core_idl::_objref_WeighedDistance::_objref_WeighedDistance(omniIOR* ior, omniIdentity* id) : |
681 |
|
|
omniObjRef(::hpp::core_idl::WeighedDistance::_PD_repoId, ior, id, 1), |
682 |
|
✗ |
_objref_Distance(ior, id) |
683 |
|
|
|
684 |
|
|
{ |
685 |
|
✗ |
_PR_setobj(this); |
686 |
|
|
} |
687 |
|
|
|
688 |
|
|
void* |
689 |
|
✗ |
hpp::core_idl::_objref_WeighedDistance::_ptrToObjRef(const char* id) |
690 |
|
|
{ |
691 |
|
✗ |
if (id == ::hpp::core_idl::WeighedDistance::_PD_repoId) |
692 |
|
✗ |
return (::hpp::core_idl::WeighedDistance_ptr) this; |
693 |
|
✗ |
if (id == ::hpp::core_idl::Distance::_PD_repoId) |
694 |
|
✗ |
return (::hpp::core_idl::Distance_ptr) this; |
695 |
|
|
|
696 |
|
|
|
697 |
|
✗ |
if (id == ::CORBA::Object::_PD_repoId) |
698 |
|
✗ |
return (::CORBA::Object_ptr) this; |
699 |
|
|
|
700 |
|
✗ |
if (omni::strMatch(id, ::hpp::core_idl::WeighedDistance::_PD_repoId)) |
701 |
|
✗ |
return (::hpp::core_idl::WeighedDistance_ptr) this; |
702 |
|
✗ |
if (omni::strMatch(id, ::hpp::core_idl::Distance::_PD_repoId)) |
703 |
|
✗ |
return (::hpp::core_idl::Distance_ptr) this; |
704 |
|
|
|
705 |
|
|
|
706 |
|
✗ |
if (omni::strMatch(id, ::CORBA::Object::_PD_repoId)) |
707 |
|
✗ |
return (::CORBA::Object_ptr) this; |
708 |
|
|
|
709 |
|
✗ |
return 0; |
710 |
|
|
} |
711 |
|
|
|
712 |
|
|
|
713 |
|
|
// |
714 |
|
|
// Code for hpp::core_idl::WeighedDistance::getWeights |
715 |
|
|
|
716 |
|
|
// Proxy call descriptor class. Mangled signature: |
717 |
|
|
// _chpp_mfloatSeq_e_chpp_mError |
718 |
|
|
class _0RL_cd_b858ed6a73860bd2_80000000 |
719 |
|
|
: public omniCallDescriptor |
720 |
|
|
{ |
721 |
|
|
public: |
722 |
|
✗ |
inline _0RL_cd_b858ed6a73860bd2_80000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0) |
723 |
|
✗ |
: omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall) |
724 |
|
|
{ |
725 |
|
|
|
726 |
|
|
} |
727 |
|
|
|
728 |
|
|
|
729 |
|
|
void unmarshalReturnedValues(cdrStream&); |
730 |
|
|
void marshalReturnedValues(cdrStream&); |
731 |
|
|
|
732 |
|
|
void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*); |
733 |
|
|
static const char* const _user_exns[]; |
734 |
|
|
|
735 |
|
|
hpp::floatSeq_var result; |
736 |
|
|
}; |
737 |
|
|
|
738 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_80000000::marshalReturnedValues(cdrStream& _n) |
739 |
|
|
{ |
740 |
|
✗ |
(const hpp::floatSeq&) result >>= _n; |
741 |
|
|
|
742 |
|
|
} |
743 |
|
|
|
744 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_80000000::unmarshalReturnedValues(cdrStream& _n) |
745 |
|
|
{ |
746 |
|
✗ |
result = new hpp::floatSeq; |
747 |
|
✗ |
(hpp::floatSeq&)result <<= _n; |
748 |
|
|
|
749 |
|
|
} |
750 |
|
|
|
751 |
|
|
const char* const _0RL_cd_b858ed6a73860bd2_80000000::_user_exns[] = { |
752 |
|
|
hpp::Error::_PD_repoId |
753 |
|
|
}; |
754 |
|
|
|
755 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_80000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId) |
756 |
|
|
{ |
757 |
|
✗ |
if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) { |
758 |
|
✗ |
hpp::Error _ex; |
759 |
|
✗ |
_ex <<= s; |
760 |
|
✗ |
if (iop_client) iop_client->RequestCompleted(); |
761 |
|
✗ |
throw _ex; |
762 |
|
|
} |
763 |
|
|
|
764 |
|
|
|
765 |
|
|
else { |
766 |
|
✗ |
if (iop_client) iop_client->RequestCompleted(1); |
767 |
|
✗ |
OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException, |
768 |
|
|
(::CORBA::CompletionStatus)s.completion()); |
769 |
|
|
} |
770 |
|
|
} |
771 |
|
|
|
772 |
|
|
// Local call call-back function. |
773 |
|
|
static void |
774 |
|
✗ |
_0RL_lcfn_b858ed6a73860bd2_90000000(omniCallDescriptor* cd, omniServant* svnt) |
775 |
|
|
{ |
776 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_80000000* tcd = (_0RL_cd_b858ed6a73860bd2_80000000*)cd; |
777 |
|
✗ |
hpp::core_idl::_impl_WeighedDistance* impl = (hpp::core_idl::_impl_WeighedDistance*) svnt->_ptrToInterface(hpp::core_idl::WeighedDistance::_PD_repoId); |
778 |
|
|
#ifdef OMNI_HAS_Cplusplus_catch_exception_by_base |
779 |
|
✗ |
tcd->result = impl->getWeights(); |
780 |
|
|
#else |
781 |
|
|
if (!cd->is_upcall()) |
782 |
|
|
tcd->result = impl->getWeights(); |
783 |
|
|
else { |
784 |
|
|
try { |
785 |
|
|
tcd->result = impl->getWeights(); |
786 |
|
|
} |
787 |
|
|
catch(hpp::Error& ex) { |
788 |
|
|
throw omniORB::StubUserException(ex._NP_duplicate()); |
789 |
|
|
} |
790 |
|
|
|
791 |
|
|
|
792 |
|
|
} |
793 |
|
|
#endif |
794 |
|
|
|
795 |
|
|
|
796 |
|
|
} |
797 |
|
|
|
798 |
|
✗ |
hpp::floatSeq* hpp::core_idl::_objref_WeighedDistance::getWeights() |
799 |
|
|
{ |
800 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_80000000 _call_desc(_0RL_lcfn_b858ed6a73860bd2_90000000, "getWeights", 11); |
801 |
|
|
|
802 |
|
|
|
803 |
|
✗ |
_invoke(_call_desc); |
804 |
|
✗ |
return _call_desc.result._retn(); |
805 |
|
|
|
806 |
|
|
|
807 |
|
|
} |
808 |
|
|
|
809 |
|
|
|
810 |
|
|
// |
811 |
|
|
// Code for hpp::core_idl::WeighedDistance::setWeights |
812 |
|
|
|
813 |
|
|
// Proxy call descriptor class. Mangled signature: |
814 |
|
|
// void_i_chpp_mfloatSeq_e_chpp_mError |
815 |
|
|
class _0RL_cd_b858ed6a73860bd2_a0000000 |
816 |
|
|
: public omniCallDescriptor |
817 |
|
|
{ |
818 |
|
|
public: |
819 |
|
✗ |
inline _0RL_cd_b858ed6a73860bd2_a0000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0) |
820 |
|
✗ |
: omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall) |
821 |
|
|
{ |
822 |
|
|
|
823 |
|
|
} |
824 |
|
|
|
825 |
|
|
void marshalArguments(cdrStream&); |
826 |
|
|
void unmarshalArguments(cdrStream&); |
827 |
|
|
|
828 |
|
|
|
829 |
|
|
void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*); |
830 |
|
|
static const char* const _user_exns[]; |
831 |
|
|
|
832 |
|
|
hpp::floatSeq_var arg_0_; |
833 |
|
|
const hpp::floatSeq* arg_0; |
834 |
|
|
}; |
835 |
|
|
|
836 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_a0000000::marshalArguments(cdrStream& _n) |
837 |
|
|
{ |
838 |
|
✗ |
(const hpp::floatSeq&) *arg_0 >>= _n; |
839 |
|
|
|
840 |
|
|
} |
841 |
|
|
|
842 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_a0000000::unmarshalArguments(cdrStream& _n) |
843 |
|
|
{ |
844 |
|
✗ |
arg_0_ = new hpp::floatSeq; |
845 |
|
✗ |
(hpp::floatSeq&)arg_0_ <<= _n; |
846 |
|
✗ |
arg_0 = &arg_0_.in(); |
847 |
|
|
|
848 |
|
|
} |
849 |
|
|
|
850 |
|
|
const char* const _0RL_cd_b858ed6a73860bd2_a0000000::_user_exns[] = { |
851 |
|
|
hpp::Error::_PD_repoId |
852 |
|
|
}; |
853 |
|
|
|
854 |
|
✗ |
void _0RL_cd_b858ed6a73860bd2_a0000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId) |
855 |
|
|
{ |
856 |
|
✗ |
if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) { |
857 |
|
✗ |
hpp::Error _ex; |
858 |
|
✗ |
_ex <<= s; |
859 |
|
✗ |
if (iop_client) iop_client->RequestCompleted(); |
860 |
|
✗ |
throw _ex; |
861 |
|
|
} |
862 |
|
|
|
863 |
|
|
|
864 |
|
|
else { |
865 |
|
✗ |
if (iop_client) iop_client->RequestCompleted(1); |
866 |
|
✗ |
OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException, |
867 |
|
|
(::CORBA::CompletionStatus)s.completion()); |
868 |
|
|
} |
869 |
|
|
} |
870 |
|
|
|
871 |
|
|
// Local call call-back function. |
872 |
|
|
static void |
873 |
|
✗ |
_0RL_lcfn_b858ed6a73860bd2_b0000000(omniCallDescriptor* cd, omniServant* svnt) |
874 |
|
|
{ |
875 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_a0000000* tcd = (_0RL_cd_b858ed6a73860bd2_a0000000*)cd; |
876 |
|
✗ |
hpp::core_idl::_impl_WeighedDistance* impl = (hpp::core_idl::_impl_WeighedDistance*) svnt->_ptrToInterface(hpp::core_idl::WeighedDistance::_PD_repoId); |
877 |
|
|
#ifdef OMNI_HAS_Cplusplus_catch_exception_by_base |
878 |
|
✗ |
impl->setWeights(*tcd->arg_0); |
879 |
|
|
#else |
880 |
|
|
if (!cd->is_upcall()) |
881 |
|
|
impl->setWeights(*tcd->arg_0); |
882 |
|
|
else { |
883 |
|
|
try { |
884 |
|
|
impl->setWeights(*tcd->arg_0); |
885 |
|
|
} |
886 |
|
|
catch(hpp::Error& ex) { |
887 |
|
|
throw omniORB::StubUserException(ex._NP_duplicate()); |
888 |
|
|
} |
889 |
|
|
|
890 |
|
|
|
891 |
|
|
} |
892 |
|
|
#endif |
893 |
|
|
|
894 |
|
|
|
895 |
|
|
} |
896 |
|
|
|
897 |
|
✗ |
void hpp::core_idl::_objref_WeighedDistance::setWeights(const ::hpp::floatSeq& weights) |
898 |
|
|
{ |
899 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_a0000000 _call_desc(_0RL_lcfn_b858ed6a73860bd2_b0000000, "setWeights", 11); |
900 |
|
✗ |
_call_desc.arg_0 = &(::hpp::floatSeq&) weights; |
901 |
|
|
|
902 |
|
✗ |
_invoke(_call_desc); |
903 |
|
|
|
904 |
|
|
|
905 |
|
|
|
906 |
|
|
} |
907 |
|
|
|
908 |
|
16 |
hpp::core_idl::_pof_WeighedDistance::~_pof_WeighedDistance() {} |
909 |
|
|
|
910 |
|
|
|
911 |
|
|
omniObjRef* |
912 |
|
✗ |
hpp::core_idl::_pof_WeighedDistance::newObjRef(omniIOR* ior, omniIdentity* id) |
913 |
|
|
{ |
914 |
|
✗ |
return new ::hpp::core_idl::_objref_WeighedDistance(ior, id); |
915 |
|
|
} |
916 |
|
|
|
917 |
|
|
|
918 |
|
|
::CORBA::Boolean |
919 |
|
✗ |
hpp::core_idl::_pof_WeighedDistance::is_a(const char* id) const |
920 |
|
|
{ |
921 |
|
✗ |
if (omni::ptrStrMatch(id, ::hpp::core_idl::WeighedDistance::_PD_repoId)) |
922 |
|
✗ |
return 1; |
923 |
|
✗ |
if (omni::ptrStrMatch(id, hpp::core_idl::Distance::_PD_repoId)) |
924 |
|
✗ |
return 1; |
925 |
|
|
|
926 |
|
|
|
927 |
|
✗ |
return 0; |
928 |
|
|
} |
929 |
|
|
|
930 |
|
|
const hpp::core_idl::_pof_WeighedDistance _the_pof_hpp_mcore__idl_mWeighedDistance; |
931 |
|
|
|
932 |
|
✗ |
hpp::core_idl::_impl_WeighedDistance::~_impl_WeighedDistance() {} |
933 |
|
|
|
934 |
|
|
|
935 |
|
|
::CORBA::Boolean |
936 |
|
✗ |
hpp::core_idl::_impl_WeighedDistance::_dispatch(omniCallHandle& _handle) |
937 |
|
|
{ |
938 |
|
✗ |
const char* op = _handle.operation_name(); |
939 |
|
|
|
940 |
|
✗ |
if (omni::strMatch(op, "getWeights")) { |
941 |
|
|
|
942 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_80000000 _call_desc(_0RL_lcfn_b858ed6a73860bd2_90000000, "getWeights", 11, 1); |
943 |
|
|
|
944 |
|
✗ |
_handle.upcall(this,_call_desc); |
945 |
|
✗ |
return 1; |
946 |
|
|
} |
947 |
|
|
|
948 |
|
✗ |
if (omni::strMatch(op, "setWeights")) { |
949 |
|
|
|
950 |
|
✗ |
_0RL_cd_b858ed6a73860bd2_a0000000 _call_desc(_0RL_lcfn_b858ed6a73860bd2_b0000000, "setWeights", 11, 1); |
951 |
|
|
|
952 |
|
✗ |
_handle.upcall(this,_call_desc); |
953 |
|
✗ |
return 1; |
954 |
|
|
} |
955 |
|
|
|
956 |
|
|
|
957 |
|
|
#ifndef _MSC_VER |
958 |
|
✗ |
if (_impl_Distance::_dispatch(_handle)) { |
959 |
|
✗ |
return 1; |
960 |
|
|
} |
961 |
|
|
#else |
962 |
|
|
// Work-around for incorrect MSVC code generation. |
963 |
|
|
if (((_impl_Distance*)this)-> |
964 |
|
|
_impl_Distance::_dispatch(_handle)) { |
965 |
|
|
return 1; |
966 |
|
|
} |
967 |
|
|
#endif |
968 |
|
|
|
969 |
|
|
|
970 |
|
✗ |
return 0; |
971 |
|
|
} |
972 |
|
|
|
973 |
|
|
void* |
974 |
|
✗ |
hpp::core_idl::_impl_WeighedDistance::_ptrToInterface(const char* id) |
975 |
|
|
{ |
976 |
|
✗ |
if (id == ::hpp::core_idl::WeighedDistance::_PD_repoId) |
977 |
|
✗ |
return (::hpp::core_idl::_impl_WeighedDistance*) this; |
978 |
|
✗ |
if (id == ::hpp::core_idl::Distance::_PD_repoId) |
979 |
|
✗ |
return (::hpp::core_idl::_impl_Distance*) this; |
980 |
|
|
|
981 |
|
|
|
982 |
|
✗ |
if (id == ::CORBA::Object::_PD_repoId) |
983 |
|
✗ |
return (void*) 1; |
984 |
|
|
|
985 |
|
✗ |
if (omni::strMatch(id, ::hpp::core_idl::WeighedDistance::_PD_repoId)) |
986 |
|
✗ |
return (::hpp::core_idl::_impl_WeighedDistance*) this; |
987 |
|
✗ |
if (omni::strMatch(id, ::hpp::core_idl::Distance::_PD_repoId)) |
988 |
|
✗ |
return (::hpp::core_idl::_impl_Distance*) this; |
989 |
|
|
|
990 |
|
|
|
991 |
|
✗ |
if (omni::strMatch(id, ::CORBA::Object::_PD_repoId)) |
992 |
|
✗ |
return (void*) 1; |
993 |
|
✗ |
return 0; |
994 |
|
|
} |
995 |
|
|
|
996 |
|
|
const char* |
997 |
|
✗ |
hpp::core_idl::_impl_WeighedDistance::_mostDerivedRepoId() |
998 |
|
|
{ |
999 |
|
✗ |
return ::hpp::core_idl::WeighedDistance::_PD_repoId; |
1000 |
|
|
} |
1001 |
|
|
|
1002 |
|
✗ |
POA_hpp::core_idl::Distance::~Distance() {} |
1003 |
|
|
|
1004 |
|
✗ |
POA_hpp::core_idl::WeighedDistance::~WeighedDistance() {} |
1005 |
|
|
|
1006 |
|
|
|