GCC Code Coverage Report


Directory: ./
File: src/hpp/core_idl/steering_methodsSK.cc
Date: 2024-09-11 11:37:19
Exec Total Coverage
Lines: 3 474 0.6%
Branches: 0 442 0.0%

Line Branch Exec Source
1 // This file is generated by omniidl (C++ backend) - omniORB_4_3. Do not edit.
2
3 #include "steering_methods-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::SteeringMethod_ptr hpp::core_idl::SteeringMethod_Helper::_nil() {
18 return ::hpp::core_idl::SteeringMethod::_nil();
19 }
20
21 ::CORBA::Boolean hpp::core_idl::SteeringMethod_Helper::is_nil(::hpp::core_idl::SteeringMethod_ptr p) {
22 return ::CORBA::is_nil(p);
23
24 }
25
26 void hpp::core_idl::SteeringMethod_Helper::release(::hpp::core_idl::SteeringMethod_ptr p) {
27 ::CORBA::release(p);
28 }
29
30 void hpp::core_idl::SteeringMethod_Helper::marshalObjRef(::hpp::core_idl::SteeringMethod_ptr obj, cdrStream& s) {
31 ::hpp::core_idl::SteeringMethod::_marshalObjRef(obj, s);
32 }
33
34 hpp::core_idl::SteeringMethod_ptr hpp::core_idl::SteeringMethod_Helper::unmarshalObjRef(cdrStream& s) {
35 return ::hpp::core_idl::SteeringMethod::_unmarshalObjRef(s);
36 }
37
38 void hpp::core_idl::SteeringMethod_Helper::duplicate(::hpp::core_idl::SteeringMethod_ptr obj) {
39 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
40 }
41
42 hpp::core_idl::SteeringMethod_ptr
43 hpp::core_idl::SteeringMethod::_duplicate(::hpp::core_idl::SteeringMethod_ptr obj)
44 {
45 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
46 return obj;
47 }
48
49 hpp::core_idl::SteeringMethod_ptr
50 hpp::core_idl::SteeringMethod::_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::SteeringMethod_ptr
59 hpp::core_idl::SteeringMethod::_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::SteeringMethod_ptr
67 hpp::core_idl::SteeringMethod::_nil()
68 {
69 #ifdef OMNI_UNLOADABLE_STUBS
70 static _objref_SteeringMethod _the_nil_obj;
71 return &_the_nil_obj;
72 #else
73 static _objref_SteeringMethod* _the_nil_ptr = 0;
74 if (!_the_nil_ptr) {
75 omni::nilRefLock().lock();
76 if (!_the_nil_ptr) {
77 _the_nil_ptr = new _objref_SteeringMethod;
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::SteeringMethod::_PD_repoId = "IDL:hpp/core_idl/SteeringMethod:1.0";
87
88
89 hpp::core_idl::_objref_SteeringMethod::~_objref_SteeringMethod() {
90
91 }
92
93
94 hpp::core_idl::_objref_SteeringMethod::_objref_SteeringMethod(omniIOR* ior, omniIdentity* id) :
95 omniObjRef(::hpp::core_idl::SteeringMethod::_PD_repoId, ior, id, 1)
96
97
98 {
99 _PR_setobj(this);
100 }
101
102 void*
103 hpp::core_idl::_objref_SteeringMethod::_ptrToObjRef(const char* id)
104 {
105 if (id == ::hpp::core_idl::SteeringMethod::_PD_repoId)
106 return (::hpp::core_idl::SteeringMethod_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::SteeringMethod::_PD_repoId))
112 return (::hpp::core_idl::SteeringMethod_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::SteeringMethod::deleteThis
123
124 // Proxy call descriptor class. Mangled signature:
125 // void_e_chpp_mError
126 class _0RL_cd_52839a54dfb010c7_00000000
127 : public omniCallDescriptor
128 {
129 public:
130 inline _0RL_cd_52839a54dfb010c7_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_52839a54dfb010c7_00000000::_user_exns[] = {
145 hpp::Error::_PD_repoId
146 };
147
148 void _0RL_cd_52839a54dfb010c7_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_52839a54dfb010c7_10000000(omniCallDescriptor* _OMNIORB_EX_ONLY_CD(cd), omniServant* svnt)
168 {
169
170 hpp::core_idl::_impl_SteeringMethod* impl = (hpp::core_idl::_impl_SteeringMethod*) svnt->_ptrToInterface(hpp::core_idl::SteeringMethod::_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_SteeringMethod::deleteThis()
192 {
193 _0RL_cd_52839a54dfb010c7_00000000 _call_desc(_0RL_lcfn_52839a54dfb010c7_10000000, "deleteThis", 11);
194
195
196 _invoke(_call_desc);
197
198
199
200 }
201
202
203 //
204 // Code for hpp::core_idl::SteeringMethod::deleteIfExpired
205
206 // Proxy call descriptor class. Mangled signature:
207 // _cboolean_e_chpp_mError
208 class _0RL_cd_52839a54dfb010c7_20000000
209 : public omniCallDescriptor
210 {
211 public:
212 inline _0RL_cd_52839a54dfb010c7_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_52839a54dfb010c7_20000000::marshalReturnedValues(cdrStream& _n)
229 {
230 _n.marshalBoolean(result);
231
232 }
233
234 void _0RL_cd_52839a54dfb010c7_20000000::unmarshalReturnedValues(cdrStream& _n)
235 {
236 result = _n.unmarshalBoolean();
237
238 }
239
240 const char* const _0RL_cd_52839a54dfb010c7_20000000::_user_exns[] = {
241 hpp::Error::_PD_repoId
242 };
243
244 void _0RL_cd_52839a54dfb010c7_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_52839a54dfb010c7_30000000(omniCallDescriptor* cd, omniServant* svnt)
264 {
265 _0RL_cd_52839a54dfb010c7_20000000* tcd = (_0RL_cd_52839a54dfb010c7_20000000*)cd;
266 hpp::core_idl::_impl_SteeringMethod* impl = (hpp::core_idl::_impl_SteeringMethod*) svnt->_ptrToInterface(hpp::core_idl::SteeringMethod::_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_SteeringMethod::deleteIfExpired()
288 {
289 _0RL_cd_52839a54dfb010c7_20000000 _call_desc(_0RL_lcfn_52839a54dfb010c7_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::SteeringMethod::persistantStorage
301
302 // Proxy call descriptor class. Mangled signature:
303 // void_i_cboolean_e_chpp_mError
304 class _0RL_cd_52839a54dfb010c7_40000000
305 : public omniCallDescriptor
306 {
307 public:
308 inline _0RL_cd_52839a54dfb010c7_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_52839a54dfb010c7_40000000::marshalArguments(cdrStream& _n)
325 {
326 _n.marshalBoolean(arg_0);
327
328 }
329
330 void _0RL_cd_52839a54dfb010c7_40000000::unmarshalArguments(cdrStream& _n)
331 {
332 arg_0 = _n.unmarshalBoolean();
333
334 }
335
336 const char* const _0RL_cd_52839a54dfb010c7_40000000::_user_exns[] = {
337 hpp::Error::_PD_repoId
338 };
339
340 void _0RL_cd_52839a54dfb010c7_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_52839a54dfb010c7_50000000(omniCallDescriptor* cd, omniServant* svnt)
360 {
361 _0RL_cd_52839a54dfb010c7_40000000* tcd = (_0RL_cd_52839a54dfb010c7_40000000*)cd;
362 hpp::core_idl::_impl_SteeringMethod* impl = (hpp::core_idl::_impl_SteeringMethod*) svnt->_ptrToInterface(hpp::core_idl::SteeringMethod::_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_SteeringMethod::persistantStorage(::CORBA::Boolean persistant)
384 {
385 _0RL_cd_52839a54dfb010c7_40000000 _call_desc(_0RL_lcfn_52839a54dfb010c7_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::SteeringMethod::call
397
398 // Proxy call descriptor class. Mangled signature:
399 // _chpp_mcore__idl_mPath_i_chpp_mfloatSeq_i_chpp_mfloatSeq_e_chpp_mError
400 class _0RL_cd_52839a54dfb010c7_60000000
401 : public omniCallDescriptor
402 {
403 public:
404 inline _0RL_cd_52839a54dfb010c7_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::core_idl::Path_var result;
424 };
425
426 void _0RL_cd_52839a54dfb010c7_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_52839a54dfb010c7_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_52839a54dfb010c7_60000000::marshalReturnedValues(cdrStream& _n)
445 {
446 hpp::core_idl::Path::_marshalObjRef(result,_n);
447
448 }
449
450 void _0RL_cd_52839a54dfb010c7_60000000::unmarshalReturnedValues(cdrStream& _n)
451 {
452 result = hpp::core_idl::Path::_unmarshalObjRef(_n);
453
454 }
455
456 const char* const _0RL_cd_52839a54dfb010c7_60000000::_user_exns[] = {
457 hpp::Error::_PD_repoId
458 };
459
460 void _0RL_cd_52839a54dfb010c7_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_52839a54dfb010c7_70000000(omniCallDescriptor* cd, omniServant* svnt)
480 {
481 _0RL_cd_52839a54dfb010c7_60000000* tcd = (_0RL_cd_52839a54dfb010c7_60000000*)cd;
482 hpp::core_idl::_impl_SteeringMethod* impl = (hpp::core_idl::_impl_SteeringMethod*) svnt->_ptrToInterface(hpp::core_idl::SteeringMethod::_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::core_idl::Path_ptr hpp::core_idl::_objref_SteeringMethod::call(const ::hpp::floatSeq& q1, const ::hpp::floatSeq& q2)
504 {
505 _0RL_cd_52839a54dfb010c7_60000000 _call_desc(_0RL_lcfn_52839a54dfb010c7_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._retn();
511
512
513 }
514
515
516 //
517 // Code for hpp::core_idl::SteeringMethod::setConstraints
518
519 // Proxy call descriptor class. Mangled signature:
520 // void_i_chpp_mcore__idl_mConstraintSet_e_chpp_mError
521 class _0RL_cd_52839a54dfb010c7_80000000
522 : public omniCallDescriptor
523 {
524 public:
525 inline _0RL_cd_52839a54dfb010c7_80000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
526 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
527 {
528
529 }
530
531 void marshalArguments(cdrStream&);
532 void unmarshalArguments(cdrStream&);
533
534
535 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
536 static const char* const _user_exns[];
537
538 hpp::core_idl::ConstraintSet_var arg_0_;
539 hpp::core_idl::ConstraintSet_ptr arg_0;
540 };
541
542 void _0RL_cd_52839a54dfb010c7_80000000::marshalArguments(cdrStream& _n)
543 {
544 hpp::core_idl::ConstraintSet_Helper::marshalObjRef(arg_0,_n);
545
546 }
547
548 void _0RL_cd_52839a54dfb010c7_80000000::unmarshalArguments(cdrStream& _n)
549 {
550 arg_0_ = hpp::core_idl::ConstraintSet_Helper::unmarshalObjRef(_n);
551 arg_0 = arg_0_.in();
552
553 }
554
555 const char* const _0RL_cd_52839a54dfb010c7_80000000::_user_exns[] = {
556 hpp::Error::_PD_repoId
557 };
558
559 void _0RL_cd_52839a54dfb010c7_80000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
560 {
561 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
562 hpp::Error _ex;
563 _ex <<= s;
564 if (iop_client) iop_client->RequestCompleted();
565 throw _ex;
566 }
567
568
569 else {
570 if (iop_client) iop_client->RequestCompleted(1);
571 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
572 (::CORBA::CompletionStatus)s.completion());
573 }
574 }
575
576 // Local call call-back function.
577 static void
578 _0RL_lcfn_52839a54dfb010c7_90000000(omniCallDescriptor* cd, omniServant* svnt)
579 {
580 _0RL_cd_52839a54dfb010c7_80000000* tcd = (_0RL_cd_52839a54dfb010c7_80000000*)cd;
581 hpp::core_idl::_impl_SteeringMethod* impl = (hpp::core_idl::_impl_SteeringMethod*) svnt->_ptrToInterface(hpp::core_idl::SteeringMethod::_PD_repoId);
582 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
583 impl->setConstraints(tcd->arg_0);
584 #else
585 if (!cd->is_upcall())
586 impl->setConstraints(tcd->arg_0);
587 else {
588 try {
589 impl->setConstraints(tcd->arg_0);
590 }
591 catch(hpp::Error& ex) {
592 throw omniORB::StubUserException(ex._NP_duplicate());
593 }
594
595
596 }
597 #endif
598
599
600 }
601
602 void hpp::core_idl::_objref_SteeringMethod::setConstraints(::hpp::core_idl::ConstraintSet_ptr constraints)
603 {
604 _0RL_cd_52839a54dfb010c7_80000000 _call_desc(_0RL_lcfn_52839a54dfb010c7_90000000, "setConstraints", 15);
605 _call_desc.arg_0 = constraints;
606
607 _invoke(_call_desc);
608
609
610
611 }
612
613
614 //
615 // Code for hpp::core_idl::SteeringMethod::getConstraints
616
617 // Proxy call descriptor class. Mangled signature:
618 // _chpp_mcore__idl_mConstraint_e_chpp_mError
619 class _0RL_cd_52839a54dfb010c7_a0000000
620 : public omniCallDescriptor
621 {
622 public:
623 inline _0RL_cd_52839a54dfb010c7_a0000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
624 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
625 {
626
627 }
628
629
630 void unmarshalReturnedValues(cdrStream&);
631 void marshalReturnedValues(cdrStream&);
632
633 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
634 static const char* const _user_exns[];
635
636 hpp::core_idl::Constraint_var result;
637 };
638
639 void _0RL_cd_52839a54dfb010c7_a0000000::marshalReturnedValues(cdrStream& _n)
640 {
641 hpp::core_idl::Constraint::_marshalObjRef(result,_n);
642
643 }
644
645 void _0RL_cd_52839a54dfb010c7_a0000000::unmarshalReturnedValues(cdrStream& _n)
646 {
647 result = hpp::core_idl::Constraint::_unmarshalObjRef(_n);
648
649 }
650
651 const char* const _0RL_cd_52839a54dfb010c7_a0000000::_user_exns[] = {
652 hpp::Error::_PD_repoId
653 };
654
655 void _0RL_cd_52839a54dfb010c7_a0000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
656 {
657 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
658 hpp::Error _ex;
659 _ex <<= s;
660 if (iop_client) iop_client->RequestCompleted();
661 throw _ex;
662 }
663
664
665 else {
666 if (iop_client) iop_client->RequestCompleted(1);
667 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
668 (::CORBA::CompletionStatus)s.completion());
669 }
670 }
671
672 // Local call call-back function.
673 static void
674 _0RL_lcfn_52839a54dfb010c7_b0000000(omniCallDescriptor* cd, omniServant* svnt)
675 {
676 _0RL_cd_52839a54dfb010c7_a0000000* tcd = (_0RL_cd_52839a54dfb010c7_a0000000*)cd;
677 hpp::core_idl::_impl_SteeringMethod* impl = (hpp::core_idl::_impl_SteeringMethod*) svnt->_ptrToInterface(hpp::core_idl::SteeringMethod::_PD_repoId);
678 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
679 tcd->result = impl->getConstraints();
680 #else
681 if (!cd->is_upcall())
682 tcd->result = impl->getConstraints();
683 else {
684 try {
685 tcd->result = impl->getConstraints();
686 }
687 catch(hpp::Error& ex) {
688 throw omniORB::StubUserException(ex._NP_duplicate());
689 }
690
691
692 }
693 #endif
694
695
696 }
697
698 hpp::core_idl::Constraint_ptr hpp::core_idl::_objref_SteeringMethod::getConstraints()
699 {
700 _0RL_cd_52839a54dfb010c7_a0000000 _call_desc(_0RL_lcfn_52839a54dfb010c7_b0000000, "getConstraints", 15);
701
702
703 _invoke(_call_desc);
704 return _call_desc.result._retn();
705
706
707 }
708
709 16 hpp::core_idl::_pof_SteeringMethod::~_pof_SteeringMethod() {}
710
711
712 omniObjRef*
713 hpp::core_idl::_pof_SteeringMethod::newObjRef(omniIOR* ior, omniIdentity* id)
714 {
715 return new ::hpp::core_idl::_objref_SteeringMethod(ior, id);
716 }
717
718
719 ::CORBA::Boolean
720 hpp::core_idl::_pof_SteeringMethod::is_a(const char* id) const
721 {
722 if (omni::ptrStrMatch(id, ::hpp::core_idl::SteeringMethod::_PD_repoId))
723 return 1;
724
725 return 0;
726 }
727
728 const hpp::core_idl::_pof_SteeringMethod _the_pof_hpp_mcore__idl_mSteeringMethod;
729
730 hpp::core_idl::_impl_SteeringMethod::~_impl_SteeringMethod() {}
731
732
733 ::CORBA::Boolean
734 hpp::core_idl::_impl_SteeringMethod::_dispatch(omniCallHandle& _handle)
735 {
736 const char* op = _handle.operation_name();
737
738 if (omni::strMatch(op, "deleteThis")) {
739
740 _0RL_cd_52839a54dfb010c7_00000000 _call_desc(_0RL_lcfn_52839a54dfb010c7_10000000, "deleteThis", 11, 1);
741
742 _handle.upcall(this,_call_desc);
743 return 1;
744 }
745
746 if (omni::strMatch(op, "deleteIfExpired")) {
747
748 _0RL_cd_52839a54dfb010c7_20000000 _call_desc(_0RL_lcfn_52839a54dfb010c7_30000000, "deleteIfExpired", 16, 1);
749
750 _handle.upcall(this,_call_desc);
751 return 1;
752 }
753
754 if (omni::strMatch(op, "persistantStorage")) {
755
756 _0RL_cd_52839a54dfb010c7_40000000 _call_desc(_0RL_lcfn_52839a54dfb010c7_50000000, "persistantStorage", 18, 1);
757
758 _handle.upcall(this,_call_desc);
759 return 1;
760 }
761
762 if (omni::strMatch(op, "call")) {
763
764 _0RL_cd_52839a54dfb010c7_60000000 _call_desc(_0RL_lcfn_52839a54dfb010c7_70000000, "call", 5, 1);
765
766 _handle.upcall(this,_call_desc);
767 return 1;
768 }
769
770 if (omni::strMatch(op, "setConstraints")) {
771
772 _0RL_cd_52839a54dfb010c7_80000000 _call_desc(_0RL_lcfn_52839a54dfb010c7_90000000, "setConstraints", 15, 1);
773
774 _handle.upcall(this,_call_desc);
775 return 1;
776 }
777
778 if (omni::strMatch(op, "getConstraints")) {
779
780 _0RL_cd_52839a54dfb010c7_a0000000 _call_desc(_0RL_lcfn_52839a54dfb010c7_b0000000, "getConstraints", 15, 1);
781
782 _handle.upcall(this,_call_desc);
783 return 1;
784 }
785
786
787 return 0;
788 }
789
790 void*
791 hpp::core_idl::_impl_SteeringMethod::_ptrToInterface(const char* id)
792 {
793 if (id == ::hpp::core_idl::SteeringMethod::_PD_repoId)
794 return (::hpp::core_idl::_impl_SteeringMethod*) this;
795
796 if (id == ::CORBA::Object::_PD_repoId)
797 return (void*) 1;
798
799 if (omni::strMatch(id, ::hpp::core_idl::SteeringMethod::_PD_repoId))
800 return (::hpp::core_idl::_impl_SteeringMethod*) this;
801
802 if (omni::strMatch(id, ::CORBA::Object::_PD_repoId))
803 return (void*) 1;
804 return 0;
805 }
806
807 const char*
808 hpp::core_idl::_impl_SteeringMethod::_mostDerivedRepoId()
809 {
810 return ::hpp::core_idl::SteeringMethod::_PD_repoId;
811 }
812
813 hpp::core_idl::steeringMethod_idl::SplineBernstein3_ptr hpp::core_idl::steeringMethod_idl::SplineBernstein3_Helper::_nil() {
814 return ::hpp::core_idl::steeringMethod_idl::SplineBernstein3::_nil();
815 }
816
817 ::CORBA::Boolean hpp::core_idl::steeringMethod_idl::SplineBernstein3_Helper::is_nil(::hpp::core_idl::steeringMethod_idl::SplineBernstein3_ptr p) {
818 return ::CORBA::is_nil(p);
819
820 }
821
822 void hpp::core_idl::steeringMethod_idl::SplineBernstein3_Helper::release(::hpp::core_idl::steeringMethod_idl::SplineBernstein3_ptr p) {
823 ::CORBA::release(p);
824 }
825
826 void hpp::core_idl::steeringMethod_idl::SplineBernstein3_Helper::marshalObjRef(::hpp::core_idl::steeringMethod_idl::SplineBernstein3_ptr obj, cdrStream& s) {
827 ::hpp::core_idl::steeringMethod_idl::SplineBernstein3::_marshalObjRef(obj, s);
828 }
829
830 hpp::core_idl::steeringMethod_idl::SplineBernstein3_ptr hpp::core_idl::steeringMethod_idl::SplineBernstein3_Helper::unmarshalObjRef(cdrStream& s) {
831 return ::hpp::core_idl::steeringMethod_idl::SplineBernstein3::_unmarshalObjRef(s);
832 }
833
834 void hpp::core_idl::steeringMethod_idl::SplineBernstein3_Helper::duplicate(::hpp::core_idl::steeringMethod_idl::SplineBernstein3_ptr obj) {
835 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
836 }
837
838 hpp::core_idl::steeringMethod_idl::SplineBernstein3_ptr
839 hpp::core_idl::steeringMethod_idl::SplineBernstein3::_duplicate(::hpp::core_idl::steeringMethod_idl::SplineBernstein3_ptr obj)
840 {
841 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
842 return obj;
843 }
844
845 hpp::core_idl::steeringMethod_idl::SplineBernstein3_ptr
846 hpp::core_idl::steeringMethod_idl::SplineBernstein3::_narrow(::CORBA::Object_ptr obj)
847 {
848 if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil();
849 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId);
850 return e ? e : _nil();
851 }
852
853
854 hpp::core_idl::steeringMethod_idl::SplineBernstein3_ptr
855 hpp::core_idl::steeringMethod_idl::SplineBernstein3::_unchecked_narrow(::CORBA::Object_ptr obj)
856 {
857 if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil();
858 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_uncheckedNarrow(_PD_repoId);
859 return e ? e : _nil();
860 }
861
862 hpp::core_idl::steeringMethod_idl::SplineBernstein3_ptr
863 hpp::core_idl::steeringMethod_idl::SplineBernstein3::_nil()
864 {
865 #ifdef OMNI_UNLOADABLE_STUBS
866 static _objref_SplineBernstein3 _the_nil_obj;
867 return &_the_nil_obj;
868 #else
869 static _objref_SplineBernstein3* _the_nil_ptr = 0;
870 if (!_the_nil_ptr) {
871 omni::nilRefLock().lock();
872 if (!_the_nil_ptr) {
873 _the_nil_ptr = new _objref_SplineBernstein3;
874 registerNilCorbaObject(_the_nil_ptr);
875 }
876 omni::nilRefLock().unlock();
877 }
878 return _the_nil_ptr;
879 #endif
880 }
881
882 const char* hpp::core_idl::steeringMethod_idl::SplineBernstein3::_PD_repoId = "IDL:hpp/core_idl/steeringMethod_idl/SplineBernstein3:1.0";
883
884
885 hpp::core_idl::steeringMethod_idl::_objref_SplineBernstein3::~_objref_SplineBernstein3() {
886
887 }
888
889
890 hpp::core_idl::steeringMethod_idl::_objref_SplineBernstein3::_objref_SplineBernstein3(omniIOR* ior, omniIdentity* id) :
891 omniObjRef(::hpp::core_idl::steeringMethod_idl::SplineBernstein3::_PD_repoId, ior, id, 1),
892 _objref_SteeringMethod(ior, id)
893
894 {
895 _PR_setobj(this);
896 }
897
898 void*
899 hpp::core_idl::steeringMethod_idl::_objref_SplineBernstein3::_ptrToObjRef(const char* id)
900 {
901 if (id == ::hpp::core_idl::steeringMethod_idl::SplineBernstein3::_PD_repoId)
902 return (::hpp::core_idl::steeringMethod_idl::SplineBernstein3_ptr) this;
903 if (id == ::hpp::core_idl::SteeringMethod::_PD_repoId)
904 return (::hpp::core_idl::SteeringMethod_ptr) this;
905
906
907 if (id == ::CORBA::Object::_PD_repoId)
908 return (::CORBA::Object_ptr) this;
909
910 if (omni::strMatch(id, ::hpp::core_idl::steeringMethod_idl::SplineBernstein3::_PD_repoId))
911 return (::hpp::core_idl::steeringMethod_idl::SplineBernstein3_ptr) this;
912 if (omni::strMatch(id, ::hpp::core_idl::SteeringMethod::_PD_repoId))
913 return (::hpp::core_idl::SteeringMethod_ptr) this;
914
915
916 if (omni::strMatch(id, ::CORBA::Object::_PD_repoId))
917 return (::CORBA::Object_ptr) this;
918
919 return 0;
920 }
921
922
923 //
924 // Code for hpp::core_idl::steeringMethod_idl::SplineBernstein3::steer
925
926 // Proxy call descriptor class. Mangled signature:
927 // _chpp_mcore__idl_mPath_i_chpp_mfloatSeq_i_chpp_mintSeq_i_chpp_mfloatSeqSeq_i_chpp_mfloatSeq_i_chpp_mintSeq_i_chpp_mfloatSeqSeq_i_cfloat_e_chpp_mError
928 class _0RL_cd_52839a54dfb010c7_c0000000
929 : public omniCallDescriptor
930 {
931 public:
932 inline _0RL_cd_52839a54dfb010c7_c0000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
933 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
934 {
935
936 }
937
938 void marshalArguments(cdrStream&);
939 void unmarshalArguments(cdrStream&);
940
941 void unmarshalReturnedValues(cdrStream&);
942 void marshalReturnedValues(cdrStream&);
943
944 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
945 static const char* const _user_exns[];
946
947 hpp::floatSeq_var arg_0_;
948 const hpp::floatSeq* arg_0;
949 hpp::intSeq_var arg_1_;
950 const hpp::intSeq* arg_1;
951 hpp::floatSeqSeq_var arg_2_;
952 const hpp::floatSeqSeq* arg_2;
953 hpp::floatSeq_var arg_3_;
954 const hpp::floatSeq* arg_3;
955 hpp::intSeq_var arg_4_;
956 const hpp::intSeq* arg_4;
957 hpp::floatSeqSeq_var arg_5_;
958 const hpp::floatSeqSeq* arg_5;
959 ::CORBA::Float arg_6;
960 hpp::core_idl::Path_var result;
961 };
962
963 void _0RL_cd_52839a54dfb010c7_c0000000::marshalArguments(cdrStream& _n)
964 {
965 (const hpp::floatSeq&) *arg_0 >>= _n;
966 (const hpp::intSeq&) *arg_1 >>= _n;
967 (const hpp::floatSeqSeq&) *arg_2 >>= _n;
968 (const hpp::floatSeq&) *arg_3 >>= _n;
969 (const hpp::intSeq&) *arg_4 >>= _n;
970 (const hpp::floatSeqSeq&) *arg_5 >>= _n;
971 arg_6 >>= _n;
972
973 }
974
975 void _0RL_cd_52839a54dfb010c7_c0000000::unmarshalArguments(cdrStream& _n)
976 {
977 arg_0_ = new hpp::floatSeq;
978 (hpp::floatSeq&)arg_0_ <<= _n;
979 arg_0 = &arg_0_.in();
980 arg_1_ = new hpp::intSeq;
981 (hpp::intSeq&)arg_1_ <<= _n;
982 arg_1 = &arg_1_.in();
983 arg_2_ = new hpp::floatSeqSeq;
984 (hpp::floatSeqSeq&)arg_2_ <<= _n;
985 arg_2 = &arg_2_.in();
986 arg_3_ = new hpp::floatSeq;
987 (hpp::floatSeq&)arg_3_ <<= _n;
988 arg_3 = &arg_3_.in();
989 arg_4_ = new hpp::intSeq;
990 (hpp::intSeq&)arg_4_ <<= _n;
991 arg_4 = &arg_4_.in();
992 arg_5_ = new hpp::floatSeqSeq;
993 (hpp::floatSeqSeq&)arg_5_ <<= _n;
994 arg_5 = &arg_5_.in();
995 (::CORBA::Float&)arg_6 <<= _n;
996
997 }
998
999 void _0RL_cd_52839a54dfb010c7_c0000000::marshalReturnedValues(cdrStream& _n)
1000 {
1001 hpp::core_idl::Path::_marshalObjRef(result,_n);
1002
1003 }
1004
1005 void _0RL_cd_52839a54dfb010c7_c0000000::unmarshalReturnedValues(cdrStream& _n)
1006 {
1007 result = hpp::core_idl::Path::_unmarshalObjRef(_n);
1008
1009 }
1010
1011 const char* const _0RL_cd_52839a54dfb010c7_c0000000::_user_exns[] = {
1012 hpp::Error::_PD_repoId
1013 };
1014
1015 void _0RL_cd_52839a54dfb010c7_c0000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
1016 {
1017 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
1018 hpp::Error _ex;
1019 _ex <<= s;
1020 if (iop_client) iop_client->RequestCompleted();
1021 throw _ex;
1022 }
1023
1024
1025 else {
1026 if (iop_client) iop_client->RequestCompleted(1);
1027 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
1028 (::CORBA::CompletionStatus)s.completion());
1029 }
1030 }
1031
1032 // Local call call-back function.
1033 static void
1034 _0RL_lcfn_52839a54dfb010c7_d0000000(omniCallDescriptor* cd, omniServant* svnt)
1035 {
1036 _0RL_cd_52839a54dfb010c7_c0000000* tcd = (_0RL_cd_52839a54dfb010c7_c0000000*)cd;
1037 hpp::core_idl::steeringMethod_idl::_impl_SplineBernstein3* impl = (hpp::core_idl::steeringMethod_idl::_impl_SplineBernstein3*) svnt->_ptrToInterface(hpp::core_idl::steeringMethod_idl::SplineBernstein3::_PD_repoId);
1038 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1039 tcd->result = impl->steer(*tcd->arg_0, *tcd->arg_1, *tcd->arg_2, *tcd->arg_3, *tcd->arg_4, *tcd->arg_5, tcd->arg_6);
1040 #else
1041 if (!cd->is_upcall())
1042 tcd->result = impl->steer(*tcd->arg_0, *tcd->arg_1, *tcd->arg_2, *tcd->arg_3, *tcd->arg_4, *tcd->arg_5, tcd->arg_6);
1043 else {
1044 try {
1045 tcd->result = impl->steer(*tcd->arg_0, *tcd->arg_1, *tcd->arg_2, *tcd->arg_3, *tcd->arg_4, *tcd->arg_5, tcd->arg_6);
1046 }
1047 catch(hpp::Error& ex) {
1048 throw omniORB::StubUserException(ex._NP_duplicate());
1049 }
1050
1051
1052 }
1053 #endif
1054
1055
1056 }
1057
1058 hpp::core_idl::Path_ptr hpp::core_idl::steeringMethod_idl::_objref_SplineBernstein3::steer(const ::hpp::floatSeq& q1, const ::hpp::intSeq& order1, const ::hpp::floatSeqSeq& derivatives1, const ::hpp::floatSeq& q2, const ::hpp::intSeq& order2, const ::hpp::floatSeqSeq& derivatives2, ::CORBA::Float length)
1059 {
1060 _0RL_cd_52839a54dfb010c7_c0000000 _call_desc(_0RL_lcfn_52839a54dfb010c7_d0000000, "steer", 6);
1061 _call_desc.arg_0 = &(::hpp::floatSeq&) q1;
1062 _call_desc.arg_1 = &(::hpp::intSeq&) order1;
1063 _call_desc.arg_2 = &(::hpp::floatSeqSeq&) derivatives1;
1064 _call_desc.arg_3 = &(::hpp::floatSeq&) q2;
1065 _call_desc.arg_4 = &(::hpp::intSeq&) order2;
1066 _call_desc.arg_5 = &(::hpp::floatSeqSeq&) derivatives2;
1067 _call_desc.arg_6 = length;
1068
1069 _invoke(_call_desc);
1070 return _call_desc.result._retn();
1071
1072
1073 }
1074
1075 16 hpp::core_idl::steeringMethod_idl::_pof_SplineBernstein3::~_pof_SplineBernstein3() {}
1076
1077
1078 omniObjRef*
1079 hpp::core_idl::steeringMethod_idl::_pof_SplineBernstein3::newObjRef(omniIOR* ior, omniIdentity* id)
1080 {
1081 return new ::hpp::core_idl::steeringMethod_idl::_objref_SplineBernstein3(ior, id);
1082 }
1083
1084
1085 ::CORBA::Boolean
1086 hpp::core_idl::steeringMethod_idl::_pof_SplineBernstein3::is_a(const char* id) const
1087 {
1088 if (omni::ptrStrMatch(id, ::hpp::core_idl::steeringMethod_idl::SplineBernstein3::_PD_repoId))
1089 return 1;
1090 if (omni::ptrStrMatch(id, hpp::core_idl::SteeringMethod::_PD_repoId))
1091 return 1;
1092
1093
1094 return 0;
1095 }
1096
1097 const hpp::core_idl::steeringMethod_idl::_pof_SplineBernstein3 _the_pof_hpp_mcore__idl_msteeringMethod__idl_mSplineBernstein3;
1098
1099 hpp::core_idl::steeringMethod_idl::_impl_SplineBernstein3::~_impl_SplineBernstein3() {}
1100
1101
1102 ::CORBA::Boolean
1103 hpp::core_idl::steeringMethod_idl::_impl_SplineBernstein3::_dispatch(omniCallHandle& _handle)
1104 {
1105 const char* op = _handle.operation_name();
1106
1107 if (omni::strMatch(op, "steer")) {
1108
1109 _0RL_cd_52839a54dfb010c7_c0000000 _call_desc(_0RL_lcfn_52839a54dfb010c7_d0000000, "steer", 6, 1);
1110
1111 _handle.upcall(this,_call_desc);
1112 return 1;
1113 }
1114
1115
1116 #ifndef _MSC_VER
1117 if (_impl_SteeringMethod::_dispatch(_handle)) {
1118 return 1;
1119 }
1120 #else
1121 // Work-around for incorrect MSVC code generation.
1122 if (((_impl_SteeringMethod*)this)->
1123 _impl_SteeringMethod::_dispatch(_handle)) {
1124 return 1;
1125 }
1126 #endif
1127
1128
1129 return 0;
1130 }
1131
1132 void*
1133 hpp::core_idl::steeringMethod_idl::_impl_SplineBernstein3::_ptrToInterface(const char* id)
1134 {
1135 if (id == ::hpp::core_idl::steeringMethod_idl::SplineBernstein3::_PD_repoId)
1136 return (::hpp::core_idl::steeringMethod_idl::_impl_SplineBernstein3*) this;
1137 if (id == ::hpp::core_idl::SteeringMethod::_PD_repoId)
1138 return (::hpp::core_idl::_impl_SteeringMethod*) this;
1139
1140
1141 if (id == ::CORBA::Object::_PD_repoId)
1142 return (void*) 1;
1143
1144 if (omni::strMatch(id, ::hpp::core_idl::steeringMethod_idl::SplineBernstein3::_PD_repoId))
1145 return (::hpp::core_idl::steeringMethod_idl::_impl_SplineBernstein3*) this;
1146 if (omni::strMatch(id, ::hpp::core_idl::SteeringMethod::_PD_repoId))
1147 return (::hpp::core_idl::_impl_SteeringMethod*) this;
1148
1149
1150 if (omni::strMatch(id, ::CORBA::Object::_PD_repoId))
1151 return (void*) 1;
1152 return 0;
1153 }
1154
1155 const char*
1156 hpp::core_idl::steeringMethod_idl::_impl_SplineBernstein3::_mostDerivedRepoId()
1157 {
1158 return ::hpp::core_idl::steeringMethod_idl::SplineBernstein3::_PD_repoId;
1159 }
1160
1161 hpp::core_idl::steeringMethod_idl::SplineBernstein5_ptr hpp::core_idl::steeringMethod_idl::SplineBernstein5_Helper::_nil() {
1162 return ::hpp::core_idl::steeringMethod_idl::SplineBernstein5::_nil();
1163 }
1164
1165 ::CORBA::Boolean hpp::core_idl::steeringMethod_idl::SplineBernstein5_Helper::is_nil(::hpp::core_idl::steeringMethod_idl::SplineBernstein5_ptr p) {
1166 return ::CORBA::is_nil(p);
1167
1168 }
1169
1170 void hpp::core_idl::steeringMethod_idl::SplineBernstein5_Helper::release(::hpp::core_idl::steeringMethod_idl::SplineBernstein5_ptr p) {
1171 ::CORBA::release(p);
1172 }
1173
1174 void hpp::core_idl::steeringMethod_idl::SplineBernstein5_Helper::marshalObjRef(::hpp::core_idl::steeringMethod_idl::SplineBernstein5_ptr obj, cdrStream& s) {
1175 ::hpp::core_idl::steeringMethod_idl::SplineBernstein5::_marshalObjRef(obj, s);
1176 }
1177
1178 hpp::core_idl::steeringMethod_idl::SplineBernstein5_ptr hpp::core_idl::steeringMethod_idl::SplineBernstein5_Helper::unmarshalObjRef(cdrStream& s) {
1179 return ::hpp::core_idl::steeringMethod_idl::SplineBernstein5::_unmarshalObjRef(s);
1180 }
1181
1182 void hpp::core_idl::steeringMethod_idl::SplineBernstein5_Helper::duplicate(::hpp::core_idl::steeringMethod_idl::SplineBernstein5_ptr obj) {
1183 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
1184 }
1185
1186 hpp::core_idl::steeringMethod_idl::SplineBernstein5_ptr
1187 hpp::core_idl::steeringMethod_idl::SplineBernstein5::_duplicate(::hpp::core_idl::steeringMethod_idl::SplineBernstein5_ptr obj)
1188 {
1189 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
1190 return obj;
1191 }
1192
1193 hpp::core_idl::steeringMethod_idl::SplineBernstein5_ptr
1194 hpp::core_idl::steeringMethod_idl::SplineBernstein5::_narrow(::CORBA::Object_ptr obj)
1195 {
1196 if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil();
1197 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId);
1198 return e ? e : _nil();
1199 }
1200
1201
1202 hpp::core_idl::steeringMethod_idl::SplineBernstein5_ptr
1203 hpp::core_idl::steeringMethod_idl::SplineBernstein5::_unchecked_narrow(::CORBA::Object_ptr obj)
1204 {
1205 if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil();
1206 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_uncheckedNarrow(_PD_repoId);
1207 return e ? e : _nil();
1208 }
1209
1210 hpp::core_idl::steeringMethod_idl::SplineBernstein5_ptr
1211 hpp::core_idl::steeringMethod_idl::SplineBernstein5::_nil()
1212 {
1213 #ifdef OMNI_UNLOADABLE_STUBS
1214 static _objref_SplineBernstein5 _the_nil_obj;
1215 return &_the_nil_obj;
1216 #else
1217 static _objref_SplineBernstein5* _the_nil_ptr = 0;
1218 if (!_the_nil_ptr) {
1219 omni::nilRefLock().lock();
1220 if (!_the_nil_ptr) {
1221 _the_nil_ptr = new _objref_SplineBernstein5;
1222 registerNilCorbaObject(_the_nil_ptr);
1223 }
1224 omni::nilRefLock().unlock();
1225 }
1226 return _the_nil_ptr;
1227 #endif
1228 }
1229
1230 const char* hpp::core_idl::steeringMethod_idl::SplineBernstein5::_PD_repoId = "IDL:hpp/core_idl/steeringMethod_idl/SplineBernstein5:1.0";
1231
1232
1233 hpp::core_idl::steeringMethod_idl::_objref_SplineBernstein5::~_objref_SplineBernstein5() {
1234
1235 }
1236
1237
1238 hpp::core_idl::steeringMethod_idl::_objref_SplineBernstein5::_objref_SplineBernstein5(omniIOR* ior, omniIdentity* id) :
1239 omniObjRef(::hpp::core_idl::steeringMethod_idl::SplineBernstein5::_PD_repoId, ior, id, 1),
1240 _objref_SteeringMethod(ior, id)
1241
1242 {
1243 _PR_setobj(this);
1244 }
1245
1246 void*
1247 hpp::core_idl::steeringMethod_idl::_objref_SplineBernstein5::_ptrToObjRef(const char* id)
1248 {
1249 if (id == ::hpp::core_idl::steeringMethod_idl::SplineBernstein5::_PD_repoId)
1250 return (::hpp::core_idl::steeringMethod_idl::SplineBernstein5_ptr) this;
1251 if (id == ::hpp::core_idl::SteeringMethod::_PD_repoId)
1252 return (::hpp::core_idl::SteeringMethod_ptr) this;
1253
1254
1255 if (id == ::CORBA::Object::_PD_repoId)
1256 return (::CORBA::Object_ptr) this;
1257
1258 if (omni::strMatch(id, ::hpp::core_idl::steeringMethod_idl::SplineBernstein5::_PD_repoId))
1259 return (::hpp::core_idl::steeringMethod_idl::SplineBernstein5_ptr) this;
1260 if (omni::strMatch(id, ::hpp::core_idl::SteeringMethod::_PD_repoId))
1261 return (::hpp::core_idl::SteeringMethod_ptr) this;
1262
1263
1264 if (omni::strMatch(id, ::CORBA::Object::_PD_repoId))
1265 return (::CORBA::Object_ptr) this;
1266
1267 return 0;
1268 }
1269
1270
1271 //
1272 // Code for hpp::core_idl::steeringMethod_idl::SplineBernstein5::steer
1273
1274 // Local call call-back function.
1275 static void
1276 _0RL_lcfn_52839a54dfb010c7_e0000000(omniCallDescriptor* cd, omniServant* svnt)
1277 {
1278 _0RL_cd_52839a54dfb010c7_c0000000* tcd = (_0RL_cd_52839a54dfb010c7_c0000000*)cd;
1279 hpp::core_idl::steeringMethod_idl::_impl_SplineBernstein5* impl = (hpp::core_idl::steeringMethod_idl::_impl_SplineBernstein5*) svnt->_ptrToInterface(hpp::core_idl::steeringMethod_idl::SplineBernstein5::_PD_repoId);
1280 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1281 tcd->result = impl->steer(*tcd->arg_0, *tcd->arg_1, *tcd->arg_2, *tcd->arg_3, *tcd->arg_4, *tcd->arg_5, tcd->arg_6);
1282 #else
1283 if (!cd->is_upcall())
1284 tcd->result = impl->steer(*tcd->arg_0, *tcd->arg_1, *tcd->arg_2, *tcd->arg_3, *tcd->arg_4, *tcd->arg_5, tcd->arg_6);
1285 else {
1286 try {
1287 tcd->result = impl->steer(*tcd->arg_0, *tcd->arg_1, *tcd->arg_2, *tcd->arg_3, *tcd->arg_4, *tcd->arg_5, tcd->arg_6);
1288 }
1289 catch(hpp::Error& ex) {
1290 throw omniORB::StubUserException(ex._NP_duplicate());
1291 }
1292
1293
1294 }
1295 #endif
1296
1297
1298 }
1299
1300 hpp::core_idl::Path_ptr hpp::core_idl::steeringMethod_idl::_objref_SplineBernstein5::steer(const ::hpp::floatSeq& q1, const ::hpp::intSeq& order1, const ::hpp::floatSeqSeq& derivatives1, const ::hpp::floatSeq& q2, const ::hpp::intSeq& order2, const ::hpp::floatSeqSeq& derivatives2, ::CORBA::Float length)
1301 {
1302 _0RL_cd_52839a54dfb010c7_c0000000 _call_desc(_0RL_lcfn_52839a54dfb010c7_e0000000, "steer", 6);
1303 _call_desc.arg_0 = &(::hpp::floatSeq&) q1;
1304 _call_desc.arg_1 = &(::hpp::intSeq&) order1;
1305 _call_desc.arg_2 = &(::hpp::floatSeqSeq&) derivatives1;
1306 _call_desc.arg_3 = &(::hpp::floatSeq&) q2;
1307 _call_desc.arg_4 = &(::hpp::intSeq&) order2;
1308 _call_desc.arg_5 = &(::hpp::floatSeqSeq&) derivatives2;
1309 _call_desc.arg_6 = length;
1310
1311 _invoke(_call_desc);
1312 return _call_desc.result._retn();
1313
1314
1315 }
1316
1317 16 hpp::core_idl::steeringMethod_idl::_pof_SplineBernstein5::~_pof_SplineBernstein5() {}
1318
1319
1320 omniObjRef*
1321 hpp::core_idl::steeringMethod_idl::_pof_SplineBernstein5::newObjRef(omniIOR* ior, omniIdentity* id)
1322 {
1323 return new ::hpp::core_idl::steeringMethod_idl::_objref_SplineBernstein5(ior, id);
1324 }
1325
1326
1327 ::CORBA::Boolean
1328 hpp::core_idl::steeringMethod_idl::_pof_SplineBernstein5::is_a(const char* id) const
1329 {
1330 if (omni::ptrStrMatch(id, ::hpp::core_idl::steeringMethod_idl::SplineBernstein5::_PD_repoId))
1331 return 1;
1332 if (omni::ptrStrMatch(id, hpp::core_idl::SteeringMethod::_PD_repoId))
1333 return 1;
1334
1335
1336 return 0;
1337 }
1338
1339 const hpp::core_idl::steeringMethod_idl::_pof_SplineBernstein5 _the_pof_hpp_mcore__idl_msteeringMethod__idl_mSplineBernstein5;
1340
1341 hpp::core_idl::steeringMethod_idl::_impl_SplineBernstein5::~_impl_SplineBernstein5() {}
1342
1343
1344 ::CORBA::Boolean
1345 hpp::core_idl::steeringMethod_idl::_impl_SplineBernstein5::_dispatch(omniCallHandle& _handle)
1346 {
1347 const char* op = _handle.operation_name();
1348
1349 if (omni::strMatch(op, "steer")) {
1350
1351 _0RL_cd_52839a54dfb010c7_c0000000 _call_desc(_0RL_lcfn_52839a54dfb010c7_e0000000, "steer", 6, 1);
1352
1353 _handle.upcall(this,_call_desc);
1354 return 1;
1355 }
1356
1357
1358 #ifndef _MSC_VER
1359 if (_impl_SteeringMethod::_dispatch(_handle)) {
1360 return 1;
1361 }
1362 #else
1363 // Work-around for incorrect MSVC code generation.
1364 if (((_impl_SteeringMethod*)this)->
1365 _impl_SteeringMethod::_dispatch(_handle)) {
1366 return 1;
1367 }
1368 #endif
1369
1370
1371 return 0;
1372 }
1373
1374 void*
1375 hpp::core_idl::steeringMethod_idl::_impl_SplineBernstein5::_ptrToInterface(const char* id)
1376 {
1377 if (id == ::hpp::core_idl::steeringMethod_idl::SplineBernstein5::_PD_repoId)
1378 return (::hpp::core_idl::steeringMethod_idl::_impl_SplineBernstein5*) this;
1379 if (id == ::hpp::core_idl::SteeringMethod::_PD_repoId)
1380 return (::hpp::core_idl::_impl_SteeringMethod*) this;
1381
1382
1383 if (id == ::CORBA::Object::_PD_repoId)
1384 return (void*) 1;
1385
1386 if (omni::strMatch(id, ::hpp::core_idl::steeringMethod_idl::SplineBernstein5::_PD_repoId))
1387 return (::hpp::core_idl::steeringMethod_idl::_impl_SplineBernstein5*) this;
1388 if (omni::strMatch(id, ::hpp::core_idl::SteeringMethod::_PD_repoId))
1389 return (::hpp::core_idl::_impl_SteeringMethod*) this;
1390
1391
1392 if (omni::strMatch(id, ::CORBA::Object::_PD_repoId))
1393 return (void*) 1;
1394 return 0;
1395 }
1396
1397 const char*
1398 hpp::core_idl::steeringMethod_idl::_impl_SplineBernstein5::_mostDerivedRepoId()
1399 {
1400 return ::hpp::core_idl::steeringMethod_idl::SplineBernstein5::_PD_repoId;
1401 }
1402
1403 POA_hpp::core_idl::SteeringMethod::~SteeringMethod() {}
1404
1405 POA_hpp::core_idl::steeringMethod_idl::SplineBernstein3::~SplineBernstein3() {}
1406
1407 POA_hpp::core_idl::steeringMethod_idl::SplineBernstein5::~SplineBernstein5() {}
1408
1409