GCC Code Coverage Report


Directory: src/
File: src/affordanceSK.cc
Date: 2025-05-20 11:04:06
Exec Total Coverage
Lines: 0 546 0.0%
Functions: 0 101 0.0%
Branches: 0 336 0.0%

Line Branch Exec Source
1 // This file is generated by omniidl (C++ backend) - omniORB_4_3. Do not edit.
2
3 #include "affordance-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::corbaserver::affordance::Afford_ptr hpp::corbaserver::affordance::Afford_Helper::_nil() {
18 return ::hpp::corbaserver::affordance::Afford::_nil();
19 }
20
21 ::CORBA::Boolean hpp::corbaserver::affordance::Afford_Helper::is_nil(::hpp::corbaserver::affordance::Afford_ptr p) {
22 return ::CORBA::is_nil(p);
23
24 }
25
26 void hpp::corbaserver::affordance::Afford_Helper::release(::hpp::corbaserver::affordance::Afford_ptr p) {
27 ::CORBA::release(p);
28 }
29
30 void hpp::corbaserver::affordance::Afford_Helper::marshalObjRef(::hpp::corbaserver::affordance::Afford_ptr obj, cdrStream& s) {
31 ::hpp::corbaserver::affordance::Afford::_marshalObjRef(obj, s);
32 }
33
34 hpp::corbaserver::affordance::Afford_ptr hpp::corbaserver::affordance::Afford_Helper::unmarshalObjRef(cdrStream& s) {
35 return ::hpp::corbaserver::affordance::Afford::_unmarshalObjRef(s);
36 }
37
38 void hpp::corbaserver::affordance::Afford_Helper::duplicate(::hpp::corbaserver::affordance::Afford_ptr obj) {
39 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
40 }
41
42 hpp::corbaserver::affordance::Afford_ptr
43 hpp::corbaserver::affordance::Afford::_duplicate(::hpp::corbaserver::affordance::Afford_ptr obj)
44 {
45 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
46 return obj;
47 }
48
49 hpp::corbaserver::affordance::Afford_ptr
50 hpp::corbaserver::affordance::Afford::_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::corbaserver::affordance::Afford_ptr
59 hpp::corbaserver::affordance::Afford::_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::corbaserver::affordance::Afford_ptr
67 hpp::corbaserver::affordance::Afford::_nil()
68 {
69 #ifdef OMNI_UNLOADABLE_STUBS
70 static _objref_Afford _the_nil_obj;
71 return &_the_nil_obj;
72 #else
73 static _objref_Afford* _the_nil_ptr = 0;
74 if (!_the_nil_ptr) {
75 omni::nilRefLock().lock();
76 if (!_the_nil_ptr) {
77 _the_nil_ptr = new _objref_Afford;
78 registerNilCorbaObject(_the_nil_ptr);
79 }
80 omni::nilRefLock().unlock();
81 }
82 return _the_nil_ptr;
83 #endif
84 }
85
86 const char* hpp::corbaserver::affordance::Afford::_PD_repoId = "IDL:hpp/corbaserver/affordance/Afford:1.0";
87
88
89 hpp::corbaserver::affordance::_objref_Afford::~_objref_Afford() {
90
91 }
92
93
94 hpp::corbaserver::affordance::_objref_Afford::_objref_Afford(omniIOR* ior, omniIdentity* id) :
95 omniObjRef(::hpp::corbaserver::affordance::Afford::_PD_repoId, ior, id, 1)
96
97
98 {
99 _PR_setobj(this);
100 }
101
102 void*
103 hpp::corbaserver::affordance::_objref_Afford::_ptrToObjRef(const char* id)
104 {
105 if (id == ::hpp::corbaserver::affordance::Afford::_PD_repoId)
106 return (::hpp::corbaserver::affordance::Afford_ptr) this;
107
108 if (id == ::CORBA::Object::_PD_repoId)
109 return (::CORBA::Object_ptr) this;
110
111 if (omni::strMatch(id, ::hpp::corbaserver::affordance::Afford::_PD_repoId))
112 return (::hpp::corbaserver::affordance::Afford_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::corbaserver::affordance::Afford::resetAffordanceConfig
123
124 // Proxy call descriptor class. Mangled signature:
125 // void_e_chpp_mError
126 class _0RL_cd_1893c58ec7d81343_00000000
127 : public omniCallDescriptor
128 {
129 public:
130 inline _0RL_cd_1893c58ec7d81343_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_1893c58ec7d81343_00000000::_user_exns[] = {
145 hpp::Error::_PD_repoId
146 };
147
148 void _0RL_cd_1893c58ec7d81343_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_1893c58ec7d81343_10000000(omniCallDescriptor* _OMNIORB_EX_ONLY_CD(cd), omniServant* svnt)
168 {
169
170 hpp::corbaserver::affordance::_impl_Afford* impl = (hpp::corbaserver::affordance::_impl_Afford*) svnt->_ptrToInterface(hpp::corbaserver::affordance::Afford::_PD_repoId);
171 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
172 impl->resetAffordanceConfig();
173 #else
174 if (!cd->is_upcall())
175 impl->resetAffordanceConfig();
176 else {
177 try {
178 impl->resetAffordanceConfig();
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::corbaserver::affordance::_objref_Afford::resetAffordanceConfig()
192 {
193 _0RL_cd_1893c58ec7d81343_00000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_10000000, "resetAffordanceConfig", 22);
194
195
196 _invoke(_call_desc);
197
198
199
200 }
201
202
203 //
204 // Code for hpp::corbaserver::affordance::Afford::setAffordanceConfig
205
206 // Proxy call descriptor class. Mangled signature:
207 // void_i_cstring_i_chpp_mdoubleSeq_e_chpp_mError
208 class _0RL_cd_1893c58ec7d81343_20000000
209 : public omniCallDescriptor
210 {
211 public:
212 inline _0RL_cd_1893c58ec7d81343_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 void marshalArguments(cdrStream&);
219 void unmarshalArguments(cdrStream&);
220
221
222 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
223 static const char* const _user_exns[];
224
225 ::CORBA::String_var arg_0_;
226 const char* arg_0;
227 hpp::doubleSeq_var arg_1_;
228 const hpp::doubleSeq* arg_1;
229 };
230
231 void _0RL_cd_1893c58ec7d81343_20000000::marshalArguments(cdrStream& _n)
232 {
233 _n.marshalString(arg_0,0);
234 (const hpp::doubleSeq&) *arg_1 >>= _n;
235
236 }
237
238 void _0RL_cd_1893c58ec7d81343_20000000::unmarshalArguments(cdrStream& _n)
239 {
240 arg_0_ = _n.unmarshalString(0);
241 arg_0 = arg_0_.in();
242 arg_1_ = new hpp::doubleSeq;
243 (hpp::doubleSeq&)arg_1_ <<= _n;
244 arg_1 = &arg_1_.in();
245
246 }
247
248 const char* const _0RL_cd_1893c58ec7d81343_20000000::_user_exns[] = {
249 hpp::Error::_PD_repoId
250 };
251
252 void _0RL_cd_1893c58ec7d81343_20000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
253 {
254 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
255 hpp::Error _ex;
256 _ex <<= s;
257 if (iop_client) iop_client->RequestCompleted();
258 throw _ex;
259 }
260
261
262 else {
263 if (iop_client) iop_client->RequestCompleted(1);
264 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
265 (::CORBA::CompletionStatus)s.completion());
266 }
267 }
268
269 // Local call call-back function.
270 static void
271 _0RL_lcfn_1893c58ec7d81343_30000000(omniCallDescriptor* cd, omniServant* svnt)
272 {
273 _0RL_cd_1893c58ec7d81343_20000000* tcd = (_0RL_cd_1893c58ec7d81343_20000000*)cd;
274 hpp::corbaserver::affordance::_impl_Afford* impl = (hpp::corbaserver::affordance::_impl_Afford*) svnt->_ptrToInterface(hpp::corbaserver::affordance::Afford::_PD_repoId);
275 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
276 impl->setAffordanceConfig(tcd->arg_0, *tcd->arg_1);
277 #else
278 if (!cd->is_upcall())
279 impl->setAffordanceConfig(tcd->arg_0, *tcd->arg_1);
280 else {
281 try {
282 impl->setAffordanceConfig(tcd->arg_0, *tcd->arg_1);
283 }
284 catch(hpp::Error& ex) {
285 throw omniORB::StubUserException(ex._NP_duplicate());
286 }
287
288
289 }
290 #endif
291
292
293 }
294
295 void hpp::corbaserver::affordance::_objref_Afford::setAffordanceConfig(const char* affType, const ::hpp::doubleSeq& conf)
296 {
297 _0RL_cd_1893c58ec7d81343_20000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_30000000, "setAffordanceConfig", 20);
298 _call_desc.arg_0 = affType;
299 _call_desc.arg_1 = &(::hpp::doubleSeq&) conf;
300
301 _invoke(_call_desc);
302
303
304
305 }
306
307
308 //
309 // Code for hpp::corbaserver::affordance::Afford::getAffordanceConfig
310
311 // Proxy call descriptor class. Mangled signature:
312 // _chpp_mdoubleSeq_i_cstring_e_chpp_mError
313 class _0RL_cd_1893c58ec7d81343_40000000
314 : public omniCallDescriptor
315 {
316 public:
317 inline _0RL_cd_1893c58ec7d81343_40000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
318 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
319 {
320
321 }
322
323 void marshalArguments(cdrStream&);
324 void unmarshalArguments(cdrStream&);
325
326 void unmarshalReturnedValues(cdrStream&);
327 void marshalReturnedValues(cdrStream&);
328
329 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
330 static const char* const _user_exns[];
331
332 ::CORBA::String_var arg_0_;
333 const char* arg_0;
334 hpp::doubleSeq_var result;
335 };
336
337 void _0RL_cd_1893c58ec7d81343_40000000::marshalArguments(cdrStream& _n)
338 {
339 _n.marshalString(arg_0,0);
340
341 }
342
343 void _0RL_cd_1893c58ec7d81343_40000000::unmarshalArguments(cdrStream& _n)
344 {
345 arg_0_ = _n.unmarshalString(0);
346 arg_0 = arg_0_.in();
347
348 }
349
350 void _0RL_cd_1893c58ec7d81343_40000000::marshalReturnedValues(cdrStream& _n)
351 {
352 (const hpp::doubleSeq&) result >>= _n;
353
354 }
355
356 void _0RL_cd_1893c58ec7d81343_40000000::unmarshalReturnedValues(cdrStream& _n)
357 {
358 result = new hpp::doubleSeq;
359 (hpp::doubleSeq&)result <<= _n;
360
361 }
362
363 const char* const _0RL_cd_1893c58ec7d81343_40000000::_user_exns[] = {
364 hpp::Error::_PD_repoId
365 };
366
367 void _0RL_cd_1893c58ec7d81343_40000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
368 {
369 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
370 hpp::Error _ex;
371 _ex <<= s;
372 if (iop_client) iop_client->RequestCompleted();
373 throw _ex;
374 }
375
376
377 else {
378 if (iop_client) iop_client->RequestCompleted(1);
379 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
380 (::CORBA::CompletionStatus)s.completion());
381 }
382 }
383
384 // Local call call-back function.
385 static void
386 _0RL_lcfn_1893c58ec7d81343_50000000(omniCallDescriptor* cd, omniServant* svnt)
387 {
388 _0RL_cd_1893c58ec7d81343_40000000* tcd = (_0RL_cd_1893c58ec7d81343_40000000*)cd;
389 hpp::corbaserver::affordance::_impl_Afford* impl = (hpp::corbaserver::affordance::_impl_Afford*) svnt->_ptrToInterface(hpp::corbaserver::affordance::Afford::_PD_repoId);
390 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
391 tcd->result = impl->getAffordanceConfig(tcd->arg_0);
392 #else
393 if (!cd->is_upcall())
394 tcd->result = impl->getAffordanceConfig(tcd->arg_0);
395 else {
396 try {
397 tcd->result = impl->getAffordanceConfig(tcd->arg_0);
398 }
399 catch(hpp::Error& ex) {
400 throw omniORB::StubUserException(ex._NP_duplicate());
401 }
402
403
404 }
405 #endif
406
407
408 }
409
410 hpp::doubleSeq* hpp::corbaserver::affordance::_objref_Afford::getAffordanceConfig(const char* affType)
411 {
412 _0RL_cd_1893c58ec7d81343_40000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_50000000, "getAffordanceConfig", 20);
413 _call_desc.arg_0 = affType;
414
415 _invoke(_call_desc);
416 return _call_desc.result._retn();
417
418
419 }
420
421
422 //
423 // Code for hpp::corbaserver::affordance::Afford::setMargin
424
425 // Proxy call descriptor class. Mangled signature:
426 // void_i_cstring_i_cdouble_e_chpp_mError
427 class _0RL_cd_1893c58ec7d81343_60000000
428 : public omniCallDescriptor
429 {
430 public:
431 inline _0RL_cd_1893c58ec7d81343_60000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
432 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
433 {
434
435 }
436
437 void marshalArguments(cdrStream&);
438 void unmarshalArguments(cdrStream&);
439
440
441 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
442 static const char* const _user_exns[];
443
444 ::CORBA::String_var arg_0_;
445 const char* arg_0;
446 ::CORBA::Double arg_1;
447 };
448
449 void _0RL_cd_1893c58ec7d81343_60000000::marshalArguments(cdrStream& _n)
450 {
451 _n.marshalString(arg_0,0);
452 arg_1 >>= _n;
453
454 }
455
456 void _0RL_cd_1893c58ec7d81343_60000000::unmarshalArguments(cdrStream& _n)
457 {
458 arg_0_ = _n.unmarshalString(0);
459 arg_0 = arg_0_.in();
460 (::CORBA::Double&)arg_1 <<= _n;
461
462 }
463
464 const char* const _0RL_cd_1893c58ec7d81343_60000000::_user_exns[] = {
465 hpp::Error::_PD_repoId
466 };
467
468 void _0RL_cd_1893c58ec7d81343_60000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
469 {
470 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
471 hpp::Error _ex;
472 _ex <<= s;
473 if (iop_client) iop_client->RequestCompleted();
474 throw _ex;
475 }
476
477
478 else {
479 if (iop_client) iop_client->RequestCompleted(1);
480 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
481 (::CORBA::CompletionStatus)s.completion());
482 }
483 }
484
485 // Local call call-back function.
486 static void
487 _0RL_lcfn_1893c58ec7d81343_70000000(omniCallDescriptor* cd, omniServant* svnt)
488 {
489 _0RL_cd_1893c58ec7d81343_60000000* tcd = (_0RL_cd_1893c58ec7d81343_60000000*)cd;
490 hpp::corbaserver::affordance::_impl_Afford* impl = (hpp::corbaserver::affordance::_impl_Afford*) svnt->_ptrToInterface(hpp::corbaserver::affordance::Afford::_PD_repoId);
491 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
492 impl->setMargin(tcd->arg_0, tcd->arg_1);
493 #else
494 if (!cd->is_upcall())
495 impl->setMargin(tcd->arg_0, tcd->arg_1);
496 else {
497 try {
498 impl->setMargin(tcd->arg_0, tcd->arg_1);
499 }
500 catch(hpp::Error& ex) {
501 throw omniORB::StubUserException(ex._NP_duplicate());
502 }
503
504
505 }
506 #endif
507
508
509 }
510
511 void hpp::corbaserver::affordance::_objref_Afford::setMargin(const char* affType, ::CORBA::Double margin)
512 {
513 _0RL_cd_1893c58ec7d81343_60000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_70000000, "setMargin", 10);
514 _call_desc.arg_0 = affType;
515 _call_desc.arg_1 = margin;
516
517 _invoke(_call_desc);
518
519
520
521 }
522
523
524 //
525 // Code for hpp::corbaserver::affordance::Afford::setNeighbouringTriangleMargin
526
527 // Local call call-back function.
528 static void
529 _0RL_lcfn_1893c58ec7d81343_80000000(omniCallDescriptor* cd, omniServant* svnt)
530 {
531 _0RL_cd_1893c58ec7d81343_60000000* tcd = (_0RL_cd_1893c58ec7d81343_60000000*)cd;
532 hpp::corbaserver::affordance::_impl_Afford* impl = (hpp::corbaserver::affordance::_impl_Afford*) svnt->_ptrToInterface(hpp::corbaserver::affordance::Afford::_PD_repoId);
533 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
534 impl->setNeighbouringTriangleMargin(tcd->arg_0, tcd->arg_1);
535 #else
536 if (!cd->is_upcall())
537 impl->setNeighbouringTriangleMargin(tcd->arg_0, tcd->arg_1);
538 else {
539 try {
540 impl->setNeighbouringTriangleMargin(tcd->arg_0, tcd->arg_1);
541 }
542 catch(hpp::Error& ex) {
543 throw omniORB::StubUserException(ex._NP_duplicate());
544 }
545
546
547 }
548 #endif
549
550
551 }
552
553 void hpp::corbaserver::affordance::_objref_Afford::setNeighbouringTriangleMargin(const char* affType, ::CORBA::Double nbTriMargin)
554 {
555 _0RL_cd_1893c58ec7d81343_60000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_80000000, "setNeighbouringTriangleMargin", 30);
556 _call_desc.arg_0 = affType;
557 _call_desc.arg_1 = nbTriMargin;
558
559 _invoke(_call_desc);
560
561
562
563 }
564
565
566 //
567 // Code for hpp::corbaserver::affordance::Afford::setMinimumArea
568
569 // Local call call-back function.
570 static void
571 _0RL_lcfn_1893c58ec7d81343_90000000(omniCallDescriptor* cd, omniServant* svnt)
572 {
573 _0RL_cd_1893c58ec7d81343_60000000* tcd = (_0RL_cd_1893c58ec7d81343_60000000*)cd;
574 hpp::corbaserver::affordance::_impl_Afford* impl = (hpp::corbaserver::affordance::_impl_Afford*) svnt->_ptrToInterface(hpp::corbaserver::affordance::Afford::_PD_repoId);
575 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
576 impl->setMinimumArea(tcd->arg_0, tcd->arg_1);
577 #else
578 if (!cd->is_upcall())
579 impl->setMinimumArea(tcd->arg_0, tcd->arg_1);
580 else {
581 try {
582 impl->setMinimumArea(tcd->arg_0, tcd->arg_1);
583 }
584 catch(hpp::Error& ex) {
585 throw omniORB::StubUserException(ex._NP_duplicate());
586 }
587
588
589 }
590 #endif
591
592
593 }
594
595 void hpp::corbaserver::affordance::_objref_Afford::setMinimumArea(const char* affType, ::CORBA::Double minArea)
596 {
597 _0RL_cd_1893c58ec7d81343_60000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_90000000, "setMinimumArea", 15);
598 _call_desc.arg_0 = affType;
599 _call_desc.arg_1 = minArea;
600
601 _invoke(_call_desc);
602
603
604
605 }
606
607
608 //
609 // Code for hpp::corbaserver::affordance::Afford::checkModel
610
611 // Proxy call descriptor class. Mangled signature:
612 // _cboolean_i_cstring_e_chpp_mError
613 class _0RL_cd_1893c58ec7d81343_a0000000
614 : public omniCallDescriptor
615 {
616 public:
617 inline _0RL_cd_1893c58ec7d81343_a0000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
618 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
619 {
620
621 }
622
623 void marshalArguments(cdrStream&);
624 void unmarshalArguments(cdrStream&);
625
626 void unmarshalReturnedValues(cdrStream&);
627 void marshalReturnedValues(cdrStream&);
628
629 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
630 static const char* const _user_exns[];
631
632 ::CORBA::String_var arg_0_;
633 const char* arg_0;
634 ::CORBA::Boolean result;
635 };
636
637 void _0RL_cd_1893c58ec7d81343_a0000000::marshalArguments(cdrStream& _n)
638 {
639 _n.marshalString(arg_0,0);
640
641 }
642
643 void _0RL_cd_1893c58ec7d81343_a0000000::unmarshalArguments(cdrStream& _n)
644 {
645 arg_0_ = _n.unmarshalString(0);
646 arg_0 = arg_0_.in();
647
648 }
649
650 void _0RL_cd_1893c58ec7d81343_a0000000::marshalReturnedValues(cdrStream& _n)
651 {
652 _n.marshalBoolean(result);
653
654 }
655
656 void _0RL_cd_1893c58ec7d81343_a0000000::unmarshalReturnedValues(cdrStream& _n)
657 {
658 result = _n.unmarshalBoolean();
659
660 }
661
662 const char* const _0RL_cd_1893c58ec7d81343_a0000000::_user_exns[] = {
663 hpp::Error::_PD_repoId
664 };
665
666 void _0RL_cd_1893c58ec7d81343_a0000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
667 {
668 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
669 hpp::Error _ex;
670 _ex <<= s;
671 if (iop_client) iop_client->RequestCompleted();
672 throw _ex;
673 }
674
675
676 else {
677 if (iop_client) iop_client->RequestCompleted(1);
678 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
679 (::CORBA::CompletionStatus)s.completion());
680 }
681 }
682
683 // Local call call-back function.
684 static void
685 _0RL_lcfn_1893c58ec7d81343_b0000000(omniCallDescriptor* cd, omniServant* svnt)
686 {
687 _0RL_cd_1893c58ec7d81343_a0000000* tcd = (_0RL_cd_1893c58ec7d81343_a0000000*)cd;
688 hpp::corbaserver::affordance::_impl_Afford* impl = (hpp::corbaserver::affordance::_impl_Afford*) svnt->_ptrToInterface(hpp::corbaserver::affordance::Afford::_PD_repoId);
689 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
690 tcd->result = impl->checkModel(tcd->arg_0);
691 #else
692 if (!cd->is_upcall())
693 tcd->result = impl->checkModel(tcd->arg_0);
694 else {
695 try {
696 tcd->result = impl->checkModel(tcd->arg_0);
697 }
698 catch(hpp::Error& ex) {
699 throw omniORB::StubUserException(ex._NP_duplicate());
700 }
701
702
703 }
704 #endif
705
706
707 }
708
709 ::CORBA::Boolean hpp::corbaserver::affordance::_objref_Afford::checkModel(const char* obstacleName)
710 {
711 _0RL_cd_1893c58ec7d81343_a0000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_b0000000, "checkModel", 11);
712 _call_desc.arg_0 = obstacleName;
713
714 _invoke(_call_desc);
715 return _call_desc.result;
716
717
718 }
719
720
721 //
722 // Code for hpp::corbaserver::affordance::Afford::analyseObject
723
724 // Local call call-back function.
725 static void
726 _0RL_lcfn_1893c58ec7d81343_c0000000(omniCallDescriptor* cd, omniServant* svnt)
727 {
728 _0RL_cd_1893c58ec7d81343_20000000* tcd = (_0RL_cd_1893c58ec7d81343_20000000*)cd;
729 hpp::corbaserver::affordance::_impl_Afford* impl = (hpp::corbaserver::affordance::_impl_Afford*) svnt->_ptrToInterface(hpp::corbaserver::affordance::Afford::_PD_repoId);
730 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
731 impl->analyseObject(tcd->arg_0, *tcd->arg_1);
732 #else
733 if (!cd->is_upcall())
734 impl->analyseObject(tcd->arg_0, *tcd->arg_1);
735 else {
736 try {
737 impl->analyseObject(tcd->arg_0, *tcd->arg_1);
738 }
739 catch(hpp::Error& ex) {
740 throw omniORB::StubUserException(ex._NP_duplicate());
741 }
742
743
744 }
745 #endif
746
747
748 }
749
750 void hpp::corbaserver::affordance::_objref_Afford::analyseObject(const char* obstacleName, const ::hpp::doubleSeq& reduceSizes)
751 {
752 _0RL_cd_1893c58ec7d81343_20000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_c0000000, "analyseObject", 14);
753 _call_desc.arg_0 = obstacleName;
754 _call_desc.arg_1 = &(::hpp::doubleSeq&) reduceSizes;
755
756 _invoke(_call_desc);
757
758
759
760 }
761
762
763 //
764 // Code for hpp::corbaserver::affordance::Afford::analyseAll
765
766 // Proxy call descriptor class. Mangled signature:
767 // void_i_chpp_mdoubleSeq_e_chpp_mError
768 class _0RL_cd_1893c58ec7d81343_d0000000
769 : public omniCallDescriptor
770 {
771 public:
772 inline _0RL_cd_1893c58ec7d81343_d0000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
773 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
774 {
775
776 }
777
778 void marshalArguments(cdrStream&);
779 void unmarshalArguments(cdrStream&);
780
781
782 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
783 static const char* const _user_exns[];
784
785 hpp::doubleSeq_var arg_0_;
786 const hpp::doubleSeq* arg_0;
787 };
788
789 void _0RL_cd_1893c58ec7d81343_d0000000::marshalArguments(cdrStream& _n)
790 {
791 (const hpp::doubleSeq&) *arg_0 >>= _n;
792
793 }
794
795 void _0RL_cd_1893c58ec7d81343_d0000000::unmarshalArguments(cdrStream& _n)
796 {
797 arg_0_ = new hpp::doubleSeq;
798 (hpp::doubleSeq&)arg_0_ <<= _n;
799 arg_0 = &arg_0_.in();
800
801 }
802
803 const char* const _0RL_cd_1893c58ec7d81343_d0000000::_user_exns[] = {
804 hpp::Error::_PD_repoId
805 };
806
807 void _0RL_cd_1893c58ec7d81343_d0000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
808 {
809 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
810 hpp::Error _ex;
811 _ex <<= s;
812 if (iop_client) iop_client->RequestCompleted();
813 throw _ex;
814 }
815
816
817 else {
818 if (iop_client) iop_client->RequestCompleted(1);
819 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
820 (::CORBA::CompletionStatus)s.completion());
821 }
822 }
823
824 // Local call call-back function.
825 static void
826 _0RL_lcfn_1893c58ec7d81343_e0000000(omniCallDescriptor* cd, omniServant* svnt)
827 {
828 _0RL_cd_1893c58ec7d81343_d0000000* tcd = (_0RL_cd_1893c58ec7d81343_d0000000*)cd;
829 hpp::corbaserver::affordance::_impl_Afford* impl = (hpp::corbaserver::affordance::_impl_Afford*) svnt->_ptrToInterface(hpp::corbaserver::affordance::Afford::_PD_repoId);
830 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
831 impl->analyseAll(*tcd->arg_0);
832 #else
833 if (!cd->is_upcall())
834 impl->analyseAll(*tcd->arg_0);
835 else {
836 try {
837 impl->analyseAll(*tcd->arg_0);
838 }
839 catch(hpp::Error& ex) {
840 throw omniORB::StubUserException(ex._NP_duplicate());
841 }
842
843
844 }
845 #endif
846
847
848 }
849
850 void hpp::corbaserver::affordance::_objref_Afford::analyseAll(const ::hpp::doubleSeq& reduceSizes)
851 {
852 _0RL_cd_1893c58ec7d81343_d0000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_e0000000, "analyseAll", 11);
853 _call_desc.arg_0 = &(::hpp::doubleSeq&) reduceSizes;
854
855 _invoke(_call_desc);
856
857
858
859 }
860
861
862 //
863 // Code for hpp::corbaserver::affordance::Afford::deleteAffordances
864
865 // Proxy call descriptor class. Mangled signature:
866 // void_i_cstring_e_chpp_mError
867 class _0RL_cd_1893c58ec7d81343_f0000000
868 : public omniCallDescriptor
869 {
870 public:
871 inline _0RL_cd_1893c58ec7d81343_f0000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
872 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
873 {
874
875 }
876
877 void marshalArguments(cdrStream&);
878 void unmarshalArguments(cdrStream&);
879
880
881 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
882 static const char* const _user_exns[];
883
884 ::CORBA::String_var arg_0_;
885 const char* arg_0;
886 };
887
888 void _0RL_cd_1893c58ec7d81343_f0000000::marshalArguments(cdrStream& _n)
889 {
890 _n.marshalString(arg_0,0);
891
892 }
893
894 void _0RL_cd_1893c58ec7d81343_f0000000::unmarshalArguments(cdrStream& _n)
895 {
896 arg_0_ = _n.unmarshalString(0);
897 arg_0 = arg_0_.in();
898
899 }
900
901 const char* const _0RL_cd_1893c58ec7d81343_f0000000::_user_exns[] = {
902 hpp::Error::_PD_repoId
903 };
904
905 void _0RL_cd_1893c58ec7d81343_f0000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
906 {
907 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
908 hpp::Error _ex;
909 _ex <<= s;
910 if (iop_client) iop_client->RequestCompleted();
911 throw _ex;
912 }
913
914
915 else {
916 if (iop_client) iop_client->RequestCompleted(1);
917 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
918 (::CORBA::CompletionStatus)s.completion());
919 }
920 }
921
922 // Local call call-back function.
923 static void
924 _0RL_lcfn_1893c58ec7d81343_01000000(omniCallDescriptor* cd, omniServant* svnt)
925 {
926 _0RL_cd_1893c58ec7d81343_f0000000* tcd = (_0RL_cd_1893c58ec7d81343_f0000000*)cd;
927 hpp::corbaserver::affordance::_impl_Afford* impl = (hpp::corbaserver::affordance::_impl_Afford*) svnt->_ptrToInterface(hpp::corbaserver::affordance::Afford::_PD_repoId);
928 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
929 impl->deleteAffordances(tcd->arg_0);
930 #else
931 if (!cd->is_upcall())
932 impl->deleteAffordances(tcd->arg_0);
933 else {
934 try {
935 impl->deleteAffordances(tcd->arg_0);
936 }
937 catch(hpp::Error& ex) {
938 throw omniORB::StubUserException(ex._NP_duplicate());
939 }
940
941
942 }
943 #endif
944
945
946 }
947
948 void hpp::corbaserver::affordance::_objref_Afford::deleteAffordances(const char* obstacleName)
949 {
950 _0RL_cd_1893c58ec7d81343_f0000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_01000000, "deleteAffordances", 18);
951 _call_desc.arg_0 = obstacleName;
952
953 _invoke(_call_desc);
954
955
956
957 }
958
959
960 //
961 // Code for hpp::corbaserver::affordance::Afford::deleteAffordancesByType
962
963 // Proxy call descriptor class. Mangled signature:
964 // void_i_cstring_i_cstring_e_chpp_mError
965 class _0RL_cd_1893c58ec7d81343_11000000
966 : public omniCallDescriptor
967 {
968 public:
969 inline _0RL_cd_1893c58ec7d81343_11000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
970 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
971 {
972
973 }
974
975 void marshalArguments(cdrStream&);
976 void unmarshalArguments(cdrStream&);
977
978
979 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
980 static const char* const _user_exns[];
981
982 ::CORBA::String_var arg_0_;
983 const char* arg_0;
984 ::CORBA::String_var arg_1_;
985 const char* arg_1;
986 };
987
988 void _0RL_cd_1893c58ec7d81343_11000000::marshalArguments(cdrStream& _n)
989 {
990 _n.marshalString(arg_0,0);
991 _n.marshalString(arg_1,0);
992
993 }
994
995 void _0RL_cd_1893c58ec7d81343_11000000::unmarshalArguments(cdrStream& _n)
996 {
997 arg_0_ = _n.unmarshalString(0);
998 arg_0 = arg_0_.in();
999 arg_1_ = _n.unmarshalString(0);
1000 arg_1 = arg_1_.in();
1001
1002 }
1003
1004 const char* const _0RL_cd_1893c58ec7d81343_11000000::_user_exns[] = {
1005 hpp::Error::_PD_repoId
1006 };
1007
1008 void _0RL_cd_1893c58ec7d81343_11000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
1009 {
1010 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
1011 hpp::Error _ex;
1012 _ex <<= s;
1013 if (iop_client) iop_client->RequestCompleted();
1014 throw _ex;
1015 }
1016
1017
1018 else {
1019 if (iop_client) iop_client->RequestCompleted(1);
1020 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
1021 (::CORBA::CompletionStatus)s.completion());
1022 }
1023 }
1024
1025 // Local call call-back function.
1026 static void
1027 _0RL_lcfn_1893c58ec7d81343_21000000(omniCallDescriptor* cd, omniServant* svnt)
1028 {
1029 _0RL_cd_1893c58ec7d81343_11000000* tcd = (_0RL_cd_1893c58ec7d81343_11000000*)cd;
1030 hpp::corbaserver::affordance::_impl_Afford* impl = (hpp::corbaserver::affordance::_impl_Afford*) svnt->_ptrToInterface(hpp::corbaserver::affordance::Afford::_PD_repoId);
1031 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1032 impl->deleteAffordancesByType(tcd->arg_0, tcd->arg_1);
1033 #else
1034 if (!cd->is_upcall())
1035 impl->deleteAffordancesByType(tcd->arg_0, tcd->arg_1);
1036 else {
1037 try {
1038 impl->deleteAffordancesByType(tcd->arg_0, tcd->arg_1);
1039 }
1040 catch(hpp::Error& ex) {
1041 throw omniORB::StubUserException(ex._NP_duplicate());
1042 }
1043
1044
1045 }
1046 #endif
1047
1048
1049 }
1050
1051 void hpp::corbaserver::affordance::_objref_Afford::deleteAffordancesByType(const char* affordance, const char* obstacleName)
1052 {
1053 _0RL_cd_1893c58ec7d81343_11000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_21000000, "deleteAffordancesByType", 24);
1054 _call_desc.arg_0 = affordance;
1055 _call_desc.arg_1 = obstacleName;
1056
1057 _invoke(_call_desc);
1058
1059
1060
1061 }
1062
1063
1064 //
1065 // Code for hpp::corbaserver::affordance::Afford::getAffordancePoints
1066
1067 // Proxy call descriptor class. Mangled signature:
1068 // _chpp_mdoubleSeqSeqSeqSeq_i_cstring_e_chpp_mError
1069 class _0RL_cd_1893c58ec7d81343_31000000
1070 : public omniCallDescriptor
1071 {
1072 public:
1073 inline _0RL_cd_1893c58ec7d81343_31000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
1074 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
1075 {
1076
1077 }
1078
1079 void marshalArguments(cdrStream&);
1080 void unmarshalArguments(cdrStream&);
1081
1082 void unmarshalReturnedValues(cdrStream&);
1083 void marshalReturnedValues(cdrStream&);
1084
1085 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
1086 static const char* const _user_exns[];
1087
1088 ::CORBA::String_var arg_0_;
1089 const char* arg_0;
1090 hpp::doubleSeqSeqSeqSeq_var result;
1091 };
1092
1093 void _0RL_cd_1893c58ec7d81343_31000000::marshalArguments(cdrStream& _n)
1094 {
1095 _n.marshalString(arg_0,0);
1096
1097 }
1098
1099 void _0RL_cd_1893c58ec7d81343_31000000::unmarshalArguments(cdrStream& _n)
1100 {
1101 arg_0_ = _n.unmarshalString(0);
1102 arg_0 = arg_0_.in();
1103
1104 }
1105
1106 void _0RL_cd_1893c58ec7d81343_31000000::marshalReturnedValues(cdrStream& _n)
1107 {
1108 (const hpp::doubleSeqSeqSeqSeq&) result >>= _n;
1109
1110 }
1111
1112 void _0RL_cd_1893c58ec7d81343_31000000::unmarshalReturnedValues(cdrStream& _n)
1113 {
1114 result = new hpp::doubleSeqSeqSeqSeq;
1115 (hpp::doubleSeqSeqSeqSeq&)result <<= _n;
1116
1117 }
1118
1119 const char* const _0RL_cd_1893c58ec7d81343_31000000::_user_exns[] = {
1120 hpp::Error::_PD_repoId
1121 };
1122
1123 void _0RL_cd_1893c58ec7d81343_31000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
1124 {
1125 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
1126 hpp::Error _ex;
1127 _ex <<= s;
1128 if (iop_client) iop_client->RequestCompleted();
1129 throw _ex;
1130 }
1131
1132
1133 else {
1134 if (iop_client) iop_client->RequestCompleted(1);
1135 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
1136 (::CORBA::CompletionStatus)s.completion());
1137 }
1138 }
1139
1140 // Local call call-back function.
1141 static void
1142 _0RL_lcfn_1893c58ec7d81343_41000000(omniCallDescriptor* cd, omniServant* svnt)
1143 {
1144 _0RL_cd_1893c58ec7d81343_31000000* tcd = (_0RL_cd_1893c58ec7d81343_31000000*)cd;
1145 hpp::corbaserver::affordance::_impl_Afford* impl = (hpp::corbaserver::affordance::_impl_Afford*) svnt->_ptrToInterface(hpp::corbaserver::affordance::Afford::_PD_repoId);
1146 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1147 tcd->result = impl->getAffordancePoints(tcd->arg_0);
1148 #else
1149 if (!cd->is_upcall())
1150 tcd->result = impl->getAffordancePoints(tcd->arg_0);
1151 else {
1152 try {
1153 tcd->result = impl->getAffordancePoints(tcd->arg_0);
1154 }
1155 catch(hpp::Error& ex) {
1156 throw omniORB::StubUserException(ex._NP_duplicate());
1157 }
1158
1159
1160 }
1161 #endif
1162
1163
1164 }
1165
1166 hpp::doubleSeqSeqSeqSeq* hpp::corbaserver::affordance::_objref_Afford::getAffordancePoints(const char* affordance)
1167 {
1168 _0RL_cd_1893c58ec7d81343_31000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_41000000, "getAffordancePoints", 20);
1169 _call_desc.arg_0 = affordance;
1170
1171 _invoke(_call_desc);
1172 return _call_desc.result._retn();
1173
1174
1175 }
1176
1177
1178 //
1179 // Code for hpp::corbaserver::affordance::Afford::getAffRefObstacles
1180
1181 // Proxy call descriptor class. Mangled signature:
1182 // _chpp_mNames__t_i_cstring_e_chpp_mError
1183 class _0RL_cd_1893c58ec7d81343_51000000
1184 : public omniCallDescriptor
1185 {
1186 public:
1187 inline _0RL_cd_1893c58ec7d81343_51000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
1188 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
1189 {
1190
1191 }
1192
1193 void marshalArguments(cdrStream&);
1194 void unmarshalArguments(cdrStream&);
1195
1196 void unmarshalReturnedValues(cdrStream&);
1197 void marshalReturnedValues(cdrStream&);
1198
1199 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
1200 static const char* const _user_exns[];
1201
1202 ::CORBA::String_var arg_0_;
1203 const char* arg_0;
1204 hpp::Names_t_var result;
1205 };
1206
1207 void _0RL_cd_1893c58ec7d81343_51000000::marshalArguments(cdrStream& _n)
1208 {
1209 _n.marshalString(arg_0,0);
1210
1211 }
1212
1213 void _0RL_cd_1893c58ec7d81343_51000000::unmarshalArguments(cdrStream& _n)
1214 {
1215 arg_0_ = _n.unmarshalString(0);
1216 arg_0 = arg_0_.in();
1217
1218 }
1219
1220 void _0RL_cd_1893c58ec7d81343_51000000::marshalReturnedValues(cdrStream& _n)
1221 {
1222 (const hpp::Names_t&) result >>= _n;
1223
1224 }
1225
1226 void _0RL_cd_1893c58ec7d81343_51000000::unmarshalReturnedValues(cdrStream& _n)
1227 {
1228 result = new hpp::Names_t;
1229 (hpp::Names_t&)result <<= _n;
1230
1231 }
1232
1233 const char* const _0RL_cd_1893c58ec7d81343_51000000::_user_exns[] = {
1234 hpp::Error::_PD_repoId
1235 };
1236
1237 void _0RL_cd_1893c58ec7d81343_51000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
1238 {
1239 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
1240 hpp::Error _ex;
1241 _ex <<= s;
1242 if (iop_client) iop_client->RequestCompleted();
1243 throw _ex;
1244 }
1245
1246
1247 else {
1248 if (iop_client) iop_client->RequestCompleted(1);
1249 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
1250 (::CORBA::CompletionStatus)s.completion());
1251 }
1252 }
1253
1254 // Local call call-back function.
1255 static void
1256 _0RL_lcfn_1893c58ec7d81343_61000000(omniCallDescriptor* cd, omniServant* svnt)
1257 {
1258 _0RL_cd_1893c58ec7d81343_51000000* tcd = (_0RL_cd_1893c58ec7d81343_51000000*)cd;
1259 hpp::corbaserver::affordance::_impl_Afford* impl = (hpp::corbaserver::affordance::_impl_Afford*) svnt->_ptrToInterface(hpp::corbaserver::affordance::Afford::_PD_repoId);
1260 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1261 tcd->result = impl->getAffRefObstacles(tcd->arg_0);
1262 #else
1263 if (!cd->is_upcall())
1264 tcd->result = impl->getAffRefObstacles(tcd->arg_0);
1265 else {
1266 try {
1267 tcd->result = impl->getAffRefObstacles(tcd->arg_0);
1268 }
1269 catch(hpp::Error& ex) {
1270 throw omniORB::StubUserException(ex._NP_duplicate());
1271 }
1272
1273
1274 }
1275 #endif
1276
1277
1278 }
1279
1280 hpp::Names_t* hpp::corbaserver::affordance::_objref_Afford::getAffRefObstacles(const char* affordance)
1281 {
1282 _0RL_cd_1893c58ec7d81343_51000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_61000000, "getAffRefObstacles", 19);
1283 _call_desc.arg_0 = affordance;
1284
1285 _invoke(_call_desc);
1286 return _call_desc.result._retn();
1287
1288
1289 }
1290
1291
1292 //
1293 // Code for hpp::corbaserver::affordance::Afford::getAffordanceTypes
1294
1295 // Proxy call descriptor class. Mangled signature:
1296 // _chpp_mNames__t_e_chpp_mError
1297 class _0RL_cd_1893c58ec7d81343_71000000
1298 : public omniCallDescriptor
1299 {
1300 public:
1301 inline _0RL_cd_1893c58ec7d81343_71000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
1302 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
1303 {
1304
1305 }
1306
1307
1308 void unmarshalReturnedValues(cdrStream&);
1309 void marshalReturnedValues(cdrStream&);
1310
1311 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
1312 static const char* const _user_exns[];
1313
1314 hpp::Names_t_var result;
1315 };
1316
1317 void _0RL_cd_1893c58ec7d81343_71000000::marshalReturnedValues(cdrStream& _n)
1318 {
1319 (const hpp::Names_t&) result >>= _n;
1320
1321 }
1322
1323 void _0RL_cd_1893c58ec7d81343_71000000::unmarshalReturnedValues(cdrStream& _n)
1324 {
1325 result = new hpp::Names_t;
1326 (hpp::Names_t&)result <<= _n;
1327
1328 }
1329
1330 const char* const _0RL_cd_1893c58ec7d81343_71000000::_user_exns[] = {
1331 hpp::Error::_PD_repoId
1332 };
1333
1334 void _0RL_cd_1893c58ec7d81343_71000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
1335 {
1336 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
1337 hpp::Error _ex;
1338 _ex <<= s;
1339 if (iop_client) iop_client->RequestCompleted();
1340 throw _ex;
1341 }
1342
1343
1344 else {
1345 if (iop_client) iop_client->RequestCompleted(1);
1346 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
1347 (::CORBA::CompletionStatus)s.completion());
1348 }
1349 }
1350
1351 // Local call call-back function.
1352 static void
1353 _0RL_lcfn_1893c58ec7d81343_81000000(omniCallDescriptor* cd, omniServant* svnt)
1354 {
1355 _0RL_cd_1893c58ec7d81343_71000000* tcd = (_0RL_cd_1893c58ec7d81343_71000000*)cd;
1356 hpp::corbaserver::affordance::_impl_Afford* impl = (hpp::corbaserver::affordance::_impl_Afford*) svnt->_ptrToInterface(hpp::corbaserver::affordance::Afford::_PD_repoId);
1357 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1358 tcd->result = impl->getAffordanceTypes();
1359 #else
1360 if (!cd->is_upcall())
1361 tcd->result = impl->getAffordanceTypes();
1362 else {
1363 try {
1364 tcd->result = impl->getAffordanceTypes();
1365 }
1366 catch(hpp::Error& ex) {
1367 throw omniORB::StubUserException(ex._NP_duplicate());
1368 }
1369
1370
1371 }
1372 #endif
1373
1374
1375 }
1376
1377 hpp::Names_t* hpp::corbaserver::affordance::_objref_Afford::getAffordanceTypes()
1378 {
1379 _0RL_cd_1893c58ec7d81343_71000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_81000000, "getAffordanceTypes", 19);
1380
1381
1382 _invoke(_call_desc);
1383 return _call_desc.result._retn();
1384
1385
1386 }
1387
1388
1389 //
1390 // Code for hpp::corbaserver::affordance::Afford::getAffordanceConfigTypes
1391
1392 // Local call call-back function.
1393 static void
1394 _0RL_lcfn_1893c58ec7d81343_91000000(omniCallDescriptor* cd, omniServant* svnt)
1395 {
1396 _0RL_cd_1893c58ec7d81343_71000000* tcd = (_0RL_cd_1893c58ec7d81343_71000000*)cd;
1397 hpp::corbaserver::affordance::_impl_Afford* impl = (hpp::corbaserver::affordance::_impl_Afford*) svnt->_ptrToInterface(hpp::corbaserver::affordance::Afford::_PD_repoId);
1398 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1399 tcd->result = impl->getAffordanceConfigTypes();
1400 #else
1401 if (!cd->is_upcall())
1402 tcd->result = impl->getAffordanceConfigTypes();
1403 else {
1404 try {
1405 tcd->result = impl->getAffordanceConfigTypes();
1406 }
1407 catch(hpp::Error& ex) {
1408 throw omniORB::StubUserException(ex._NP_duplicate());
1409 }
1410
1411
1412 }
1413 #endif
1414
1415
1416 }
1417
1418 hpp::Names_t* hpp::corbaserver::affordance::_objref_Afford::getAffordanceConfigTypes()
1419 {
1420 _0RL_cd_1893c58ec7d81343_71000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_91000000, "getAffordanceConfigTypes", 25);
1421
1422
1423 _invoke(_call_desc);
1424 return _call_desc.result._retn();
1425
1426
1427 }
1428
1429 hpp::corbaserver::affordance::_pof_Afford::~_pof_Afford() {}
1430
1431
1432 omniObjRef*
1433 hpp::corbaserver::affordance::_pof_Afford::newObjRef(omniIOR* ior, omniIdentity* id)
1434 {
1435 return new ::hpp::corbaserver::affordance::_objref_Afford(ior, id);
1436 }
1437
1438
1439 ::CORBA::Boolean
1440 hpp::corbaserver::affordance::_pof_Afford::is_a(const char* id) const
1441 {
1442 if (omni::ptrStrMatch(id, ::hpp::corbaserver::affordance::Afford::_PD_repoId))
1443 return 1;
1444
1445 return 0;
1446 }
1447
1448 const hpp::corbaserver::affordance::_pof_Afford _the_pof_hpp_mcorbaserver_maffordance_mAfford;
1449
1450 hpp::corbaserver::affordance::_impl_Afford::~_impl_Afford() {}
1451
1452
1453 ::CORBA::Boolean
1454 hpp::corbaserver::affordance::_impl_Afford::_dispatch(omniCallHandle& _handle)
1455 {
1456 const char* op = _handle.operation_name();
1457
1458 if (omni::strMatch(op, "resetAffordanceConfig")) {
1459
1460 _0RL_cd_1893c58ec7d81343_00000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_10000000, "resetAffordanceConfig", 22, 1);
1461
1462 _handle.upcall(this,_call_desc);
1463 return 1;
1464 }
1465
1466 if (omni::strMatch(op, "setAffordanceConfig")) {
1467
1468 _0RL_cd_1893c58ec7d81343_20000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_30000000, "setAffordanceConfig", 20, 1);
1469
1470 _handle.upcall(this,_call_desc);
1471 return 1;
1472 }
1473
1474 if (omni::strMatch(op, "getAffordanceConfig")) {
1475
1476 _0RL_cd_1893c58ec7d81343_40000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_50000000, "getAffordanceConfig", 20, 1);
1477
1478 _handle.upcall(this,_call_desc);
1479 return 1;
1480 }
1481
1482 if (omni::strMatch(op, "setMargin")) {
1483
1484 _0RL_cd_1893c58ec7d81343_60000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_70000000, "setMargin", 10, 1);
1485
1486 _handle.upcall(this,_call_desc);
1487 return 1;
1488 }
1489
1490 if (omni::strMatch(op, "setNeighbouringTriangleMargin")) {
1491
1492 _0RL_cd_1893c58ec7d81343_60000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_80000000, "setNeighbouringTriangleMargin", 30, 1);
1493
1494 _handle.upcall(this,_call_desc);
1495 return 1;
1496 }
1497
1498 if (omni::strMatch(op, "setMinimumArea")) {
1499
1500 _0RL_cd_1893c58ec7d81343_60000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_90000000, "setMinimumArea", 15, 1);
1501
1502 _handle.upcall(this,_call_desc);
1503 return 1;
1504 }
1505
1506 if (omni::strMatch(op, "checkModel")) {
1507
1508 _0RL_cd_1893c58ec7d81343_a0000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_b0000000, "checkModel", 11, 1);
1509
1510 _handle.upcall(this,_call_desc);
1511 return 1;
1512 }
1513
1514 if (omni::strMatch(op, "analyseObject")) {
1515
1516 _0RL_cd_1893c58ec7d81343_20000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_c0000000, "analyseObject", 14, 1);
1517
1518 _handle.upcall(this,_call_desc);
1519 return 1;
1520 }
1521
1522 if (omni::strMatch(op, "analyseAll")) {
1523
1524 _0RL_cd_1893c58ec7d81343_d0000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_e0000000, "analyseAll", 11, 1);
1525
1526 _handle.upcall(this,_call_desc);
1527 return 1;
1528 }
1529
1530 if (omni::strMatch(op, "deleteAffordances")) {
1531
1532 _0RL_cd_1893c58ec7d81343_f0000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_01000000, "deleteAffordances", 18, 1);
1533
1534 _handle.upcall(this,_call_desc);
1535 return 1;
1536 }
1537
1538 if (omni::strMatch(op, "deleteAffordancesByType")) {
1539
1540 _0RL_cd_1893c58ec7d81343_11000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_21000000, "deleteAffordancesByType", 24, 1);
1541
1542 _handle.upcall(this,_call_desc);
1543 return 1;
1544 }
1545
1546 if (omni::strMatch(op, "getAffordancePoints")) {
1547
1548 _0RL_cd_1893c58ec7d81343_31000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_41000000, "getAffordancePoints", 20, 1);
1549
1550 _handle.upcall(this,_call_desc);
1551 return 1;
1552 }
1553
1554 if (omni::strMatch(op, "getAffRefObstacles")) {
1555
1556 _0RL_cd_1893c58ec7d81343_51000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_61000000, "getAffRefObstacles", 19, 1);
1557
1558 _handle.upcall(this,_call_desc);
1559 return 1;
1560 }
1561
1562 if (omni::strMatch(op, "getAffordanceTypes")) {
1563
1564 _0RL_cd_1893c58ec7d81343_71000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_81000000, "getAffordanceTypes", 19, 1);
1565
1566 _handle.upcall(this,_call_desc);
1567 return 1;
1568 }
1569
1570 if (omni::strMatch(op, "getAffordanceConfigTypes")) {
1571
1572 _0RL_cd_1893c58ec7d81343_71000000 _call_desc(_0RL_lcfn_1893c58ec7d81343_91000000, "getAffordanceConfigTypes", 25, 1);
1573
1574 _handle.upcall(this,_call_desc);
1575 return 1;
1576 }
1577
1578
1579 return 0;
1580 }
1581
1582 void*
1583 hpp::corbaserver::affordance::_impl_Afford::_ptrToInterface(const char* id)
1584 {
1585 if (id == ::hpp::corbaserver::affordance::Afford::_PD_repoId)
1586 return (::hpp::corbaserver::affordance::_impl_Afford*) this;
1587
1588 if (id == ::CORBA::Object::_PD_repoId)
1589 return (void*) 1;
1590
1591 if (omni::strMatch(id, ::hpp::corbaserver::affordance::Afford::_PD_repoId))
1592 return (::hpp::corbaserver::affordance::_impl_Afford*) this;
1593
1594 if (omni::strMatch(id, ::CORBA::Object::_PD_repoId))
1595 return (void*) 1;
1596 return 0;
1597 }
1598
1599 const char*
1600 hpp::corbaserver::affordance::_impl_Afford::_mostDerivedRepoId()
1601 {
1602 return ::hpp::corbaserver::affordance::Afford::_PD_repoId;
1603 }
1604
1605 POA_hpp::corbaserver::affordance::Afford::~Afford() {}
1606
1607