GCC Code Coverage Report


Directory: ./
File: src/hpp/core_idl/_constraintsSK.cc
Date: 2024-09-11 11:37:19
Exec Total Coverage
Lines: 163 798 20.4%
Branches: 82 652 12.6%

Line Branch Exec Source
1 // This file is generated by omniidl (C++ backend) - omniORB_4_3. Do not edit.
2
3 #include "_constraints-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 29 hpp::core_idl::Constraint_ptr hpp::core_idl::Constraint_Helper::_nil() {
18 29 return ::hpp::core_idl::Constraint::_nil();
19 }
20
21 ::CORBA::Boolean hpp::core_idl::Constraint_Helper::is_nil(::hpp::core_idl::Constraint_ptr p) {
22 return ::CORBA::is_nil(p);
23
24 }
25
26 48 void hpp::core_idl::Constraint_Helper::release(::hpp::core_idl::Constraint_ptr p) {
27
1/2
✓ Branch 0 taken 48 times.
✗ Branch 1 not taken.
48 ::CORBA::release(p);
28 48 }
29
30 void hpp::core_idl::Constraint_Helper::marshalObjRef(::hpp::core_idl::Constraint_ptr obj, cdrStream& s) {
31 ::hpp::core_idl::Constraint::_marshalObjRef(obj, s);
32 }
33
34 hpp::core_idl::Constraint_ptr hpp::core_idl::Constraint_Helper::unmarshalObjRef(cdrStream& s) {
35 return ::hpp::core_idl::Constraint::_unmarshalObjRef(s);
36 }
37
38 14 void hpp::core_idl::Constraint_Helper::duplicate(::hpp::core_idl::Constraint_ptr obj) {
39
6/8
✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 8 times.
✓ Branch 4 taken 6 times.
✓ Branch 5 taken 8 times.
✓ Branch 6 taken 6 times.
✓ Branch 7 taken 8 times.
✗ Branch 8 not taken.
14 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
40 14 }
41
42 hpp::core_idl::Constraint_ptr
43 hpp::core_idl::Constraint::_duplicate(::hpp::core_idl::Constraint_ptr obj)
44 {
45 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
46 return obj;
47 }
48
49 hpp::core_idl::Constraint_ptr
50 2 hpp::core_idl::Constraint::_narrow(::CORBA::Object_ptr obj)
51 {
52
4/8
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
✗ Branch 6 not taken.
✓ Branch 7 taken 2 times.
✗ Branch 8 not taken.
✓ Branch 9 taken 2 times.
2 if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil();
53 2 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId);
54
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 return e ? e : _nil();
55 }
56
57
58 hpp::core_idl::Constraint_ptr
59 hpp::core_idl::Constraint::_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::Constraint_ptr
67 29 hpp::core_idl::Constraint::_nil()
68 {
69 #ifdef OMNI_UNLOADABLE_STUBS
70 static _objref_Constraint _the_nil_obj;
71 return &_the_nil_obj;
72 #else
73 static _objref_Constraint* _the_nil_ptr = 0;
74
2/2
✓ Branch 0 taken 1 times.
✓ Branch 1 taken 28 times.
29 if (!_the_nil_ptr) {
75 1 omni::nilRefLock().lock();
76
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 if (!_the_nil_ptr) {
77
1/2
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
1 _the_nil_ptr = new _objref_Constraint;
78
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 registerNilCorbaObject(_the_nil_ptr);
79 }
80 1 omni::nilRefLock().unlock();
81 }
82 29 return _the_nil_ptr;
83 #endif
84 }
85
86 const char* hpp::core_idl::Constraint::_PD_repoId = "IDL:hpp/core_idl/Constraint:1.0";
87
88
89 6 hpp::core_idl::_objref_Constraint::~_objref_Constraint() {
90
91 }
92
93
94 8 hpp::core_idl::_objref_Constraint::_objref_Constraint(omniIOR* ior, omniIdentity* id) :
95
0/2
✗ Branch 2 not taken.
✗ Branch 3 not taken.
8 omniObjRef(::hpp::core_idl::Constraint::_PD_repoId, ior, id, 1)
96
97
98 {
99 8 _PR_setobj(this);
100 }
101
102 void*
103 hpp::core_idl::_objref_Constraint::_ptrToObjRef(const char* id)
104 {
105 if (id == ::hpp::core_idl::Constraint::_PD_repoId)
106 return (::hpp::core_idl::Constraint_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::Constraint::_PD_repoId))
112 return (::hpp::core_idl::Constraint_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::Constraint::deleteThis
123
124 // Proxy call descriptor class. Mangled signature:
125 // void_e_chpp_mError
126 class _0RL_cd_d5ececb61ec14044_00000000
127 : public omniCallDescriptor
128 {
129 public:
130 inline _0RL_cd_d5ececb61ec14044_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_d5ececb61ec14044_00000000::_user_exns[] = {
145 hpp::Error::_PD_repoId
146 };
147
148 void _0RL_cd_d5ececb61ec14044_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_d5ececb61ec14044_10000000(omniCallDescriptor* _OMNIORB_EX_ONLY_CD(cd), omniServant* svnt)
168 {
169
170 hpp::core_idl::_impl_Constraint* impl = (hpp::core_idl::_impl_Constraint*) svnt->_ptrToInterface(hpp::core_idl::Constraint::_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_Constraint::deleteThis()
192 {
193 _0RL_cd_d5ececb61ec14044_00000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_10000000, "deleteThis", 11);
194
195
196 _invoke(_call_desc);
197
198
199
200 }
201
202
203 //
204 // Code for hpp::core_idl::Constraint::deleteIfExpired
205
206 // Proxy call descriptor class. Mangled signature:
207 // _cboolean_e_chpp_mError
208 class _0RL_cd_d5ececb61ec14044_20000000
209 : public omniCallDescriptor
210 {
211 public:
212 inline _0RL_cd_d5ececb61ec14044_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_d5ececb61ec14044_20000000::marshalReturnedValues(cdrStream& _n)
229 {
230 _n.marshalBoolean(result);
231
232 }
233
234 void _0RL_cd_d5ececb61ec14044_20000000::unmarshalReturnedValues(cdrStream& _n)
235 {
236 result = _n.unmarshalBoolean();
237
238 }
239
240 const char* const _0RL_cd_d5ececb61ec14044_20000000::_user_exns[] = {
241 hpp::Error::_PD_repoId
242 };
243
244 void _0RL_cd_d5ececb61ec14044_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_d5ececb61ec14044_30000000(omniCallDescriptor* cd, omniServant* svnt)
264 {
265 _0RL_cd_d5ececb61ec14044_20000000* tcd = (_0RL_cd_d5ececb61ec14044_20000000*)cd;
266 hpp::core_idl::_impl_Constraint* impl = (hpp::core_idl::_impl_Constraint*) svnt->_ptrToInterface(hpp::core_idl::Constraint::_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_Constraint::deleteIfExpired()
288 {
289 _0RL_cd_d5ececb61ec14044_20000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_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::Constraint::persistantStorage
301
302 // Proxy call descriptor class. Mangled signature:
303 // void_i_cboolean_e_chpp_mError
304 class _0RL_cd_d5ececb61ec14044_40000000
305 : public omniCallDescriptor
306 {
307 public:
308 inline _0RL_cd_d5ececb61ec14044_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_d5ececb61ec14044_40000000::marshalArguments(cdrStream& _n)
325 {
326 _n.marshalBoolean(arg_0);
327
328 }
329
330 void _0RL_cd_d5ececb61ec14044_40000000::unmarshalArguments(cdrStream& _n)
331 {
332 arg_0 = _n.unmarshalBoolean();
333
334 }
335
336 const char* const _0RL_cd_d5ececb61ec14044_40000000::_user_exns[] = {
337 hpp::Error::_PD_repoId
338 };
339
340 void _0RL_cd_d5ececb61ec14044_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_d5ececb61ec14044_50000000(omniCallDescriptor* cd, omniServant* svnt)
360 {
361 _0RL_cd_d5ececb61ec14044_40000000* tcd = (_0RL_cd_d5ececb61ec14044_40000000*)cd;
362 hpp::core_idl::_impl_Constraint* impl = (hpp::core_idl::_impl_Constraint*) svnt->_ptrToInterface(hpp::core_idl::Constraint::_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_Constraint::persistantStorage(::CORBA::Boolean persistant)
384 {
385 _0RL_cd_d5ececb61ec14044_40000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_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::Constraint::apply
397
398 // Proxy call descriptor class. Mangled signature:
399 // _cboolean_n_chpp_mfloatSeq_e_chpp_mError
400 class _0RL_cd_d5ececb61ec14044_60000000
401 : public omniCallDescriptor
402 {
403 public:
404 inline _0RL_cd_d5ececb61ec14044_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 hpp::floatSeq* arg_0;
421 ::CORBA::Boolean result;
422 };
423
424 void _0RL_cd_d5ececb61ec14044_60000000::marshalArguments(cdrStream& _n)
425 {
426 (const hpp::floatSeq&) *arg_0 >>= _n;
427
428 }
429
430 void _0RL_cd_d5ececb61ec14044_60000000::unmarshalArguments(cdrStream& _n)
431 {
432 arg_0_ = new hpp::floatSeq;
433 (hpp::floatSeq&)arg_0_ <<= _n;
434 arg_0 = &arg_0_.inout();
435
436 }
437
438 void _0RL_cd_d5ececb61ec14044_60000000::marshalReturnedValues(cdrStream& _n)
439 {
440 _n.marshalBoolean(result);
441 (const hpp::floatSeq&) *arg_0 >>= _n;
442
443 }
444
445 void _0RL_cd_d5ececb61ec14044_60000000::unmarshalReturnedValues(cdrStream& _n)
446 {
447 result = _n.unmarshalBoolean();
448 (hpp::floatSeq&)*arg_0 <<= _n;
449
450 }
451
452 const char* const _0RL_cd_d5ececb61ec14044_60000000::_user_exns[] = {
453 hpp::Error::_PD_repoId
454 };
455
456 void _0RL_cd_d5ececb61ec14044_60000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
457 {
458 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
459 hpp::Error _ex;
460 _ex <<= s;
461 if (iop_client) iop_client->RequestCompleted();
462 throw _ex;
463 }
464
465
466 else {
467 if (iop_client) iop_client->RequestCompleted(1);
468 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
469 (::CORBA::CompletionStatus)s.completion());
470 }
471 }
472
473 // Local call call-back function.
474 static void
475 _0RL_lcfn_d5ececb61ec14044_70000000(omniCallDescriptor* cd, omniServant* svnt)
476 {
477 _0RL_cd_d5ececb61ec14044_60000000* tcd = (_0RL_cd_d5ececb61ec14044_60000000*)cd;
478 hpp::core_idl::_impl_Constraint* impl = (hpp::core_idl::_impl_Constraint*) svnt->_ptrToInterface(hpp::core_idl::Constraint::_PD_repoId);
479 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
480 tcd->result = impl->apply(*tcd->arg_0);
481 #else
482 if (!cd->is_upcall())
483 tcd->result = impl->apply(*tcd->arg_0);
484 else {
485 try {
486 tcd->result = impl->apply(*tcd->arg_0);
487 }
488 catch(hpp::Error& ex) {
489 throw omniORB::StubUserException(ex._NP_duplicate());
490 }
491
492
493 }
494 #endif
495
496
497 }
498
499 ::CORBA::Boolean hpp::core_idl::_objref_Constraint::apply(::hpp::floatSeq& config)
500 {
501 _0RL_cd_d5ececb61ec14044_60000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_70000000, "apply", 6);
502 _call_desc.arg_0 = &(::hpp::floatSeq&) config;
503
504 _invoke(_call_desc);
505 return _call_desc.result;
506
507
508 }
509
510
511 //
512 // Code for hpp::core_idl::Constraint::name
513
514 // Proxy call descriptor class. Mangled signature:
515 // _cstring_e_chpp_mError
516 class _0RL_cd_d5ececb61ec14044_80000000
517 : public omniCallDescriptor
518 {
519 public:
520 2 inline _0RL_cd_d5ececb61ec14044_80000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
521 2 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
522 {
523
524 2 }
525
526
527 void unmarshalReturnedValues(cdrStream&);
528 void marshalReturnedValues(cdrStream&);
529
530 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
531 static const char* const _user_exns[];
532
533 ::CORBA::String_var result;
534 };
535
536 2 void _0RL_cd_d5ececb61ec14044_80000000::marshalReturnedValues(cdrStream& _n)
537 {
538 2 _n.marshalString(result,0);
539
540 2 }
541
542 void _0RL_cd_d5ececb61ec14044_80000000::unmarshalReturnedValues(cdrStream& _n)
543 {
544 result = _n.unmarshalString(0);
545
546 }
547
548 const char* const _0RL_cd_d5ececb61ec14044_80000000::_user_exns[] = {
549 hpp::Error::_PD_repoId
550 };
551
552 void _0RL_cd_d5ececb61ec14044_80000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
553 {
554 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
555 hpp::Error _ex;
556 _ex <<= s;
557 if (iop_client) iop_client->RequestCompleted();
558 throw _ex;
559 }
560
561
562 else {
563 if (iop_client) iop_client->RequestCompleted(1);
564 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
565 (::CORBA::CompletionStatus)s.completion());
566 }
567 }
568
569 // Local call call-back function.
570 static void
571 2 _0RL_lcfn_d5ececb61ec14044_90000000(omniCallDescriptor* cd, omniServant* svnt)
572 {
573 2 _0RL_cd_d5ececb61ec14044_80000000* tcd = (_0RL_cd_d5ececb61ec14044_80000000*)cd;
574 2 hpp::core_idl::_impl_Constraint* impl = (hpp::core_idl::_impl_Constraint*) svnt->_ptrToInterface(hpp::core_idl::Constraint::_PD_repoId);
575 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
576 2 tcd->result = impl->name();
577 #else
578 if (!cd->is_upcall())
579 tcd->result = impl->name();
580 else {
581 try {
582 tcd->result = impl->name();
583 }
584 catch(hpp::Error& ex) {
585 throw omniORB::StubUserException(ex._NP_duplicate());
586 }
587
588
589 }
590 #endif
591
592
593 2 }
594
595 char* hpp::core_idl::_objref_Constraint::name()
596 {
597 _0RL_cd_d5ececb61ec14044_80000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_90000000, "name", 5);
598
599
600 _invoke(_call_desc);
601 return _call_desc.result._retn();
602
603
604 }
605
606
607 //
608 // Code for hpp::core_idl::Constraint::str
609
610 // Local call call-back function.
611 static void
612 _0RL_lcfn_d5ececb61ec14044_a0000000(omniCallDescriptor* cd, omniServant* svnt)
613 {
614 _0RL_cd_d5ececb61ec14044_80000000* tcd = (_0RL_cd_d5ececb61ec14044_80000000*)cd;
615 hpp::core_idl::_impl_Constraint* impl = (hpp::core_idl::_impl_Constraint*) svnt->_ptrToInterface(hpp::core_idl::Constraint::_PD_repoId);
616 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
617 tcd->result = impl->str();
618 #else
619 if (!cd->is_upcall())
620 tcd->result = impl->str();
621 else {
622 try {
623 tcd->result = impl->str();
624 }
625 catch(hpp::Error& ex) {
626 throw omniORB::StubUserException(ex._NP_duplicate());
627 }
628
629
630 }
631 #endif
632
633
634 }
635
636 char* hpp::core_idl::_objref_Constraint::str()
637 {
638 _0RL_cd_d5ececb61ec14044_80000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_a0000000, "str", 4);
639
640
641 _invoke(_call_desc);
642 return _call_desc.result._retn();
643
644
645 }
646
647
648 //
649 // Code for hpp::core_idl::Constraint::isSatisfied
650
651 // Proxy call descriptor class. Mangled signature:
652 // _cboolean_i_chpp_mfloatSeq_e_chpp_mError
653 class _0RL_cd_d5ececb61ec14044_b0000000
654 : public omniCallDescriptor
655 {
656 public:
657 inline _0RL_cd_d5ececb61ec14044_b0000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
658 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
659 {
660
661 }
662
663 void marshalArguments(cdrStream&);
664 void unmarshalArguments(cdrStream&);
665
666 void unmarshalReturnedValues(cdrStream&);
667 void marshalReturnedValues(cdrStream&);
668
669 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
670 static const char* const _user_exns[];
671
672 hpp::floatSeq_var arg_0_;
673 const hpp::floatSeq* arg_0;
674 ::CORBA::Boolean result;
675 };
676
677 void _0RL_cd_d5ececb61ec14044_b0000000::marshalArguments(cdrStream& _n)
678 {
679 (const hpp::floatSeq&) *arg_0 >>= _n;
680
681 }
682
683 void _0RL_cd_d5ececb61ec14044_b0000000::unmarshalArguments(cdrStream& _n)
684 {
685 arg_0_ = new hpp::floatSeq;
686 (hpp::floatSeq&)arg_0_ <<= _n;
687 arg_0 = &arg_0_.in();
688
689 }
690
691 void _0RL_cd_d5ececb61ec14044_b0000000::marshalReturnedValues(cdrStream& _n)
692 {
693 _n.marshalBoolean(result);
694
695 }
696
697 void _0RL_cd_d5ececb61ec14044_b0000000::unmarshalReturnedValues(cdrStream& _n)
698 {
699 result = _n.unmarshalBoolean();
700
701 }
702
703 const char* const _0RL_cd_d5ececb61ec14044_b0000000::_user_exns[] = {
704 hpp::Error::_PD_repoId
705 };
706
707 void _0RL_cd_d5ececb61ec14044_b0000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
708 {
709 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
710 hpp::Error _ex;
711 _ex <<= s;
712 if (iop_client) iop_client->RequestCompleted();
713 throw _ex;
714 }
715
716
717 else {
718 if (iop_client) iop_client->RequestCompleted(1);
719 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
720 (::CORBA::CompletionStatus)s.completion());
721 }
722 }
723
724 // Local call call-back function.
725 static void
726 _0RL_lcfn_d5ececb61ec14044_c0000000(omniCallDescriptor* cd, omniServant* svnt)
727 {
728 _0RL_cd_d5ececb61ec14044_b0000000* tcd = (_0RL_cd_d5ececb61ec14044_b0000000*)cd;
729 hpp::core_idl::_impl_Constraint* impl = (hpp::core_idl::_impl_Constraint*) svnt->_ptrToInterface(hpp::core_idl::Constraint::_PD_repoId);
730 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
731 tcd->result = impl->isSatisfied(*tcd->arg_0);
732 #else
733 if (!cd->is_upcall())
734 tcd->result = impl->isSatisfied(*tcd->arg_0);
735 else {
736 try {
737 tcd->result = impl->isSatisfied(*tcd->arg_0);
738 }
739 catch(hpp::Error& ex) {
740 throw omniORB::StubUserException(ex._NP_duplicate());
741 }
742
743
744 }
745 #endif
746
747
748 }
749
750 ::CORBA::Boolean hpp::core_idl::_objref_Constraint::isSatisfied(const ::hpp::floatSeq& config)
751 {
752 _0RL_cd_d5ececb61ec14044_b0000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_c0000000, "isSatisfied", 12);
753 _call_desc.arg_0 = &(::hpp::floatSeq&) config;
754
755 _invoke(_call_desc);
756 return _call_desc.result;
757
758
759 }
760
761
762 //
763 // Code for hpp::core_idl::Constraint::copy
764
765 // Proxy call descriptor class. Mangled signature:
766 // _chpp_mcore__idl_mConstraint_e_chpp_mError
767 class _0RL_cd_d5ececb61ec14044_d0000000
768 : public omniCallDescriptor
769 {
770 public:
771 3 inline _0RL_cd_d5ececb61ec14044_d0000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
772
1/2
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
3 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
773 {
774
775 3 }
776
777
778 void unmarshalReturnedValues(cdrStream&);
779 void marshalReturnedValues(cdrStream&);
780
781 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
782 static const char* const _user_exns[];
783
784 hpp::core_idl::Constraint_var result;
785 };
786
787 3 void _0RL_cd_d5ececb61ec14044_d0000000::marshalReturnedValues(cdrStream& _n)
788 {
789 3 hpp::core_idl::Constraint::_marshalObjRef(result,_n);
790
791 3 }
792
793 void _0RL_cd_d5ececb61ec14044_d0000000::unmarshalReturnedValues(cdrStream& _n)
794 {
795 result = hpp::core_idl::Constraint::_unmarshalObjRef(_n);
796
797 }
798
799 const char* const _0RL_cd_d5ececb61ec14044_d0000000::_user_exns[] = {
800 hpp::Error::_PD_repoId
801 };
802
803 void _0RL_cd_d5ececb61ec14044_d0000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
804 {
805 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
806 hpp::Error _ex;
807 _ex <<= s;
808 if (iop_client) iop_client->RequestCompleted();
809 throw _ex;
810 }
811
812
813 else {
814 if (iop_client) iop_client->RequestCompleted(1);
815 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
816 (::CORBA::CompletionStatus)s.completion());
817 }
818 }
819
820 // Local call call-back function.
821 static void
822 _0RL_lcfn_d5ececb61ec14044_e0000000(omniCallDescriptor* cd, omniServant* svnt)
823 {
824 _0RL_cd_d5ececb61ec14044_d0000000* tcd = (_0RL_cd_d5ececb61ec14044_d0000000*)cd;
825 hpp::core_idl::_impl_Constraint* impl = (hpp::core_idl::_impl_Constraint*) svnt->_ptrToInterface(hpp::core_idl::Constraint::_PD_repoId);
826 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
827 tcd->result = impl->copy();
828 #else
829 if (!cd->is_upcall())
830 tcd->result = impl->copy();
831 else {
832 try {
833 tcd->result = impl->copy();
834 }
835 catch(hpp::Error& ex) {
836 throw omniORB::StubUserException(ex._NP_duplicate());
837 }
838
839
840 }
841 #endif
842
843
844 }
845
846 hpp::core_idl::Constraint_ptr hpp::core_idl::_objref_Constraint::copy()
847 {
848 _0RL_cd_d5ececb61ec14044_d0000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_e0000000, "copy", 5);
849
850
851 _invoke(_call_desc);
852 return _call_desc.result._retn();
853
854
855 }
856
857 16 hpp::core_idl::_pof_Constraint::~_pof_Constraint() {}
858
859
860 omniObjRef*
861 hpp::core_idl::_pof_Constraint::newObjRef(omniIOR* ior, omniIdentity* id)
862 {
863 return new ::hpp::core_idl::_objref_Constraint(ior, id);
864 }
865
866
867 ::CORBA::Boolean
868 hpp::core_idl::_pof_Constraint::is_a(const char* id) const
869 {
870 if (omni::ptrStrMatch(id, ::hpp::core_idl::Constraint::_PD_repoId))
871 return 1;
872
873 return 0;
874 }
875
876 const hpp::core_idl::_pof_Constraint _the_pof_hpp_mcore__idl_mConstraint;
877
878 8 hpp::core_idl::_impl_Constraint::~_impl_Constraint() {}
879
880
881 ::CORBA::Boolean
882 5 hpp::core_idl::_impl_Constraint::_dispatch(omniCallHandle& _handle)
883 {
884 5 const char* op = _handle.operation_name();
885
886
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
5 if (omni::strMatch(op, "deleteThis")) {
887
888 _0RL_cd_d5ececb61ec14044_00000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_10000000, "deleteThis", 11, 1);
889
890 _handle.upcall(this,_call_desc);
891 return 1;
892 }
893
894
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
5 if (omni::strMatch(op, "deleteIfExpired")) {
895
896 _0RL_cd_d5ececb61ec14044_20000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_30000000, "deleteIfExpired", 16, 1);
897
898 _handle.upcall(this,_call_desc);
899 return 1;
900 }
901
902
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
5 if (omni::strMatch(op, "persistantStorage")) {
903
904 _0RL_cd_d5ececb61ec14044_40000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_50000000, "persistantStorage", 18, 1);
905
906 _handle.upcall(this,_call_desc);
907 return 1;
908 }
909
910
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
5 if (omni::strMatch(op, "apply")) {
911
912 _0RL_cd_d5ececb61ec14044_60000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_70000000, "apply", 6, 1);
913
914 _handle.upcall(this,_call_desc);
915 return 1;
916 }
917
918
2/2
✓ Branch 1 taken 2 times.
✓ Branch 2 taken 3 times.
5 if (omni::strMatch(op, "name")) {
919
920 2 _0RL_cd_d5ececb61ec14044_80000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_90000000, "name", 5, 1);
921
922
1/2
✓ Branch 1 taken 2 times.
✗ Branch 2 not taken.
2 _handle.upcall(this,_call_desc);
923 2 return 1;
924 2 }
925
926
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if (omni::strMatch(op, "str")) {
927
928 _0RL_cd_d5ececb61ec14044_80000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_a0000000, "str", 4, 1);
929
930 _handle.upcall(this,_call_desc);
931 return 1;
932 }
933
934
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if (omni::strMatch(op, "isSatisfied")) {
935
936 _0RL_cd_d5ececb61ec14044_b0000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_c0000000, "isSatisfied", 12, 1);
937
938 _handle.upcall(this,_call_desc);
939 return 1;
940 }
941
942
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if (omni::strMatch(op, "copy")) {
943
944 _0RL_cd_d5ececb61ec14044_d0000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_e0000000, "copy", 5, 1);
945
946 _handle.upcall(this,_call_desc);
947 return 1;
948 }
949
950
951 3 return 0;
952 }
953
954 void*
955 hpp::core_idl::_impl_Constraint::_ptrToInterface(const char* id)
956 {
957 if (id == ::hpp::core_idl::Constraint::_PD_repoId)
958 return (::hpp::core_idl::_impl_Constraint*) this;
959
960 if (id == ::CORBA::Object::_PD_repoId)
961 return (void*) 1;
962
963 if (omni::strMatch(id, ::hpp::core_idl::Constraint::_PD_repoId))
964 return (::hpp::core_idl::_impl_Constraint*) this;
965
966 if (omni::strMatch(id, ::CORBA::Object::_PD_repoId))
967 return (void*) 1;
968 return 0;
969 }
970
971 const char*
972 hpp::core_idl::_impl_Constraint::_mostDerivedRepoId()
973 {
974 return ::hpp::core_idl::Constraint::_PD_repoId;
975 }
976
977 hpp::core_idl::ConfigProjector_ptr hpp::core_idl::ConfigProjector_Helper::_nil() {
978 return ::hpp::core_idl::ConfigProjector::_nil();
979 }
980
981 ::CORBA::Boolean hpp::core_idl::ConfigProjector_Helper::is_nil(::hpp::core_idl::ConfigProjector_ptr p) {
982 return ::CORBA::is_nil(p);
983
984 }
985
986 void hpp::core_idl::ConfigProjector_Helper::release(::hpp::core_idl::ConfigProjector_ptr p) {
987 ::CORBA::release(p);
988 }
989
990 void hpp::core_idl::ConfigProjector_Helper::marshalObjRef(::hpp::core_idl::ConfigProjector_ptr obj, cdrStream& s) {
991 ::hpp::core_idl::ConfigProjector::_marshalObjRef(obj, s);
992 }
993
994 hpp::core_idl::ConfigProjector_ptr hpp::core_idl::ConfigProjector_Helper::unmarshalObjRef(cdrStream& s) {
995 return ::hpp::core_idl::ConfigProjector::_unmarshalObjRef(s);
996 }
997
998 void hpp::core_idl::ConfigProjector_Helper::duplicate(::hpp::core_idl::ConfigProjector_ptr obj) {
999 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
1000 }
1001
1002 hpp::core_idl::ConfigProjector_ptr
1003 hpp::core_idl::ConfigProjector::_duplicate(::hpp::core_idl::ConfigProjector_ptr obj)
1004 {
1005 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
1006 return obj;
1007 }
1008
1009 hpp::core_idl::ConfigProjector_ptr
1010 hpp::core_idl::ConfigProjector::_narrow(::CORBA::Object_ptr obj)
1011 {
1012 if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil();
1013 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId);
1014 return e ? e : _nil();
1015 }
1016
1017
1018 hpp::core_idl::ConfigProjector_ptr
1019 hpp::core_idl::ConfigProjector::_unchecked_narrow(::CORBA::Object_ptr obj)
1020 {
1021 if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil();
1022 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_uncheckedNarrow(_PD_repoId);
1023 return e ? e : _nil();
1024 }
1025
1026 hpp::core_idl::ConfigProjector_ptr
1027 hpp::core_idl::ConfigProjector::_nil()
1028 {
1029 #ifdef OMNI_UNLOADABLE_STUBS
1030 static _objref_ConfigProjector _the_nil_obj;
1031 return &_the_nil_obj;
1032 #else
1033 static _objref_ConfigProjector* _the_nil_ptr = 0;
1034 if (!_the_nil_ptr) {
1035 omni::nilRefLock().lock();
1036 if (!_the_nil_ptr) {
1037 _the_nil_ptr = new _objref_ConfigProjector;
1038 registerNilCorbaObject(_the_nil_ptr);
1039 }
1040 omni::nilRefLock().unlock();
1041 }
1042 return _the_nil_ptr;
1043 #endif
1044 }
1045
1046 const char* hpp::core_idl::ConfigProjector::_PD_repoId = "IDL:hpp/core_idl/ConfigProjector:1.0";
1047
1048
1049 8 hpp::core_idl::_objref_ConfigProjector::~_objref_ConfigProjector() {
1050
1051 }
1052
1053
1054 6 hpp::core_idl::_objref_ConfigProjector::_objref_ConfigProjector(omniIOR* ior, omniIdentity* id) :
1055 omniObjRef(::hpp::core_idl::ConfigProjector::_PD_repoId, ior, id, 1),
1056
2/4
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 3 times.
✗ Branch 6 not taken.
6 _objref_Constraint(ior, id)
1057
1058 {
1059 6 _PR_setobj(this);
1060 }
1061
1062 void*
1063 7 hpp::core_idl::_objref_ConfigProjector::_ptrToObjRef(const char* id)
1064 {
1065
2/2
✓ Branch 0 taken 4 times.
✓ Branch 1 taken 3 times.
7 if (id == ::hpp::core_idl::ConfigProjector::_PD_repoId)
1066 4 return (::hpp::core_idl::ConfigProjector_ptr) this;
1067
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 if (id == ::hpp::core_idl::Constraint::_PD_repoId)
1068 3 return (::hpp::core_idl::Constraint_ptr) this;
1069
1070
1071 if (id == ::CORBA::Object::_PD_repoId)
1072 return (::CORBA::Object_ptr) this;
1073
1074 if (omni::strMatch(id, ::hpp::core_idl::ConfigProjector::_PD_repoId))
1075 return (::hpp::core_idl::ConfigProjector_ptr) this;
1076 if (omni::strMatch(id, ::hpp::core_idl::Constraint::_PD_repoId))
1077 return (::hpp::core_idl::Constraint_ptr) this;
1078
1079
1080 if (omni::strMatch(id, ::CORBA::Object::_PD_repoId))
1081 return (::CORBA::Object_ptr) this;
1082
1083 return 0;
1084 }
1085
1086
1087 //
1088 // Code for hpp::core_idl::ConfigProjector::setRightHandSideFromConfig
1089
1090 // Proxy call descriptor class. Mangled signature:
1091 // void_i_chpp_mfloatSeq_e_chpp_mError
1092 class _0RL_cd_d5ececb61ec14044_f0000000
1093 : public omniCallDescriptor
1094 {
1095 public:
1096 inline _0RL_cd_d5ececb61ec14044_f0000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
1097 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
1098 {
1099
1100 }
1101
1102 void marshalArguments(cdrStream&);
1103 void unmarshalArguments(cdrStream&);
1104
1105
1106 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
1107 static const char* const _user_exns[];
1108
1109 hpp::floatSeq_var arg_0_;
1110 const hpp::floatSeq* arg_0;
1111 };
1112
1113 void _0RL_cd_d5ececb61ec14044_f0000000::marshalArguments(cdrStream& _n)
1114 {
1115 (const hpp::floatSeq&) *arg_0 >>= _n;
1116
1117 }
1118
1119 void _0RL_cd_d5ececb61ec14044_f0000000::unmarshalArguments(cdrStream& _n)
1120 {
1121 arg_0_ = new hpp::floatSeq;
1122 (hpp::floatSeq&)arg_0_ <<= _n;
1123 arg_0 = &arg_0_.in();
1124
1125 }
1126
1127 const char* const _0RL_cd_d5ececb61ec14044_f0000000::_user_exns[] = {
1128 hpp::Error::_PD_repoId
1129 };
1130
1131 void _0RL_cd_d5ececb61ec14044_f0000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
1132 {
1133 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
1134 hpp::Error _ex;
1135 _ex <<= s;
1136 if (iop_client) iop_client->RequestCompleted();
1137 throw _ex;
1138 }
1139
1140
1141 else {
1142 if (iop_client) iop_client->RequestCompleted(1);
1143 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
1144 (::CORBA::CompletionStatus)s.completion());
1145 }
1146 }
1147
1148 // Local call call-back function.
1149 static void
1150 _0RL_lcfn_d5ececb61ec14044_01000000(omniCallDescriptor* cd, omniServant* svnt)
1151 {
1152 _0RL_cd_d5ececb61ec14044_f0000000* tcd = (_0RL_cd_d5ececb61ec14044_f0000000*)cd;
1153 hpp::core_idl::_impl_ConfigProjector* impl = (hpp::core_idl::_impl_ConfigProjector*) svnt->_ptrToInterface(hpp::core_idl::ConfigProjector::_PD_repoId);
1154 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1155 impl->setRightHandSideFromConfig(*tcd->arg_0);
1156 #else
1157 if (!cd->is_upcall())
1158 impl->setRightHandSideFromConfig(*tcd->arg_0);
1159 else {
1160 try {
1161 impl->setRightHandSideFromConfig(*tcd->arg_0);
1162 }
1163 catch(hpp::Error& ex) {
1164 throw omniORB::StubUserException(ex._NP_duplicate());
1165 }
1166
1167
1168 }
1169 #endif
1170
1171
1172 }
1173
1174 void hpp::core_idl::_objref_ConfigProjector::setRightHandSideFromConfig(const ::hpp::floatSeq& config)
1175 {
1176 _0RL_cd_d5ececb61ec14044_f0000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_01000000, "setRightHandSideFromConfig", 27);
1177 _call_desc.arg_0 = &(::hpp::floatSeq&) config;
1178
1179 _invoke(_call_desc);
1180
1181
1182
1183 }
1184
1185
1186 //
1187 // Code for hpp::core_idl::ConfigProjector::setRightHandSideOfConstraintFromConfig
1188
1189 // Proxy call descriptor class. Mangled signature:
1190 // void_i_chpp_mconstraints__idl_mImplicit_i_chpp_mfloatSeq_e_chpp_mError
1191 class _0RL_cd_d5ececb61ec14044_11000000
1192 : public omniCallDescriptor
1193 {
1194 public:
1195 inline _0RL_cd_d5ececb61ec14044_11000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
1196 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
1197 {
1198
1199 }
1200
1201 void marshalArguments(cdrStream&);
1202 void unmarshalArguments(cdrStream&);
1203
1204
1205 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
1206 static const char* const _user_exns[];
1207
1208 hpp::constraints_idl::Implicit_var arg_0_;
1209 hpp::constraints_idl::Implicit_ptr arg_0;
1210 hpp::floatSeq_var arg_1_;
1211 const hpp::floatSeq* arg_1;
1212 };
1213
1214 void _0RL_cd_d5ececb61ec14044_11000000::marshalArguments(cdrStream& _n)
1215 {
1216 hpp::constraints_idl::Implicit::_marshalObjRef(arg_0,_n);
1217 (const hpp::floatSeq&) *arg_1 >>= _n;
1218
1219 }
1220
1221 void _0RL_cd_d5ececb61ec14044_11000000::unmarshalArguments(cdrStream& _n)
1222 {
1223 arg_0_ = hpp::constraints_idl::Implicit::_unmarshalObjRef(_n);
1224 arg_0 = arg_0_.in();
1225 arg_1_ = new hpp::floatSeq;
1226 (hpp::floatSeq&)arg_1_ <<= _n;
1227 arg_1 = &arg_1_.in();
1228
1229 }
1230
1231 const char* const _0RL_cd_d5ececb61ec14044_11000000::_user_exns[] = {
1232 hpp::Error::_PD_repoId
1233 };
1234
1235 void _0RL_cd_d5ececb61ec14044_11000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
1236 {
1237 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
1238 hpp::Error _ex;
1239 _ex <<= s;
1240 if (iop_client) iop_client->RequestCompleted();
1241 throw _ex;
1242 }
1243
1244
1245 else {
1246 if (iop_client) iop_client->RequestCompleted(1);
1247 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
1248 (::CORBA::CompletionStatus)s.completion());
1249 }
1250 }
1251
1252 // Local call call-back function.
1253 static void
1254 _0RL_lcfn_d5ececb61ec14044_21000000(omniCallDescriptor* cd, omniServant* svnt)
1255 {
1256 _0RL_cd_d5ececb61ec14044_11000000* tcd = (_0RL_cd_d5ececb61ec14044_11000000*)cd;
1257 hpp::core_idl::_impl_ConfigProjector* impl = (hpp::core_idl::_impl_ConfigProjector*) svnt->_ptrToInterface(hpp::core_idl::ConfigProjector::_PD_repoId);
1258 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1259 impl->setRightHandSideOfConstraintFromConfig(tcd->arg_0, *tcd->arg_1);
1260 #else
1261 if (!cd->is_upcall())
1262 impl->setRightHandSideOfConstraintFromConfig(tcd->arg_0, *tcd->arg_1);
1263 else {
1264 try {
1265 impl->setRightHandSideOfConstraintFromConfig(tcd->arg_0, *tcd->arg_1);
1266 }
1267 catch(hpp::Error& ex) {
1268 throw omniORB::StubUserException(ex._NP_duplicate());
1269 }
1270
1271
1272 }
1273 #endif
1274
1275
1276 }
1277
1278 void hpp::core_idl::_objref_ConfigProjector::setRightHandSideOfConstraintFromConfig(::hpp::constraints_idl::Implicit_ptr nm, const ::hpp::floatSeq& config)
1279 {
1280 _0RL_cd_d5ececb61ec14044_11000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_21000000, "setRightHandSideOfConstraintFromConfig", 39);
1281 _call_desc.arg_0 = nm;
1282 _call_desc.arg_1 = &(::hpp::floatSeq&) config;
1283
1284 _invoke(_call_desc);
1285
1286
1287
1288 }
1289
1290
1291 //
1292 // Code for hpp::core_idl::ConfigProjector::setRightHandSide
1293
1294 // Local call call-back function.
1295 static void
1296 _0RL_lcfn_d5ececb61ec14044_31000000(omniCallDescriptor* cd, omniServant* svnt)
1297 {
1298 _0RL_cd_d5ececb61ec14044_f0000000* tcd = (_0RL_cd_d5ececb61ec14044_f0000000*)cd;
1299 hpp::core_idl::_impl_ConfigProjector* impl = (hpp::core_idl::_impl_ConfigProjector*) svnt->_ptrToInterface(hpp::core_idl::ConfigProjector::_PD_repoId);
1300 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1301 impl->setRightHandSide(*tcd->arg_0);
1302 #else
1303 if (!cd->is_upcall())
1304 impl->setRightHandSide(*tcd->arg_0);
1305 else {
1306 try {
1307 impl->setRightHandSide(*tcd->arg_0);
1308 }
1309 catch(hpp::Error& ex) {
1310 throw omniORB::StubUserException(ex._NP_duplicate());
1311 }
1312
1313
1314 }
1315 #endif
1316
1317
1318 }
1319
1320 void hpp::core_idl::_objref_ConfigProjector::setRightHandSide(const ::hpp::floatSeq& param)
1321 {
1322 _0RL_cd_d5ececb61ec14044_f0000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_31000000, "setRightHandSide", 17);
1323 _call_desc.arg_0 = &(::hpp::floatSeq&) param;
1324
1325 _invoke(_call_desc);
1326
1327
1328
1329 }
1330
1331
1332 //
1333 // Code for hpp::core_idl::ConfigProjector::setRightHandSideOfConstraint
1334
1335 // Local call call-back function.
1336 static void
1337 _0RL_lcfn_d5ececb61ec14044_41000000(omniCallDescriptor* cd, omniServant* svnt)
1338 {
1339 _0RL_cd_d5ececb61ec14044_11000000* tcd = (_0RL_cd_d5ececb61ec14044_11000000*)cd;
1340 hpp::core_idl::_impl_ConfigProjector* impl = (hpp::core_idl::_impl_ConfigProjector*) svnt->_ptrToInterface(hpp::core_idl::ConfigProjector::_PD_repoId);
1341 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1342 impl->setRightHandSideOfConstraint(tcd->arg_0, *tcd->arg_1);
1343 #else
1344 if (!cd->is_upcall())
1345 impl->setRightHandSideOfConstraint(tcd->arg_0, *tcd->arg_1);
1346 else {
1347 try {
1348 impl->setRightHandSideOfConstraint(tcd->arg_0, *tcd->arg_1);
1349 }
1350 catch(hpp::Error& ex) {
1351 throw omniORB::StubUserException(ex._NP_duplicate());
1352 }
1353
1354
1355 }
1356 #endif
1357
1358
1359 }
1360
1361 void hpp::core_idl::_objref_ConfigProjector::setRightHandSideOfConstraint(::hpp::constraints_idl::Implicit_ptr nm, const ::hpp::floatSeq& rhs)
1362 {
1363 _0RL_cd_d5ececb61ec14044_11000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_41000000, "setRightHandSideOfConstraint", 29);
1364 _call_desc.arg_0 = nm;
1365 _call_desc.arg_1 = &(::hpp::floatSeq&) rhs;
1366
1367 _invoke(_call_desc);
1368
1369
1370
1371 }
1372
1373
1374 //
1375 // Code for hpp::core_idl::ConfigProjector::getRightHandSide
1376
1377 // Proxy call descriptor class. Mangled signature:
1378 // _chpp_mfloatSeq_e_chpp_mError
1379 class _0RL_cd_d5ececb61ec14044_51000000
1380 : public omniCallDescriptor
1381 {
1382 public:
1383 inline _0RL_cd_d5ececb61ec14044_51000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
1384 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
1385 {
1386
1387 }
1388
1389
1390 void unmarshalReturnedValues(cdrStream&);
1391 void marshalReturnedValues(cdrStream&);
1392
1393 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
1394 static const char* const _user_exns[];
1395
1396 hpp::floatSeq_var result;
1397 };
1398
1399 void _0RL_cd_d5ececb61ec14044_51000000::marshalReturnedValues(cdrStream& _n)
1400 {
1401 (const hpp::floatSeq&) result >>= _n;
1402
1403 }
1404
1405 void _0RL_cd_d5ececb61ec14044_51000000::unmarshalReturnedValues(cdrStream& _n)
1406 {
1407 result = new hpp::floatSeq;
1408 (hpp::floatSeq&)result <<= _n;
1409
1410 }
1411
1412 const char* const _0RL_cd_d5ececb61ec14044_51000000::_user_exns[] = {
1413 hpp::Error::_PD_repoId
1414 };
1415
1416 void _0RL_cd_d5ececb61ec14044_51000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
1417 {
1418 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
1419 hpp::Error _ex;
1420 _ex <<= s;
1421 if (iop_client) iop_client->RequestCompleted();
1422 throw _ex;
1423 }
1424
1425
1426 else {
1427 if (iop_client) iop_client->RequestCompleted(1);
1428 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
1429 (::CORBA::CompletionStatus)s.completion());
1430 }
1431 }
1432
1433 // Local call call-back function.
1434 static void
1435 _0RL_lcfn_d5ececb61ec14044_61000000(omniCallDescriptor* cd, omniServant* svnt)
1436 {
1437 _0RL_cd_d5ececb61ec14044_51000000* tcd = (_0RL_cd_d5ececb61ec14044_51000000*)cd;
1438 hpp::core_idl::_impl_ConfigProjector* impl = (hpp::core_idl::_impl_ConfigProjector*) svnt->_ptrToInterface(hpp::core_idl::ConfigProjector::_PD_repoId);
1439 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1440 tcd->result = impl->getRightHandSide();
1441 #else
1442 if (!cd->is_upcall())
1443 tcd->result = impl->getRightHandSide();
1444 else {
1445 try {
1446 tcd->result = impl->getRightHandSide();
1447 }
1448 catch(hpp::Error& ex) {
1449 throw omniORB::StubUserException(ex._NP_duplicate());
1450 }
1451
1452
1453 }
1454 #endif
1455
1456
1457 }
1458
1459 hpp::floatSeq* hpp::core_idl::_objref_ConfigProjector::getRightHandSide()
1460 {
1461 _0RL_cd_d5ececb61ec14044_51000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_61000000, "getRightHandSide", 17);
1462
1463
1464 _invoke(_call_desc);
1465 return _call_desc.result._retn();
1466
1467
1468 }
1469
1470
1471 //
1472 // Code for hpp::core_idl::ConfigProjector::setRightHandSideAt
1473
1474 // Proxy call descriptor class. Mangled signature:
1475 // void_i_cdouble_e_chpp_mError
1476 class _0RL_cd_d5ececb61ec14044_71000000
1477 : public omniCallDescriptor
1478 {
1479 public:
1480 inline _0RL_cd_d5ececb61ec14044_71000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
1481 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
1482 {
1483
1484 }
1485
1486 void marshalArguments(cdrStream&);
1487 void unmarshalArguments(cdrStream&);
1488
1489
1490 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
1491 static const char* const _user_exns[];
1492
1493 hpp::value_type arg_0;
1494 };
1495
1496 void _0RL_cd_d5ececb61ec14044_71000000::marshalArguments(cdrStream& _n)
1497 {
1498 arg_0 >>= _n;
1499
1500 }
1501
1502 void _0RL_cd_d5ececb61ec14044_71000000::unmarshalArguments(cdrStream& _n)
1503 {
1504 (hpp::value_type&)arg_0 <<= _n;
1505
1506 }
1507
1508 const char* const _0RL_cd_d5ececb61ec14044_71000000::_user_exns[] = {
1509 hpp::Error::_PD_repoId
1510 };
1511
1512 void _0RL_cd_d5ececb61ec14044_71000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
1513 {
1514 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
1515 hpp::Error _ex;
1516 _ex <<= s;
1517 if (iop_client) iop_client->RequestCompleted();
1518 throw _ex;
1519 }
1520
1521
1522 else {
1523 if (iop_client) iop_client->RequestCompleted(1);
1524 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
1525 (::CORBA::CompletionStatus)s.completion());
1526 }
1527 }
1528
1529 // Local call call-back function.
1530 static void
1531 _0RL_lcfn_d5ececb61ec14044_81000000(omniCallDescriptor* cd, omniServant* svnt)
1532 {
1533 _0RL_cd_d5ececb61ec14044_71000000* tcd = (_0RL_cd_d5ececb61ec14044_71000000*)cd;
1534 hpp::core_idl::_impl_ConfigProjector* impl = (hpp::core_idl::_impl_ConfigProjector*) svnt->_ptrToInterface(hpp::core_idl::ConfigProjector::_PD_repoId);
1535 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1536 impl->setRightHandSideAt(tcd->arg_0);
1537 #else
1538 if (!cd->is_upcall())
1539 impl->setRightHandSideAt(tcd->arg_0);
1540 else {
1541 try {
1542 impl->setRightHandSideAt(tcd->arg_0);
1543 }
1544 catch(hpp::Error& ex) {
1545 throw omniORB::StubUserException(ex._NP_duplicate());
1546 }
1547
1548
1549 }
1550 #endif
1551
1552
1553 }
1554
1555 void hpp::core_idl::_objref_ConfigProjector::setRightHandSideAt(::hpp::value_type s)
1556 {
1557 _0RL_cd_d5ececb61ec14044_71000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_81000000, "setRightHandSideAt", 19);
1558 _call_desc.arg_0 = s;
1559
1560 _invoke(_call_desc);
1561
1562
1563
1564 }
1565
1566
1567 //
1568 // Code for hpp::core_idl::ConfigProjector::isConstraintSatisfied
1569
1570 // Proxy call descriptor class. Mangled signature:
1571 // _cboolean_i_chpp_mconstraints__idl_mImplicit_i_chpp_mfloatSeq_o_chpp_mfloatSeq_o_cboolean_e_chpp_mError
1572 class _0RL_cd_d5ececb61ec14044_91000000
1573 : public omniCallDescriptor
1574 {
1575 public:
1576 inline _0RL_cd_d5ececb61ec14044_91000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
1577 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
1578 {
1579
1580 }
1581
1582 void marshalArguments(cdrStream&);
1583 void unmarshalArguments(cdrStream&);
1584
1585 void unmarshalReturnedValues(cdrStream&);
1586 void marshalReturnedValues(cdrStream&);
1587
1588 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
1589 static const char* const _user_exns[];
1590
1591 hpp::constraints_idl::Implicit_var arg_0_;
1592 hpp::constraints_idl::Implicit_ptr arg_0;
1593 hpp::floatSeq_var arg_1_;
1594 const hpp::floatSeq* arg_1;
1595 hpp::floatSeq_var arg_2;
1596 ::CORBA::Boolean arg_3;
1597 ::CORBA::Boolean result;
1598 };
1599
1600 void _0RL_cd_d5ececb61ec14044_91000000::marshalArguments(cdrStream& _n)
1601 {
1602 hpp::constraints_idl::Implicit::_marshalObjRef(arg_0,_n);
1603 (const hpp::floatSeq&) *arg_1 >>= _n;
1604
1605 }
1606
1607 void _0RL_cd_d5ececb61ec14044_91000000::unmarshalArguments(cdrStream& _n)
1608 {
1609 arg_0_ = hpp::constraints_idl::Implicit::_unmarshalObjRef(_n);
1610 arg_0 = arg_0_.in();
1611 arg_1_ = new hpp::floatSeq;
1612 (hpp::floatSeq&)arg_1_ <<= _n;
1613 arg_1 = &arg_1_.in();
1614
1615 }
1616
1617 void _0RL_cd_d5ececb61ec14044_91000000::marshalReturnedValues(cdrStream& _n)
1618 {
1619 _n.marshalBoolean(result);
1620 (const hpp::floatSeq&) arg_2 >>= _n;
1621 _n.marshalBoolean(arg_3);
1622
1623 }
1624
1625 void _0RL_cd_d5ececb61ec14044_91000000::unmarshalReturnedValues(cdrStream& _n)
1626 {
1627 result = _n.unmarshalBoolean();
1628 arg_2 = new hpp::floatSeq;
1629 (hpp::floatSeq&)arg_2 <<= _n;
1630 arg_3 = _n.unmarshalBoolean();
1631
1632 }
1633
1634 const char* const _0RL_cd_d5ececb61ec14044_91000000::_user_exns[] = {
1635 hpp::Error::_PD_repoId
1636 };
1637
1638 void _0RL_cd_d5ececb61ec14044_91000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
1639 {
1640 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
1641 hpp::Error _ex;
1642 _ex <<= s;
1643 if (iop_client) iop_client->RequestCompleted();
1644 throw _ex;
1645 }
1646
1647
1648 else {
1649 if (iop_client) iop_client->RequestCompleted(1);
1650 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
1651 (::CORBA::CompletionStatus)s.completion());
1652 }
1653 }
1654
1655 // Local call call-back function.
1656 static void
1657 _0RL_lcfn_d5ececb61ec14044_a1000000(omniCallDescriptor* cd, omniServant* svnt)
1658 {
1659 _0RL_cd_d5ececb61ec14044_91000000* tcd = (_0RL_cd_d5ececb61ec14044_91000000*)cd;
1660 hpp::core_idl::_impl_ConfigProjector* impl = (hpp::core_idl::_impl_ConfigProjector*) svnt->_ptrToInterface(hpp::core_idl::ConfigProjector::_PD_repoId);
1661 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1662 tcd->result = impl->isConstraintSatisfied(tcd->arg_0, *tcd->arg_1, tcd->arg_2.out(), tcd->arg_3);
1663 #else
1664 if (!cd->is_upcall())
1665 tcd->result = impl->isConstraintSatisfied(tcd->arg_0, *tcd->arg_1, tcd->arg_2.out(), tcd->arg_3);
1666 else {
1667 try {
1668 tcd->result = impl->isConstraintSatisfied(tcd->arg_0, *tcd->arg_1, tcd->arg_2.out(), tcd->arg_3);
1669 }
1670 catch(hpp::Error& ex) {
1671 throw omniORB::StubUserException(ex._NP_duplicate());
1672 }
1673
1674
1675 }
1676 #endif
1677
1678
1679 }
1680
1681 ::CORBA::Boolean hpp::core_idl::_objref_ConfigProjector::isConstraintSatisfied(::hpp::constraints_idl::Implicit_ptr nm, const ::hpp::floatSeq& arg, ::hpp::floatSeq_out err, ::CORBA::Boolean& constraintFound)
1682 {
1683 _0RL_cd_d5ececb61ec14044_91000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_a1000000, "isConstraintSatisfied", 22);
1684 _call_desc.arg_0 = nm;
1685 _call_desc.arg_1 = &(::hpp::floatSeq&) arg;
1686
1687 _invoke(_call_desc);
1688 err = _call_desc.arg_2._retn();
1689 constraintFound = _call_desc.arg_3;
1690 return _call_desc.result;
1691
1692
1693 }
1694
1695
1696 //
1697 // Code for hpp::core_idl::ConfigProjector::numericalConstraints
1698
1699 // Proxy call descriptor class. Mangled signature:
1700 // _chpp_mconstraints__idl_mImplicits_e_chpp_mError
1701 class _0RL_cd_d5ececb61ec14044_b1000000
1702 : public omniCallDescriptor
1703 {
1704 public:
1705 inline _0RL_cd_d5ececb61ec14044_b1000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
1706 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
1707 {
1708
1709 }
1710
1711
1712 void unmarshalReturnedValues(cdrStream&);
1713 void marshalReturnedValues(cdrStream&);
1714
1715 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
1716 static const char* const _user_exns[];
1717
1718 hpp::constraints_idl::Implicits_var result;
1719 };
1720
1721 void _0RL_cd_d5ececb61ec14044_b1000000::marshalReturnedValues(cdrStream& _n)
1722 {
1723 (const hpp::constraints_idl::Implicits&) result >>= _n;
1724
1725 }
1726
1727 void _0RL_cd_d5ececb61ec14044_b1000000::unmarshalReturnedValues(cdrStream& _n)
1728 {
1729 result = new hpp::constraints_idl::Implicits;
1730 (hpp::constraints_idl::Implicits&)result <<= _n;
1731
1732 }
1733
1734 const char* const _0RL_cd_d5ececb61ec14044_b1000000::_user_exns[] = {
1735 hpp::Error::_PD_repoId
1736 };
1737
1738 void _0RL_cd_d5ececb61ec14044_b1000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
1739 {
1740 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
1741 hpp::Error _ex;
1742 _ex <<= s;
1743 if (iop_client) iop_client->RequestCompleted();
1744 throw _ex;
1745 }
1746
1747
1748 else {
1749 if (iop_client) iop_client->RequestCompleted(1);
1750 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
1751 (::CORBA::CompletionStatus)s.completion());
1752 }
1753 }
1754
1755 // Local call call-back function.
1756 static void
1757 _0RL_lcfn_d5ececb61ec14044_c1000000(omniCallDescriptor* cd, omniServant* svnt)
1758 {
1759 _0RL_cd_d5ececb61ec14044_b1000000* tcd = (_0RL_cd_d5ececb61ec14044_b1000000*)cd;
1760 hpp::core_idl::_impl_ConfigProjector* impl = (hpp::core_idl::_impl_ConfigProjector*) svnt->_ptrToInterface(hpp::core_idl::ConfigProjector::_PD_repoId);
1761 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1762 tcd->result = impl->numericalConstraints();
1763 #else
1764 if (!cd->is_upcall())
1765 tcd->result = impl->numericalConstraints();
1766 else {
1767 try {
1768 tcd->result = impl->numericalConstraints();
1769 }
1770 catch(hpp::Error& ex) {
1771 throw omniORB::StubUserException(ex._NP_duplicate());
1772 }
1773
1774
1775 }
1776 #endif
1777
1778
1779 }
1780
1781 hpp::constraints_idl::Implicits* hpp::core_idl::_objref_ConfigProjector::numericalConstraints()
1782 {
1783 _0RL_cd_d5ececb61ec14044_b1000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_c1000000, "numericalConstraints", 21);
1784
1785
1786 _invoke(_call_desc);
1787 return _call_desc.result._retn();
1788
1789
1790 }
1791
1792
1793 //
1794 // Code for hpp::core_idl::ConfigProjector::add
1795
1796 // Proxy call descriptor class. Mangled signature:
1797 // _cboolean_i_chpp_mconstraints__idl_mImplicit_i_cunsigned_plong
1798 class _0RL_cd_d5ececb61ec14044_d1000000
1799 : public omniCallDescriptor
1800 {
1801 public:
1802 inline _0RL_cd_d5ececb61ec14044_d1000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
1803 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 0, upcall)
1804 {
1805
1806 }
1807
1808 void marshalArguments(cdrStream&);
1809 void unmarshalArguments(cdrStream&);
1810
1811 void unmarshalReturnedValues(cdrStream&);
1812 void marshalReturnedValues(cdrStream&);
1813
1814
1815 static const char* const _user_exns[];
1816
1817 hpp::constraints_idl::Implicit_var arg_0_;
1818 hpp::constraints_idl::Implicit_ptr arg_0;
1819 ::CORBA::ULong arg_1;
1820 ::CORBA::Boolean result;
1821 };
1822
1823 void _0RL_cd_d5ececb61ec14044_d1000000::marshalArguments(cdrStream& _n)
1824 {
1825 hpp::constraints_idl::Implicit::_marshalObjRef(arg_0,_n);
1826 arg_1 >>= _n;
1827
1828 }
1829
1830 void _0RL_cd_d5ececb61ec14044_d1000000::unmarshalArguments(cdrStream& _n)
1831 {
1832 arg_0_ = hpp::constraints_idl::Implicit::_unmarshalObjRef(_n);
1833 arg_0 = arg_0_.in();
1834 (::CORBA::ULong&)arg_1 <<= _n;
1835
1836 }
1837
1838 void _0RL_cd_d5ececb61ec14044_d1000000::marshalReturnedValues(cdrStream& _n)
1839 {
1840 _n.marshalBoolean(result);
1841
1842 }
1843
1844 void _0RL_cd_d5ececb61ec14044_d1000000::unmarshalReturnedValues(cdrStream& _n)
1845 {
1846 result = _n.unmarshalBoolean();
1847
1848 }
1849
1850 const char* const _0RL_cd_d5ececb61ec14044_d1000000::_user_exns[] = {
1851 0
1852 };
1853
1854 // Local call call-back function.
1855 static void
1856 _0RL_lcfn_d5ececb61ec14044_e1000000(omniCallDescriptor* cd, omniServant* svnt)
1857 {
1858 _0RL_cd_d5ececb61ec14044_d1000000* tcd = (_0RL_cd_d5ececb61ec14044_d1000000*)cd;
1859 hpp::core_idl::_impl_ConfigProjector* impl = (hpp::core_idl::_impl_ConfigProjector*) svnt->_ptrToInterface(hpp::core_idl::ConfigProjector::_PD_repoId);
1860 tcd->result = impl->add(tcd->arg_0, tcd->arg_1);
1861
1862
1863 }
1864
1865 ::CORBA::Boolean hpp::core_idl::_objref_ConfigProjector::add(::hpp::constraints_idl::Implicit_ptr numconstraint, ::CORBA::ULong priority)
1866 {
1867 _0RL_cd_d5ececb61ec14044_d1000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_e1000000, "add", 4);
1868 _call_desc.arg_0 = numconstraint;
1869 _call_desc.arg_1 = priority;
1870
1871 _invoke(_call_desc);
1872 return _call_desc.result;
1873
1874
1875 }
1876
1877
1878 //
1879 // Code for hpp::core_idl::ConfigProjector::setLastIsOptional
1880
1881 // Proxy call descriptor class. Mangled signature:
1882 // void_i_cboolean
1883 class _0RL_cd_d5ececb61ec14044_f1000000
1884 : public omniCallDescriptor
1885 {
1886 public:
1887 inline _0RL_cd_d5ececb61ec14044_f1000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
1888 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 0, upcall)
1889 {
1890
1891 }
1892
1893 void marshalArguments(cdrStream&);
1894 void unmarshalArguments(cdrStream&);
1895
1896
1897
1898 static const char* const _user_exns[];
1899
1900 ::CORBA::Boolean arg_0;
1901 };
1902
1903 void _0RL_cd_d5ececb61ec14044_f1000000::marshalArguments(cdrStream& _n)
1904 {
1905 _n.marshalBoolean(arg_0);
1906
1907 }
1908
1909 void _0RL_cd_d5ececb61ec14044_f1000000::unmarshalArguments(cdrStream& _n)
1910 {
1911 arg_0 = _n.unmarshalBoolean();
1912
1913 }
1914
1915 const char* const _0RL_cd_d5ececb61ec14044_f1000000::_user_exns[] = {
1916 0
1917 };
1918
1919 // Local call call-back function.
1920 static void
1921 _0RL_lcfn_d5ececb61ec14044_02000000(omniCallDescriptor* cd, omniServant* svnt)
1922 {
1923 _0RL_cd_d5ececb61ec14044_f1000000* tcd = (_0RL_cd_d5ececb61ec14044_f1000000*)cd;
1924 hpp::core_idl::_impl_ConfigProjector* impl = (hpp::core_idl::_impl_ConfigProjector*) svnt->_ptrToInterface(hpp::core_idl::ConfigProjector::_PD_repoId);
1925 impl->setLastIsOptional(tcd->arg_0);
1926
1927
1928 }
1929
1930 void hpp::core_idl::_objref_ConfigProjector::setLastIsOptional(::CORBA::Boolean optional)
1931 {
1932 _0RL_cd_d5ececb61ec14044_f1000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_02000000, "setLastIsOptional", 18);
1933 _call_desc.arg_0 = optional;
1934
1935 _invoke(_call_desc);
1936
1937
1938
1939 }
1940
1941
1942 //
1943 // Code for hpp::core_idl::ConfigProjector::getLastIsOptional
1944
1945 // Proxy call descriptor class. Mangled signature:
1946 // _cboolean
1947 class _0RL_cd_d5ececb61ec14044_12000000
1948 : public omniCallDescriptor
1949 {
1950 public:
1951 inline _0RL_cd_d5ececb61ec14044_12000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
1952 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 0, upcall)
1953 {
1954
1955 }
1956
1957
1958 void unmarshalReturnedValues(cdrStream&);
1959 void marshalReturnedValues(cdrStream&);
1960
1961
1962 static const char* const _user_exns[];
1963
1964 ::CORBA::Boolean result;
1965 };
1966
1967 void _0RL_cd_d5ececb61ec14044_12000000::marshalReturnedValues(cdrStream& _n)
1968 {
1969 _n.marshalBoolean(result);
1970
1971 }
1972
1973 void _0RL_cd_d5ececb61ec14044_12000000::unmarshalReturnedValues(cdrStream& _n)
1974 {
1975 result = _n.unmarshalBoolean();
1976
1977 }
1978
1979 const char* const _0RL_cd_d5ececb61ec14044_12000000::_user_exns[] = {
1980 0
1981 };
1982
1983 // Local call call-back function.
1984 static void
1985 _0RL_lcfn_d5ececb61ec14044_22000000(omniCallDescriptor* cd, omniServant* svnt)
1986 {
1987 _0RL_cd_d5ececb61ec14044_12000000* tcd = (_0RL_cd_d5ececb61ec14044_12000000*)cd;
1988 hpp::core_idl::_impl_ConfigProjector* impl = (hpp::core_idl::_impl_ConfigProjector*) svnt->_ptrToInterface(hpp::core_idl::ConfigProjector::_PD_repoId);
1989 tcd->result = impl->getLastIsOptional();
1990
1991
1992 }
1993
1994 ::CORBA::Boolean hpp::core_idl::_objref_ConfigProjector::getLastIsOptional()
1995 {
1996 _0RL_cd_d5ececb61ec14044_12000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_22000000, "getLastIsOptional", 18);
1997
1998
1999 _invoke(_call_desc);
2000 return _call_desc.result;
2001
2002
2003 }
2004
2005
2006 //
2007 // Code for hpp::core_idl::ConfigProjector::setErrorThreshold
2008
2009 // Local call call-back function.
2010 static void
2011 _0RL_lcfn_d5ececb61ec14044_32000000(omniCallDescriptor* cd, omniServant* svnt)
2012 {
2013 _0RL_cd_d5ececb61ec14044_71000000* tcd = (_0RL_cd_d5ececb61ec14044_71000000*)cd;
2014 hpp::core_idl::_impl_ConfigProjector* impl = (hpp::core_idl::_impl_ConfigProjector*) svnt->_ptrToInterface(hpp::core_idl::ConfigProjector::_PD_repoId);
2015 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
2016 impl->setErrorThreshold(tcd->arg_0);
2017 #else
2018 if (!cd->is_upcall())
2019 impl->setErrorThreshold(tcd->arg_0);
2020 else {
2021 try {
2022 impl->setErrorThreshold(tcd->arg_0);
2023 }
2024 catch(hpp::Error& ex) {
2025 throw omniORB::StubUserException(ex._NP_duplicate());
2026 }
2027
2028
2029 }
2030 #endif
2031
2032
2033 }
2034
2035 void hpp::core_idl::_objref_ConfigProjector::setErrorThreshold(::hpp::value_type threshold)
2036 {
2037 _0RL_cd_d5ececb61ec14044_71000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_32000000, "setErrorThreshold", 18);
2038 _call_desc.arg_0 = threshold;
2039
2040 _invoke(_call_desc);
2041
2042
2043
2044 }
2045
2046
2047 //
2048 // Code for hpp::core_idl::ConfigProjector::getErrorThreshold
2049
2050 // Proxy call descriptor class. Mangled signature:
2051 // _cdouble_e_chpp_mError
2052 class _0RL_cd_d5ececb61ec14044_42000000
2053 : public omniCallDescriptor
2054 {
2055 public:
2056 inline _0RL_cd_d5ececb61ec14044_42000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
2057 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
2058 {
2059
2060 }
2061
2062
2063 void unmarshalReturnedValues(cdrStream&);
2064 void marshalReturnedValues(cdrStream&);
2065
2066 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
2067 static const char* const _user_exns[];
2068
2069 hpp::value_type result;
2070 };
2071
2072 void _0RL_cd_d5ececb61ec14044_42000000::marshalReturnedValues(cdrStream& _n)
2073 {
2074 result >>= _n;
2075
2076 }
2077
2078 void _0RL_cd_d5ececb61ec14044_42000000::unmarshalReturnedValues(cdrStream& _n)
2079 {
2080 (hpp::value_type&)result <<= _n;
2081
2082 }
2083
2084 const char* const _0RL_cd_d5ececb61ec14044_42000000::_user_exns[] = {
2085 hpp::Error::_PD_repoId
2086 };
2087
2088 void _0RL_cd_d5ececb61ec14044_42000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
2089 {
2090 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
2091 hpp::Error _ex;
2092 _ex <<= s;
2093 if (iop_client) iop_client->RequestCompleted();
2094 throw _ex;
2095 }
2096
2097
2098 else {
2099 if (iop_client) iop_client->RequestCompleted(1);
2100 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
2101 (::CORBA::CompletionStatus)s.completion());
2102 }
2103 }
2104
2105 // Local call call-back function.
2106 static void
2107 _0RL_lcfn_d5ececb61ec14044_52000000(omniCallDescriptor* cd, omniServant* svnt)
2108 {
2109 _0RL_cd_d5ececb61ec14044_42000000* tcd = (_0RL_cd_d5ececb61ec14044_42000000*)cd;
2110 hpp::core_idl::_impl_ConfigProjector* impl = (hpp::core_idl::_impl_ConfigProjector*) svnt->_ptrToInterface(hpp::core_idl::ConfigProjector::_PD_repoId);
2111 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
2112 tcd->result = impl->getErrorThreshold();
2113 #else
2114 if (!cd->is_upcall())
2115 tcd->result = impl->getErrorThreshold();
2116 else {
2117 try {
2118 tcd->result = impl->getErrorThreshold();
2119 }
2120 catch(hpp::Error& ex) {
2121 throw omniORB::StubUserException(ex._NP_duplicate());
2122 }
2123
2124
2125 }
2126 #endif
2127
2128
2129 }
2130
2131 hpp::value_type hpp::core_idl::_objref_ConfigProjector::getErrorThreshold()
2132 {
2133 _0RL_cd_d5ececb61ec14044_42000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_52000000, "getErrorThreshold", 18);
2134
2135
2136 _invoke(_call_desc);
2137 return _call_desc.result;
2138
2139
2140 }
2141
2142 16 hpp::core_idl::_pof_ConfigProjector::~_pof_ConfigProjector() {}
2143
2144
2145 omniObjRef*
2146 3 hpp::core_idl::_pof_ConfigProjector::newObjRef(omniIOR* ior, omniIdentity* id)
2147 {
2148
2/4
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
3 return new ::hpp::core_idl::_objref_ConfigProjector(ior, id);
2149 }
2150
2151
2152 ::CORBA::Boolean
2153 3 hpp::core_idl::_pof_ConfigProjector::is_a(const char* id) const
2154 {
2155
2/2
✓ Branch 1 taken 2 times.
✓ Branch 2 taken 1 times.
3 if (omni::ptrStrMatch(id, ::hpp::core_idl::ConfigProjector::_PD_repoId))
2156 2 return 1;
2157
1/2
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
1 if (omni::ptrStrMatch(id, hpp::core_idl::Constraint::_PD_repoId))
2158 1 return 1;
2159
2160
2161 return 0;
2162 }
2163
2164 const hpp::core_idl::_pof_ConfigProjector _the_pof_hpp_mcore__idl_mConfigProjector;
2165
2166 6 hpp::core_idl::_impl_ConfigProjector::~_impl_ConfigProjector() {}
2167
2168
2169 ::CORBA::Boolean
2170 4 hpp::core_idl::_impl_ConfigProjector::_dispatch(omniCallHandle& _handle)
2171 {
2172 4 const char* op = _handle.operation_name();
2173
2174
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (omni::strMatch(op, "setRightHandSideFromConfig")) {
2175
2176 _0RL_cd_d5ececb61ec14044_f0000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_01000000, "setRightHandSideFromConfig", 27, 1);
2177
2178 _handle.upcall(this,_call_desc);
2179 return 1;
2180 }
2181
2182
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (omni::strMatch(op, "setRightHandSideOfConstraintFromConfig")) {
2183
2184 _0RL_cd_d5ececb61ec14044_11000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_21000000, "setRightHandSideOfConstraintFromConfig", 39, 1);
2185
2186 _handle.upcall(this,_call_desc);
2187 return 1;
2188 }
2189
2190
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (omni::strMatch(op, "setRightHandSide")) {
2191
2192 _0RL_cd_d5ececb61ec14044_f0000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_31000000, "setRightHandSide", 17, 1);
2193
2194 _handle.upcall(this,_call_desc);
2195 return 1;
2196 }
2197
2198
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (omni::strMatch(op, "setRightHandSideOfConstraint")) {
2199
2200 _0RL_cd_d5ececb61ec14044_11000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_41000000, "setRightHandSideOfConstraint", 29, 1);
2201
2202 _handle.upcall(this,_call_desc);
2203 return 1;
2204 }
2205
2206
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (omni::strMatch(op, "getRightHandSide")) {
2207
2208 _0RL_cd_d5ececb61ec14044_51000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_61000000, "getRightHandSide", 17, 1);
2209
2210 _handle.upcall(this,_call_desc);
2211 return 1;
2212 }
2213
2214
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (omni::strMatch(op, "setRightHandSideAt")) {
2215
2216 _0RL_cd_d5ececb61ec14044_71000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_81000000, "setRightHandSideAt", 19, 1);
2217
2218 _handle.upcall(this,_call_desc);
2219 return 1;
2220 }
2221
2222
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (omni::strMatch(op, "isConstraintSatisfied")) {
2223
2224 _0RL_cd_d5ececb61ec14044_91000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_a1000000, "isConstraintSatisfied", 22, 1);
2225
2226 _handle.upcall(this,_call_desc);
2227 return 1;
2228 }
2229
2230
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (omni::strMatch(op, "numericalConstraints")) {
2231
2232 _0RL_cd_d5ececb61ec14044_b1000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_c1000000, "numericalConstraints", 21, 1);
2233
2234 _handle.upcall(this,_call_desc);
2235 return 1;
2236 }
2237
2238
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (omni::strMatch(op, "add")) {
2239
2240 _0RL_cd_d5ececb61ec14044_d1000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_e1000000, "add", 4, 1);
2241
2242 _handle.upcall(this,_call_desc);
2243 return 1;
2244 }
2245
2246
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (omni::strMatch(op, "setLastIsOptional")) {
2247
2248 _0RL_cd_d5ececb61ec14044_f1000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_02000000, "setLastIsOptional", 18, 1);
2249
2250 _handle.upcall(this,_call_desc);
2251 return 1;
2252 }
2253
2254
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (omni::strMatch(op, "getLastIsOptional")) {
2255
2256 _0RL_cd_d5ececb61ec14044_12000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_22000000, "getLastIsOptional", 18, 1);
2257
2258 _handle.upcall(this,_call_desc);
2259 return 1;
2260 }
2261
2262
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (omni::strMatch(op, "setErrorThreshold")) {
2263
2264 _0RL_cd_d5ececb61ec14044_71000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_32000000, "setErrorThreshold", 18, 1);
2265
2266 _handle.upcall(this,_call_desc);
2267 return 1;
2268 }
2269
2270
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (omni::strMatch(op, "getErrorThreshold")) {
2271
2272 _0RL_cd_d5ececb61ec14044_42000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_52000000, "getErrorThreshold", 18, 1);
2273
2274 _handle.upcall(this,_call_desc);
2275 return 1;
2276 }
2277
2278
2279 #ifndef _MSC_VER
2280
2/2
✓ Branch 1 taken 2 times.
✓ Branch 2 taken 2 times.
4 if (_impl_Constraint::_dispatch(_handle)) {
2281 2 return 1;
2282 }
2283 #else
2284 // Work-around for incorrect MSVC code generation.
2285 if (((_impl_Constraint*)this)->
2286 _impl_Constraint::_dispatch(_handle)) {
2287 return 1;
2288 }
2289 #endif
2290
2291
2292 2 return 0;
2293 }
2294
2295 void*
2296 9 hpp::core_idl::_impl_ConfigProjector::_ptrToInterface(const char* id)
2297 {
2298
2/2
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 7 times.
9 if (id == ::hpp::core_idl::ConfigProjector::_PD_repoId)
2299 2 return (::hpp::core_idl::_impl_ConfigProjector*) this;
2300
2/2
✓ Branch 0 taken 5 times.
✓ Branch 1 taken 2 times.
7 if (id == ::hpp::core_idl::Constraint::_PD_repoId)
2301 5 return (::hpp::core_idl::_impl_Constraint*) this;
2302
2303
2304
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 if (id == ::CORBA::Object::_PD_repoId)
2305 return (void*) 1;
2306
2307
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
2 if (omni::strMatch(id, ::hpp::core_idl::ConfigProjector::_PD_repoId))
2308 return (::hpp::core_idl::_impl_ConfigProjector*) this;
2309
1/2
✓ Branch 1 taken 2 times.
✗ Branch 2 not taken.
2 if (omni::strMatch(id, ::hpp::core_idl::Constraint::_PD_repoId))
2310 2 return (::hpp::core_idl::_impl_Constraint*) this;
2311
2312
2313 if (omni::strMatch(id, ::CORBA::Object::_PD_repoId))
2314 return (void*) 1;
2315 return 0;
2316 }
2317
2318 const char*
2319 3 hpp::core_idl::_impl_ConfigProjector::_mostDerivedRepoId()
2320 {
2321 3 return ::hpp::core_idl::ConfigProjector::_PD_repoId;
2322 }
2323
2324 hpp::core_idl::ConstraintSet_ptr hpp::core_idl::ConstraintSet_Helper::_nil() {
2325 return ::hpp::core_idl::ConstraintSet::_nil();
2326 }
2327
2328 ::CORBA::Boolean hpp::core_idl::ConstraintSet_Helper::is_nil(::hpp::core_idl::ConstraintSet_ptr p) {
2329 return ::CORBA::is_nil(p);
2330
2331 }
2332
2333 void hpp::core_idl::ConstraintSet_Helper::release(::hpp::core_idl::ConstraintSet_ptr p) {
2334 ::CORBA::release(p);
2335 }
2336
2337 void hpp::core_idl::ConstraintSet_Helper::marshalObjRef(::hpp::core_idl::ConstraintSet_ptr obj, cdrStream& s) {
2338 ::hpp::core_idl::ConstraintSet::_marshalObjRef(obj, s);
2339 }
2340
2341 hpp::core_idl::ConstraintSet_ptr hpp::core_idl::ConstraintSet_Helper::unmarshalObjRef(cdrStream& s) {
2342 return ::hpp::core_idl::ConstraintSet::_unmarshalObjRef(s);
2343 }
2344
2345 void hpp::core_idl::ConstraintSet_Helper::duplicate(::hpp::core_idl::ConstraintSet_ptr obj) {
2346 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
2347 }
2348
2349 hpp::core_idl::ConstraintSet_ptr
2350 hpp::core_idl::ConstraintSet::_duplicate(::hpp::core_idl::ConstraintSet_ptr obj)
2351 {
2352 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
2353 return obj;
2354 }
2355
2356 hpp::core_idl::ConstraintSet_ptr
2357 hpp::core_idl::ConstraintSet::_narrow(::CORBA::Object_ptr obj)
2358 {
2359 if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil();
2360 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId);
2361 return e ? e : _nil();
2362 }
2363
2364
2365 hpp::core_idl::ConstraintSet_ptr
2366 hpp::core_idl::ConstraintSet::_unchecked_narrow(::CORBA::Object_ptr obj)
2367 {
2368 if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil();
2369 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_uncheckedNarrow(_PD_repoId);
2370 return e ? e : _nil();
2371 }
2372
2373 hpp::core_idl::ConstraintSet_ptr
2374 hpp::core_idl::ConstraintSet::_nil()
2375 {
2376 #ifdef OMNI_UNLOADABLE_STUBS
2377 static _objref_ConstraintSet _the_nil_obj;
2378 return &_the_nil_obj;
2379 #else
2380 static _objref_ConstraintSet* _the_nil_ptr = 0;
2381 if (!_the_nil_ptr) {
2382 omni::nilRefLock().lock();
2383 if (!_the_nil_ptr) {
2384 _the_nil_ptr = new _objref_ConstraintSet;
2385 registerNilCorbaObject(_the_nil_ptr);
2386 }
2387 omni::nilRefLock().unlock();
2388 }
2389 return _the_nil_ptr;
2390 #endif
2391 }
2392
2393 const char* hpp::core_idl::ConstraintSet::_PD_repoId = "IDL:hpp/core_idl/ConstraintSet:1.0";
2394
2395
2396 4 hpp::core_idl::_objref_ConstraintSet::~_objref_ConstraintSet() {
2397
2398 }
2399
2400
2401 2 hpp::core_idl::_objref_ConstraintSet::_objref_ConstraintSet(omniIOR* ior, omniIdentity* id) :
2402 omniObjRef(::hpp::core_idl::ConstraintSet::_PD_repoId, ior, id, 1),
2403
2/4
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 1 times.
✗ Branch 6 not taken.
2 _objref_Constraint(ior, id)
2404
2405 {
2406 2 _PR_setobj(this);
2407 }
2408
2409 void*
2410 1 hpp::core_idl::_objref_ConstraintSet::_ptrToObjRef(const char* id)
2411 {
2412
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 if (id == ::hpp::core_idl::ConstraintSet::_PD_repoId)
2413 1 return (::hpp::core_idl::ConstraintSet_ptr) this;
2414 if (id == ::hpp::core_idl::Constraint::_PD_repoId)
2415 return (::hpp::core_idl::Constraint_ptr) this;
2416
2417
2418 if (id == ::CORBA::Object::_PD_repoId)
2419 return (::CORBA::Object_ptr) this;
2420
2421 if (omni::strMatch(id, ::hpp::core_idl::ConstraintSet::_PD_repoId))
2422 return (::hpp::core_idl::ConstraintSet_ptr) this;
2423 if (omni::strMatch(id, ::hpp::core_idl::Constraint::_PD_repoId))
2424 return (::hpp::core_idl::Constraint_ptr) this;
2425
2426
2427 if (omni::strMatch(id, ::CORBA::Object::_PD_repoId))
2428 return (::CORBA::Object_ptr) this;
2429
2430 return 0;
2431 }
2432
2433
2434 //
2435 // Code for hpp::core_idl::ConstraintSet::getConfigProjector
2436
2437 // Local call call-back function.
2438 static void
2439 3 _0RL_lcfn_d5ececb61ec14044_62000000(omniCallDescriptor* cd, omniServant* svnt)
2440 {
2441 3 _0RL_cd_d5ececb61ec14044_d0000000* tcd = (_0RL_cd_d5ececb61ec14044_d0000000*)cd;
2442 3 hpp::core_idl::_impl_ConstraintSet* impl = (hpp::core_idl::_impl_ConstraintSet*) svnt->_ptrToInterface(hpp::core_idl::ConstraintSet::_PD_repoId);
2443 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
2444 3 tcd->result = impl->getConfigProjector();
2445 #else
2446 if (!cd->is_upcall())
2447 tcd->result = impl->getConfigProjector();
2448 else {
2449 try {
2450 tcd->result = impl->getConfigProjector();
2451 }
2452 catch(hpp::Error& ex) {
2453 throw omniORB::StubUserException(ex._NP_duplicate());
2454 }
2455
2456
2457 }
2458 #endif
2459
2460
2461 3 }
2462
2463 hpp::core_idl::Constraint_ptr hpp::core_idl::_objref_ConstraintSet::getConfigProjector()
2464 {
2465 _0RL_cd_d5ececb61ec14044_d0000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_62000000, "getConfigProjector", 19);
2466
2467
2468 _invoke(_call_desc);
2469 return _call_desc.result._retn();
2470
2471
2472 }
2473
2474
2475 //
2476 // Code for hpp::core_idl::ConstraintSet::addConstraint
2477
2478 // Proxy call descriptor class. Mangled signature:
2479 // void_i_chpp_mcore__idl_mConstraint_e_chpp_mError
2480 class _0RL_cd_d5ececb61ec14044_72000000
2481 : public omniCallDescriptor
2482 {
2483 public:
2484 1 inline _0RL_cd_d5ececb61ec14044_72000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
2485
1/2
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
1 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
2486 {
2487
2488 1 }
2489
2490 void marshalArguments(cdrStream&);
2491 void unmarshalArguments(cdrStream&);
2492
2493
2494 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
2495 static const char* const _user_exns[];
2496
2497 hpp::core_idl::Constraint_var arg_0_;
2498 hpp::core_idl::Constraint_ptr arg_0;
2499 };
2500
2501 void _0RL_cd_d5ececb61ec14044_72000000::marshalArguments(cdrStream& _n)
2502 {
2503 hpp::core_idl::Constraint::_marshalObjRef(arg_0,_n);
2504
2505 }
2506
2507 1 void _0RL_cd_d5ececb61ec14044_72000000::unmarshalArguments(cdrStream& _n)
2508 {
2509 1 arg_0_ = hpp::core_idl::Constraint::_unmarshalObjRef(_n);
2510 1 arg_0 = arg_0_.in();
2511
2512 1 }
2513
2514 const char* const _0RL_cd_d5ececb61ec14044_72000000::_user_exns[] = {
2515 hpp::Error::_PD_repoId
2516 };
2517
2518 void _0RL_cd_d5ececb61ec14044_72000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
2519 {
2520 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
2521 hpp::Error _ex;
2522 _ex <<= s;
2523 if (iop_client) iop_client->RequestCompleted();
2524 throw _ex;
2525 }
2526
2527
2528 else {
2529 if (iop_client) iop_client->RequestCompleted(1);
2530 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
2531 (::CORBA::CompletionStatus)s.completion());
2532 }
2533 }
2534
2535 // Local call call-back function.
2536 static void
2537 1 _0RL_lcfn_d5ececb61ec14044_82000000(omniCallDescriptor* cd, omniServant* svnt)
2538 {
2539 1 _0RL_cd_d5ececb61ec14044_72000000* tcd = (_0RL_cd_d5ececb61ec14044_72000000*)cd;
2540 1 hpp::core_idl::_impl_ConstraintSet* impl = (hpp::core_idl::_impl_ConstraintSet*) svnt->_ptrToInterface(hpp::core_idl::ConstraintSet::_PD_repoId);
2541 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
2542 1 impl->addConstraint(tcd->arg_0);
2543 #else
2544 if (!cd->is_upcall())
2545 impl->addConstraint(tcd->arg_0);
2546 else {
2547 try {
2548 impl->addConstraint(tcd->arg_0);
2549 }
2550 catch(hpp::Error& ex) {
2551 throw omniORB::StubUserException(ex._NP_duplicate());
2552 }
2553
2554
2555 }
2556 #endif
2557
2558
2559 1 }
2560
2561 void hpp::core_idl::_objref_ConstraintSet::addConstraint(::hpp::core_idl::Constraint_ptr a_constraint)
2562 {
2563 _0RL_cd_d5ececb61ec14044_72000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_82000000, "addConstraint", 14);
2564 _call_desc.arg_0 = a_constraint;
2565
2566 _invoke(_call_desc);
2567
2568
2569
2570 }
2571
2572 16 hpp::core_idl::_pof_ConstraintSet::~_pof_ConstraintSet() {}
2573
2574
2575 omniObjRef*
2576 1 hpp::core_idl::_pof_ConstraintSet::newObjRef(omniIOR* ior, omniIdentity* id)
2577 {
2578
2/4
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
1 return new ::hpp::core_idl::_objref_ConstraintSet(ior, id);
2579 }
2580
2581
2582 ::CORBA::Boolean
2583 1 hpp::core_idl::_pof_ConstraintSet::is_a(const char* id) const
2584 {
2585
1/2
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
1 if (omni::ptrStrMatch(id, ::hpp::core_idl::ConstraintSet::_PD_repoId))
2586 1 return 1;
2587 if (omni::ptrStrMatch(id, hpp::core_idl::Constraint::_PD_repoId))
2588 return 1;
2589
2590
2591 return 0;
2592 }
2593
2594 const hpp::core_idl::_pof_ConstraintSet _the_pof_hpp_mcore__idl_mConstraintSet;
2595
2596 2 hpp::core_idl::_impl_ConstraintSet::~_impl_ConstraintSet() {}
2597
2598
2599 ::CORBA::Boolean
2600 5 hpp::core_idl::_impl_ConstraintSet::_dispatch(omniCallHandle& _handle)
2601 {
2602 5 const char* op = _handle.operation_name();
2603
2604
2/2
✓ Branch 1 taken 3 times.
✓ Branch 2 taken 2 times.
5 if (omni::strMatch(op, "getConfigProjector")) {
2605
2606
1/2
✓ Branch 1 taken 3 times.
✗ Branch 2 not taken.
3 _0RL_cd_d5ececb61ec14044_d0000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_62000000, "getConfigProjector", 19, 1);
2607
2608
1/2
✓ Branch 1 taken 3 times.
✗ Branch 2 not taken.
3 _handle.upcall(this,_call_desc);
2609 3 return 1;
2610 3 }
2611
2612
2/2
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
2 if (omni::strMatch(op, "addConstraint")) {
2613
2614
1/2
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
1 _0RL_cd_d5ececb61ec14044_72000000 _call_desc(_0RL_lcfn_d5ececb61ec14044_82000000, "addConstraint", 14, 1);
2615
2616
1/2
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
1 _handle.upcall(this,_call_desc);
2617 1 return 1;
2618 1 }
2619
2620
2621 #ifndef _MSC_VER
2622
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 1 times.
1 if (_impl_Constraint::_dispatch(_handle)) {
2623 return 1;
2624 }
2625 #else
2626 // Work-around for incorrect MSVC code generation.
2627 if (((_impl_Constraint*)this)->
2628 _impl_Constraint::_dispatch(_handle)) {
2629 return 1;
2630 }
2631 #endif
2632
2633
2634 1 return 0;
2635 }
2636
2637 void*
2638 6 hpp::core_idl::_impl_ConstraintSet::_ptrToInterface(const char* id)
2639 {
2640
2/2
✓ Branch 0 taken 5 times.
✓ Branch 1 taken 1 times.
6 if (id == ::hpp::core_idl::ConstraintSet::_PD_repoId)
2641 5 return (::hpp::core_idl::_impl_ConstraintSet*) this;
2642
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
1 if (id == ::hpp::core_idl::Constraint::_PD_repoId)
2643 return (::hpp::core_idl::_impl_Constraint*) this;
2644
2645
2646
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
1 if (id == ::CORBA::Object::_PD_repoId)
2647 return (void*) 1;
2648
2649
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 1 times.
1 if (omni::strMatch(id, ::hpp::core_idl::ConstraintSet::_PD_repoId))
2650 return (::hpp::core_idl::_impl_ConstraintSet*) this;
2651
1/2
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
1 if (omni::strMatch(id, ::hpp::core_idl::Constraint::_PD_repoId))
2652 1 return (::hpp::core_idl::_impl_Constraint*) this;
2653
2654
2655 if (omni::strMatch(id, ::CORBA::Object::_PD_repoId))
2656 return (void*) 1;
2657 return 0;
2658 }
2659
2660 const char*
2661 1 hpp::core_idl::_impl_ConstraintSet::_mostDerivedRepoId()
2662 {
2663 1 return ::hpp::core_idl::ConstraintSet::_PD_repoId;
2664 }
2665
2666 8 POA_hpp::core_idl::Constraint::~Constraint() {}
2667
2668 6 POA_hpp::core_idl::ConfigProjector::~ConfigProjector() {}
2669
2670 2 POA_hpp::core_idl::ConstraintSet::~ConstraintSet() {}
2671
2672