1
2
3 #include "auktion.h"
4
5
6 using namespace std;
7
8
9
10
11
12
13
14 Auktion::Kaeufer::~Kaeufer()
15 {
16 }
17
18 void *
19 Auktion::Kaeufer::_narrow_helper( const char *_repoid )
20 {
21 if( strcmp( _repoid, "IDL:r4/Auktion/Kaeufer:1.0" ) == 0 )
22 return (void *)this;
23 return NULL;
24 }
25
26 Auktion::Kaeufer_ptr
27 Auktion::Kaeufer::_narrow( CORBA::Object_ptr _obj )
28 {
29 Auktion::Kaeufer_ptr _o;
30 if( !CORBA::is_nil( _obj ) ) {
31 void *_p;
32 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/Kaeufer:1.0" )))
33 return _duplicate( (Auktion::Kaeufer_ptr) _p );
34 if (!strcmp (_obj->_repoid(), "IDL:r4/Auktion/Kaeufer:1.0") || _obj->_is_a_remote ("IDL:r4/Auktion/Kaeufer:1.0")) {
35 _o = new Auktion::Kaeufer_stub;
36 _o->CORBA::Object::operator=( *_obj );
37 return _o;
38 }
39 }
40 return _nil();
41 }
42
43 Auktion::Kaeufer_ptr
44 Auktion::Kaeufer::_narrow( CORBA::AbstractBase_ptr _obj )
45 {
46 return _narrow (_obj->_to_object());
47 }
48
49 class _Marshaller_Auktion_Kaeufer : public ::CORBA::StaticTypeInfo {
50 typedef Auktion::Kaeufer_ptr _MICO_T;
51 public:
52 StaticValueType create () const;
53 void assign (StaticValueType dst, const StaticValueType src) const;
54 void free (StaticValueType) const;
55 void release (StaticValueType) const;
56 ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const;
57 void marshal (::CORBA::DataEncoder &, StaticValueType) const;
58 };
59
60
61 ::CORBA::StaticValueType _Marshaller_Auktion_Kaeufer::create() const
62 {
63 return (StaticValueType) new _MICO_T( 0 );
64 }
65
66 void _Marshaller_Auktion_Kaeufer::assign( StaticValueType d, const StaticValueType s ) const
67 {
68 *(_MICO_T*) d = ::Auktion::Kaeufer::_duplicate( *(_MICO_T*) s );
69 }
70
71 void _Marshaller_Auktion_Kaeufer::free( StaticValueType v ) const
72 {
73 ::CORBA::release( *(_MICO_T *) v );
74 delete (_MICO_T*) v;
75 }
76
77 void _Marshaller_Auktion_Kaeufer::release( StaticValueType v ) const
78 {
79 ::CORBA::release( *(_MICO_T *) v );
80 }
81
82 ::CORBA::Boolean _Marshaller_Auktion_Kaeufer::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const
83 {
84 ::CORBA::Object_ptr obj;
85 if (!::CORBA::_stc_Object->demarshal(dc, &obj))
86 return FALSE;
87 *(_MICO_T *) v = ::Auktion::Kaeufer::_narrow( obj );
88 ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v);
89 ::CORBA::release (obj);
90 return ret;
91 }
92
93 void _Marshaller_Auktion_Kaeufer::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const
94 {
95 ::CORBA::Object_ptr obj = *(_MICO_T *) v;
96 ::CORBA::_stc_Object->marshal( ec, &obj );
97 }
98
99 ::CORBA::StaticTypeInfo *_marshaller_Auktion_Kaeufer;
100
101
102
103
104 Auktion::Kaeufer_stub::~Kaeufer_stub()
105 {
106 }
107
108 #ifndef MICO_CONF_NO_POA
109
110 void *
111 POA_Auktion::Kaeufer::_narrow_helper (const char * repoid)
112 {
113 if (strcmp (repoid, "IDL:r4/Auktion/Kaeufer:1.0") == 0) {
114 return (void *) this;
115 }
116 return NULL;
117 }
118
119 POA_Auktion::Kaeufer *
120 POA_Auktion::Kaeufer::_narrow (PortableServer::Servant serv)
121 {
122 void * p;
123 if ((p = serv->_narrow_helper ("IDL:r4/Auktion/Kaeufer:1.0")) != NULL) {
124 serv->_add_ref ();
125 return (POA_Auktion::Kaeufer *) p;
126 }
127 return NULL;
128 }
129
130 Auktion::Kaeufer_stub_clp::Kaeufer_stub_clp ()
131 {
132 }
133
134 Auktion::Kaeufer_stub_clp::Kaeufer_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj)
135 : CORBA::Object(*obj), PortableServer::StubBase(poa)
136 {
137 }
138
139 Auktion::Kaeufer_stub_clp::~Kaeufer_stub_clp ()
140 {
141 }
142
143 #endif // MICO_CONF_NO_POA
144
145 void Auktion::Kaeufer_stub::zuschlag( Auktion::Versteigerung_ptr _par_gegenstand, Auktion::Verkaeufer_ptr _par_v )
146 {
147 CORBA::StaticAny _sa_gegenstand( _marshaller_Auktion_Versteigerung, &_par_gegenstand );
148 CORBA::StaticAny _sa_v( _marshaller_Auktion_Verkaeufer, &_par_v );
149 CORBA::StaticRequest __req( this, "zuschlag" );
150 __req.add_in_arg( &_sa_gegenstand );
151 __req.add_in_arg( &_sa_v );
152
153 __req.invoke();
154
155 mico_sii_throw( &__req,
156 0);
157 }
158
159
160 #ifndef MICO_CONF_NO_POA
161
162 void
163 Auktion::Kaeufer_stub_clp::zuschlag( Auktion::Versteigerung_ptr _par_gegenstand, Auktion::Verkaeufer_ptr _par_v )
164 {
165 PortableServer::Servant _serv = _preinvoke ();
166 if (_serv) {
167 POA_Auktion::Kaeufer * _myserv = POA_Auktion::Kaeufer::_narrow (_serv);
168 if (_myserv) {
169 #ifdef HAVE_EXCEPTIONS
170 try {
171 #endif
172 _myserv->zuschlag(_par_gegenstand, _par_v);
173 #ifdef HAVE_EXCEPTIONS
174 }
175 catch (...) {
176 _myserv->_remove_ref();
177 _postinvoke();
178 throw;
179 }
180 #endif
181
182 _myserv->_remove_ref();
183 _postinvoke ();
184 return;
185 }
186 _postinvoke ();
187 }
188
189 Auktion::Kaeufer_stub::zuschlag(_par_gegenstand, _par_v);
190 }
191
192 #endif // MICO_CONF_NO_POA
193
194
195
196
197 Auktion::CCM_Kaeufer::~CCM_Kaeufer()
198 {
199 }
200
201 void *
202 Auktion::CCM_Kaeufer::_narrow_helper( const char *_repoid )
203 {
204 if( strcmp( _repoid, "IDL:r4/Auktion/CCM_Kaeufer:1.0" ) == 0 )
205 return (void *)this;
206 {
207 void *_p;
208 if ((_p = Auktion::Kaeufer::_narrow_helper( _repoid )))
209 return _p;
210 }
211 {
212 void *_p;
213 if ((_p = ::CORBA::LocalObject::_narrow_helper (_repoid)))
214 return _p;
215 }
216 return NULL;
217 }
218
219 Auktion::CCM_Kaeufer_ptr
220 Auktion::CCM_Kaeufer::_narrow( CORBA::Object_ptr _obj )
221 {
222 if( !CORBA::is_nil( _obj ) ) {
223 void *_p;
224 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/CCM_Kaeufer:1.0" )))
225 return _duplicate( (Auktion::CCM_Kaeufer_ptr) _p );
226 }
227 return _nil();
228 }
229
230 Auktion::CCM_Kaeufer_ptr
231 Auktion::CCM_Kaeufer::_narrow( CORBA::AbstractBase_ptr _obj )
232 {
233 return _narrow (_obj->_to_object());
234 }
235
236
237 #ifdef HAVE_EXPLICIT_STRUCT_OPS
238 Auktion::Bieter::versteigerungenConnection::versteigerungenConnection()
239 {
240 }
241
242 Auktion::Bieter::versteigerungenConnection::versteigerungenConnection( const versteigerungenConnection& _s )
243 {
244 objref = ((versteigerungenConnection&)_s).objref;
245 ck = Components::Cookie::_narrow ((versteigerungenConnection&)_s.ck->_copy_value());
246 }
247
248 Auktion::Bieter::versteigerungenConnection::~versteigerungenConnection()
249 {
250 }
251
252 Auktion::Bieter::versteigerungenConnection&
253 Auktion::Bieter::versteigerungenConnection::operator=( const versteigerungenConnection& _s )
254 {
255 objref = ((versteigerungenConnection&)_s).objref;
256 ck = Components::Cookie::_narrow ((versteigerungenConnection&)_s.ck->_copy_value());
257 return *this;
258 }
259 #endif
260
261 CORBA::Long
262 Auktion::Bieter::versteigerungenConnection::_count_refs (CORBA::ValueBase::visited * _seen)
263 {
264 CORBA::Long res = 0;
265 if (ck) {
266 res += ck->_count_refs (_seen);
267 }
268 return res;
269 }
270
271 void
272 Auktion::Bieter::versteigerungenConnection::_release_members ()
273 {
274 if (ck) {
275 ck->_release_members ();
276 }
277 ck = 0;
278 }
279
280 class _Marshaller_Auktion_Bieter_versteigerungenConnection : public ::CORBA::StaticTypeInfo {
281 typedef Auktion::Bieter::versteigerungenConnection _MICO_T;
282 public:
283 StaticValueType create () const;
284 void assign (StaticValueType dst, const StaticValueType src) const;
285 void free (StaticValueType) const;
286 ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const;
287 void marshal (::CORBA::DataEncoder &, StaticValueType) const;
288 };
289
290
291 ::CORBA::StaticValueType _Marshaller_Auktion_Bieter_versteigerungenConnection::create() const
292 {
293 return (StaticValueType) new _MICO_T;
294 }
295
296 void _Marshaller_Auktion_Bieter_versteigerungenConnection::assign( StaticValueType d, const StaticValueType s ) const
297 {
298 *(_MICO_T*) d = *(_MICO_T*) s;
299 }
300
301 void _Marshaller_Auktion_Bieter_versteigerungenConnection::free( StaticValueType v ) const
302 {
303 delete (_MICO_T*) v;
304 }
305
306 ::CORBA::Boolean _Marshaller_Auktion_Bieter_versteigerungenConnection::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const
307 {
308 return
309 dc.struct_begin() &&
310 _marshaller_Auktion_Versteigerung->demarshal( dc, &((_MICO_T*)v)->objref._for_demarshal() ) &&
311 _marshaller_Components_Cookie->demarshal( dc, &((_MICO_T*)v)->ck._for_demarshal() ) &&
312 dc.struct_end();
313 }
314
315 void _Marshaller_Auktion_Bieter_versteigerungenConnection::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const
316 {
317 ec.struct_begin();
318 _marshaller_Auktion_Versteigerung->marshal( ec, &((_MICO_T*)v)->objref.inout() );
319 _marshaller_Components_Cookie->marshal( ec, &((_MICO_T*)v)->ck.inout() );
320 ec.struct_end();
321 }
322
323 ::CORBA::StaticTypeInfo *_marshaller_Auktion_Bieter_versteigerungenConnection;
324
325
326
327
328
329 Auktion::Bieter::~Bieter()
330 {
331 }
332
333 void *
334 Auktion::Bieter::_narrow_helper( const char *_repoid )
335 {
336 if( strcmp( _repoid, "IDL:r4/Auktion/Bieter:1.0" ) == 0 )
337 return (void *)this;
338 {
339 void *_p;
340 if ((_p = Components::CCMObject::_narrow_helper( _repoid )))
341 return _p;
342 }
343 {
344 void *_p;
345 if ((_p = Auktion::Kaeufer::_narrow_helper( _repoid )))
346 return _p;
347 }
348 return NULL;
349 }
350
351 Auktion::Bieter_ptr
352 Auktion::Bieter::_narrow( CORBA::Object_ptr _obj )
353 {
354 Auktion::Bieter_ptr _o;
355 if( !CORBA::is_nil( _obj ) ) {
356 void *_p;
357 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/Bieter:1.0" )))
358 return _duplicate( (Auktion::Bieter_ptr) _p );
359 if (!strcmp (_obj->_repoid(), "IDL:r4/Auktion/Bieter:1.0") || _obj->_is_a_remote ("IDL:r4/Auktion/Bieter:1.0")) {
360 _o = new Auktion::Bieter_stub;
361 _o->CORBA::Object::operator=( *_obj );
362 return _o;
363 }
364 }
365 return _nil();
366 }
367
368 Auktion::Bieter_ptr
369 Auktion::Bieter::_narrow( CORBA::AbstractBase_ptr _obj )
370 {
371 return _narrow (_obj->_to_object());
372 }
373
374 class _Marshaller_Auktion_Bieter : public ::CORBA::StaticTypeInfo {
375 typedef Auktion::Bieter_ptr _MICO_T;
376 public:
377 StaticValueType create () const;
378 void assign (StaticValueType dst, const StaticValueType src) const;
379 void free (StaticValueType) const;
380 void release (StaticValueType) const;
381 ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const;
382 void marshal (::CORBA::DataEncoder &, StaticValueType) const;
383 };
384
385
386 ::CORBA::StaticValueType _Marshaller_Auktion_Bieter::create() const
387 {
388 return (StaticValueType) new _MICO_T( 0 );
389 }
390
391 void _Marshaller_Auktion_Bieter::assign( StaticValueType d, const StaticValueType s ) const
392 {
393 *(_MICO_T*) d = ::Auktion::Bieter::_duplicate( *(_MICO_T*) s );
394 }
395
396 void _Marshaller_Auktion_Bieter::free( StaticValueType v ) const
397 {
398 ::CORBA::release( *(_MICO_T *) v );
399 delete (_MICO_T*) v;
400 }
401
402 void _Marshaller_Auktion_Bieter::release( StaticValueType v ) const
403 {
404 ::CORBA::release( *(_MICO_T *) v );
405 }
406
407 ::CORBA::Boolean _Marshaller_Auktion_Bieter::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const
408 {
409 ::CORBA::Object_ptr obj;
410 if (!::CORBA::_stc_Object->demarshal(dc, &obj))
411 return FALSE;
412 *(_MICO_T *) v = ::Auktion::Bieter::_narrow( obj );
413 ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v);
414 ::CORBA::release (obj);
415 return ret;
416 }
417
418 void _Marshaller_Auktion_Bieter::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const
419 {
420 ::CORBA::Object_ptr obj = *(_MICO_T *) v;
421 ::CORBA::_stc_Object->marshal( ec, &obj );
422 }
423
424 ::CORBA::StaticTypeInfo *_marshaller_Auktion_Bieter;
425
426
427
428
429 Auktion::Bieter_stub::~Bieter_stub()
430 {
431 }
432
433 #ifndef MICO_CONF_NO_POA
434
435 void *
436 POA_Auktion::Bieter::_narrow_helper (const char * repoid)
437 {
438 void * p;
439 if (strcmp (repoid, "IDL:r4/Auktion/Bieter:1.0") == 0) {
440 return (void *) this;
441 }
442 if ((p = POA_Components::CCMObject::_narrow_helper (repoid)) != NULL)
443 {
444 return p;
445 }
446 if ((p = POA_Auktion::Kaeufer::_narrow_helper (repoid)) != NULL)
447 {
448 return p;
449 }
450 return NULL;
451 }
452
453 POA_Auktion::Bieter *
454 POA_Auktion::Bieter::_narrow (PortableServer::Servant serv)
455 {
456 void * p;
457 if ((p = serv->_narrow_helper ("IDL:r4/Auktion/Bieter:1.0")) != NULL) {
458 serv->_add_ref ();
459 return (POA_Auktion::Bieter *) p;
460 }
461 return NULL;
462 }
463
464 Auktion::Bieter_stub_clp::Bieter_stub_clp ()
465 {
466 }
467
468 Auktion::Bieter_stub_clp::Bieter_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj)
469 : CORBA::Object(*obj), PortableServer::StubBase(poa)
470 {
471 }
472
473 Auktion::Bieter_stub_clp::~Bieter_stub_clp ()
474 {
475 }
476
477 #endif // MICO_CONF_NO_POA
478
479 Auktion::GebotConsumer_ptr Auktion::Bieter_stub::get_consumer_gebote()
480 {
481 Auktion::GebotConsumer_ptr _res;
482 CORBA::StaticAny __res( _marshaller_Auktion_GebotConsumer, &_res );
483
484 CORBA::StaticRequest __req( this, "get_consumer_gebote" );
485 __req.set_result( &__res );
486
487 __req.invoke();
488
489 mico_sii_throw( &__req,
490 0);
491 return _res;
492 }
493
494
495 #ifndef MICO_CONF_NO_POA
496
497 Auktion::GebotConsumer_ptr
498 Auktion::Bieter_stub_clp::get_consumer_gebote()
499 {
500 PortableServer::Servant _serv = _preinvoke ();
501 if (_serv) {
502 POA_Auktion::Bieter * _myserv = POA_Auktion::Bieter::_narrow (_serv);
503 if (_myserv) {
504 Auktion::GebotConsumer_ptr __res;
505
506 #ifdef HAVE_EXCEPTIONS
507 try {
508 #endif
509 __res = _myserv->get_consumer_gebote();
510 #ifdef HAVE_EXCEPTIONS
511 }
512 catch (...) {
513 _myserv->_remove_ref();
514 _postinvoke();
515 throw;
516 }
517 #endif
518
519 _myserv->_remove_ref();
520 _postinvoke ();
521 return __res;
522 }
523 _postinvoke ();
524 }
525
526 return Auktion::Bieter_stub::get_consumer_gebote();
527 }
528
529 #endif // MICO_CONF_NO_POA
530
531 Components::Cookie* Auktion::Bieter_stub::connect_versteigerungen( Auktion::Versteigerung_ptr _par_connection )
532 {
533 CORBA::StaticAny _sa_connection( _marshaller_Auktion_Versteigerung, &_par_connection );
534 Components::Cookie* _res;
535 CORBA::StaticAny __res( _marshaller_Components_Cookie, &_res );
536
537 CORBA::StaticRequest __req( this, "connect_versteigerungen" );
538 __req.add_in_arg( &_sa_connection );
539 __req.set_result( &__res );
540
541 __req.invoke();
542
543 mico_sii_throw( &__req,
544 _marshaller_Components_ExceededConnectionLimit, "IDL:omg.org/Components/ExceededConnectionLimit:1.0",
545 _marshaller_Components_InvalidConnection, "IDL:omg.org/Components/InvalidConnection:1.0",
546 0);
547 return _res;
548 }
549
550
551 #ifndef MICO_CONF_NO_POA
552
553 Components::Cookie*
554 Auktion::Bieter_stub_clp::connect_versteigerungen( Auktion::Versteigerung_ptr _par_connection )
555 {
556 PortableServer::Servant _serv = _preinvoke ();
557 if (_serv) {
558 POA_Auktion::Bieter * _myserv = POA_Auktion::Bieter::_narrow (_serv);
559 if (_myserv) {
560 Components::Cookie* __res;
561
562 #ifdef HAVE_EXCEPTIONS
563 try {
564 #endif
565 __res = _myserv->connect_versteigerungen(_par_connection);
566 #ifdef HAVE_EXCEPTIONS
567 }
568 catch (...) {
569 _myserv->_remove_ref();
570 _postinvoke();
571 throw;
572 }
573 #endif
574
575 _myserv->_remove_ref();
576 _postinvoke ();
577 Components::Cookie* __res2 = Components::Cookie::_downcast (__res->_copy_value ());
578 CORBA::remove_ref (__res);
579 return __res2;
580 }
581 _postinvoke ();
582 }
583
584 return Auktion::Bieter_stub::connect_versteigerungen(_par_connection);
585 }
586
587 #endif // MICO_CONF_NO_POA
588
589 Auktion::Versteigerung_ptr Auktion::Bieter_stub::disconnect_versteigerungen( Components::Cookie* _par_ck )
590 {
591 CORBA::StaticAny _sa_ck( _marshaller_Components_Cookie, &_par_ck );
592 Auktion::Versteigerung_ptr _res;
593 CORBA::StaticAny __res( _marshaller_Auktion_Versteigerung, &_res );
594
595 CORBA::StaticRequest __req( this, "disconnect_versteigerungen" );
596 __req.add_in_arg( &_sa_ck );
597 __req.set_result( &__res );
598
599 __req.invoke();
600
601 mico_sii_throw( &__req,
602 _marshaller_Components_InvalidConnection, "IDL:omg.org/Components/InvalidConnection:1.0",
603 0);
604 return _res;
605 }
606
607
608 #ifndef MICO_CONF_NO_POA
609
610 Auktion::Versteigerung_ptr
611 Auktion::Bieter_stub_clp::disconnect_versteigerungen( Components::Cookie* _par_ck )
612 {
613 PortableServer::Servant _serv = _preinvoke ();
614 if (_serv) {
615 POA_Auktion::Bieter * _myserv = POA_Auktion::Bieter::_narrow (_serv);
616 if (_myserv) {
617 Auktion::Versteigerung_ptr __res;
618
619 Components::Cookie* _copy_of_par_ck;
620 _copy_of_par_ck = Components::Cookie::_downcast (_par_ck->_copy_value());
621 #ifdef HAVE_EXCEPTIONS
622 try {
623 #endif
624 __res = _myserv->disconnect_versteigerungen(_copy_of_par_ck);
625 #ifdef HAVE_EXCEPTIONS
626 }
627 catch (...) {
628 _myserv->_remove_ref();
629 _postinvoke();
630 throw;
631 }
632 #endif
633
634 _myserv->_remove_ref();
635 _postinvoke ();
636 CORBA::remove_ref (_copy_of_par_ck);
637 return __res;
638 }
639 _postinvoke ();
640 }
641
642 return Auktion::Bieter_stub::disconnect_versteigerungen(_par_ck);
643 }
644
645 #endif // MICO_CONF_NO_POA
646
647 Auktion::Bieter::versteigerungenConnections* Auktion::Bieter_stub::get_connections_versteigerungen()
648 {
649 CORBA::StaticAny __res( _marshaller__seq_Auktion_Bieter_versteigerungenConnection );
650
651 CORBA::StaticRequest __req( this, "get_connections_versteigerungen" );
652 __req.set_result( &__res );
653
654 __req.invoke();
655
656 mico_sii_throw( &__req,
657 0);
658 return (Auktion::Bieter::versteigerungenConnections*) __res._retn();
659 }
660
661
662 #ifndef MICO_CONF_NO_POA
663
664 Auktion::Bieter::versteigerungenConnections*
665 Auktion::Bieter_stub_clp::get_connections_versteigerungen()
666 {
667 return Auktion::Bieter_stub::get_connections_versteigerungen();
668 }
669
670 #endif // MICO_CONF_NO_POA
671
672
673
674
675 Auktion::CCM_Bieter::~CCM_Bieter()
676 {
677 }
678
679 void *
680 Auktion::CCM_Bieter::_narrow_helper( const char *_repoid )
681 {
682 if( strcmp( _repoid, "IDL:r4/Auktion/CCM_Bieter:1.0" ) == 0 )
683 return (void *)this;
684 {
685 void *_p;
686 if ((_p = Components::EnterpriseComponent::_narrow_helper( _repoid )))
687 return _p;
688 }
689 {
690 void *_p;
691 if ((_p = Auktion::Kaeufer::_narrow_helper( _repoid )))
692 return _p;
693 }
694 return NULL;
695 }
696
697 Auktion::CCM_Bieter_ptr
698 Auktion::CCM_Bieter::_narrow( CORBA::Object_ptr _obj )
699 {
700 if( !CORBA::is_nil( _obj ) ) {
701 void *_p;
702 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/CCM_Bieter:1.0" )))
703 return _duplicate( (Auktion::CCM_Bieter_ptr) _p );
704 }
705 return _nil();
706 }
707
708 Auktion::CCM_Bieter_ptr
709 Auktion::CCM_Bieter::_narrow( CORBA::AbstractBase_ptr _obj )
710 {
711 return _narrow (_obj->_to_object());
712 }
713
714
715
716
717
718 Auktion::CCM_Bieter_Executor::~CCM_Bieter_Executor()
719 {
720 }
721
722 void *
723 Auktion::CCM_Bieter_Executor::_narrow_helper( const char *_repoid )
724 {
725 if( strcmp( _repoid, "IDL:r4/Auktion/CCM_Bieter_Executor:1.0" ) == 0 )
726 return (void *)this;
727 {
728 void *_p;
729 if ((_p = Components::EnterpriseComponent::_narrow_helper( _repoid )))
730 return _p;
731 }
732 {
733 void *_p;
734 if ((_p = Auktion::Kaeufer::_narrow_helper( _repoid )))
735 return _p;
736 }
737 return NULL;
738 }
739
740 Auktion::CCM_Bieter_Executor_ptr
741 Auktion::CCM_Bieter_Executor::_narrow( CORBA::Object_ptr _obj )
742 {
743 if( !CORBA::is_nil( _obj ) ) {
744 void *_p;
745 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/CCM_Bieter_Executor:1.0" )))
746 return _duplicate( (Auktion::CCM_Bieter_Executor_ptr) _p );
747 }
748 return _nil();
749 }
750
751 Auktion::CCM_Bieter_Executor_ptr
752 Auktion::CCM_Bieter_Executor::_narrow( CORBA::AbstractBase_ptr _obj )
753 {
754 return _narrow (_obj->_to_object());
755 }
756
757
758
759
760
761 Auktion::CCM_Bieter_Context::~CCM_Bieter_Context()
762 {
763 }
764
765 void *
766 Auktion::CCM_Bieter_Context::_narrow_helper( const char *_repoid )
767 {
768 if( strcmp( _repoid, "IDL:r4/Auktion/CCM_Bieter_Context:1.0" ) == 0 )
769 return (void *)this;
770 {
771 void *_p;
772 if ((_p = Components::SessionContext::_narrow_helper( _repoid )))
773 return _p;
774 }
775 return NULL;
776 }
777
778 Auktion::CCM_Bieter_Context_ptr
779 Auktion::CCM_Bieter_Context::_narrow( CORBA::Object_ptr _obj )
780 {
781 if( !CORBA::is_nil( _obj ) ) {
782 void *_p;
783 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/CCM_Bieter_Context:1.0" )))
784 return _duplicate( (Auktion::CCM_Bieter_Context_ptr) _p );
785 }
786 return _nil();
787 }
788
789 Auktion::CCM_Bieter_Context_ptr
790 Auktion::CCM_Bieter_Context::_narrow( CORBA::AbstractBase_ptr _obj )
791 {
792 return _narrow (_obj->_to_object());
793 }
794
795
796
797
798 Auktion::Gebot::Gebot ()
799 {
800 }
801
802 Auktion::Gebot::~Gebot ()
803 {
804 }
805
806 void *
807 Auktion::Gebot::_narrow_helper (const char * repoid)
808 {
809 void * p;
810 if (strcmp (repoid, "IDL:r4/Auktion/Gebot:1.0") == 0) {
811 return (void *) this;
812 }
813 if ((p = ::Components::EventBase::_narrow_helper (repoid)) != NULL) {
814 return p;
815 }
816 return NULL;
817 }
818
819 Auktion::Gebot *
820 Auktion::Gebot::_downcast (CORBA::ValueBase * vb)
821 {
822 void * p;
823 if (vb && ((p = vb->_narrow_helper ("IDL:r4/Auktion/Gebot:1.0")))) {
824 return (Auktion::Gebot *) p;
825 }
826 return 0;
827 }
828
829 Auktion::Gebot *
830 Auktion::Gebot::_downcast (CORBA::AbstractBase * vb)
831 {
832 return _downcast (vb->_to_value());
833 }
834
835 CORBA::ValueDef_ptr
836 Auktion::Gebot::get_value_def ()
837 {
838 CORBA::ORB_var orb = CORBA::ORB_instance ("mico-local-orb");
839 CORBA::Object_var irobj =
840 orb->resolve_initial_references ("InterfaceRepository");
841 CORBA::Repository_var ifr = CORBA::Repository::_narrow (irobj);
842 if (CORBA::is_nil (ifr)) {
843 return CORBA::ValueDef::_nil ();
844 }
845
846 CORBA::Contained_var cv = ifr->lookup_id ("IDL:r4/Auktion/Gebot:1.0");
847 return CORBA::ValueDef::_narrow (cv);
848 }
849
850 void
851 Auktion::Gebot::_copy_members (const Gebot& other)
852 {
853 gegenstand (other.gegenstand());
854 angebot (other.angebot());
855 }
856
857 CORBA::ValueBase *
858 Auktion::Gebot::_copy_value ()
859 {
860 vector<string> _dummy;
861 string _repo_id = "IDL:r4/Auktion/Gebot:1.0";
862 Gebot * _res = _downcast (_create (_dummy, _repo_id));
863 assert (_res != 0);
864 _res->_copy_members (*this);
865 return _res;
866 }
867
868 void
869 Auktion::Gebot::_get_marshal_info (vector<string> & repoids, CORBA::Boolean & chunked)
870 {
871 repoids.push_back ("IDL:r4/Auktion/Gebot:1.0");
872 chunked = FALSE;
873 }
874
875 void
876 Auktion::Gebot::_marshal_members (CORBA::DataEncoder &ec)
877 {
878 Auktion::Versteigerung_ptr _gegenstand = gegenstand ();
879 _marshaller_Auktion_Versteigerung->marshal (ec, &_gegenstand);
880 CORBA::Long _angebot = angebot ();
881 CORBA::_stc_long->marshal (ec, &_angebot);
882 }
883
884 CORBA::Boolean
885 Auktion::Gebot::_demarshal_members (CORBA::DataDecoder &dc)
886 {
887 Auktion::Versteigerung_var _gegenstand;
888 if (!_marshaller_Auktion_Versteigerung->demarshal (dc, &_gegenstand._for_demarshal())) {
889 return FALSE;
890 }
891 gegenstand (_gegenstand);
892 CORBA::Long _angebot;
893 if (!CORBA::_stc_long->demarshal (dc, &_angebot)) {
894 return FALSE;
895 }
896 angebot (_angebot);
897 return TRUE;
898 }
899
900
901 class _Marshaller_Auktion_Gebot : public ::CORBA::StaticTypeInfo {
902 typedef Auktion::Gebot* _MICO_T;
903 public:
904 StaticValueType create () const;
905 void assign (StaticValueType dst, const StaticValueType src) const;
906 void free (StaticValueType) const;
907 ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const;
908 void marshal (::CORBA::DataEncoder &, StaticValueType) const;
909 };
910
911
912 ::CORBA::StaticValueType _Marshaller_Auktion_Gebot::create() const
913 {
914 return (StaticValueType) new _MICO_T( 0 );
915 }
916
917 void _Marshaller_Auktion_Gebot::assign( StaticValueType d, const StaticValueType s ) const
918 {
919 ::CORBA::remove_ref (*(_MICO_T*)d);
920 ::CORBA::add_ref (*(_MICO_T*)s);
921 *(_MICO_T*) d = *(_MICO_T*) s;
922 }
923
924 void _Marshaller_Auktion_Gebot::free( StaticValueType v ) const
925 {
926 ::CORBA::remove_ref (*(_MICO_T*)v);
927 delete (_MICO_T*) v;
928 }
929
930 ::CORBA::Boolean _Marshaller_Auktion_Gebot::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const
931 {
932 ::CORBA::ValueBase* vb = NULL;
933 if (!::CORBA::ValueBase::_demarshal (dc, vb, "IDL:r4/Auktion/Gebot:1.0")) {
934 return FALSE;
935 }
936 *(_MICO_T *)v = ::Auktion::Gebot::_downcast (vb);
937 if (vb && !*(_MICO_T *)v) {
938 ::CORBA::remove_ref (vb);
939 return FALSE;
940 }
941 return TRUE;
942 }
943
944 void _Marshaller_Auktion_Gebot::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const
945 {
946 ::CORBA::ValueBase::_marshal (ec, *(_MICO_T *)v);
947 }
948
949 ::CORBA::StaticTypeInfo *_marshaller_Auktion_Gebot;
950
951
952
953 OBV_Auktion::Gebot::Gebot ()
954 {
955 }
956
957 OBV_Auktion::Gebot::Gebot (::Auktion::Versteigerung_ptr _gegenstand, CORBA::Long _angebot)
958 {
959 _m.gegenstand = ::Auktion::Versteigerung::_duplicate( _gegenstand );
960 _m.angebot = _angebot;
961 }
962
963 OBV_Auktion::Gebot::~Gebot ()
964 {
965 }
966
967 void OBV_Auktion::Gebot::gegenstand( ::Auktion::Versteigerung_ptr _p )
968 {
969 _m.gegenstand = ::Auktion::Versteigerung::_duplicate( _p );
970 }
971
972 ::Auktion::Versteigerung_ptr OBV_Auktion::Gebot::gegenstand() const
973 {
974 return _m.gegenstand.in();
975 }
976
977 void OBV_Auktion::Gebot::angebot( CORBA::Long _p )
978 {
979 _m.angebot = _p;
980 }
981
982 CORBA::Long OBV_Auktion::Gebot::angebot() const
983 {
984 return (CORBA::Long)_m.angebot;
985 }
986
987
988
989
990 Auktion::GebotConsumer::~GebotConsumer()
991 {
992 }
993
994 void *
995 Auktion::GebotConsumer::_narrow_helper( const char *_repoid )
996 {
997 if( strcmp( _repoid, "IDL:r4/Auktion/GebotConsumer:1.0" ) == 0 )
998 return (void *)this;
999 {
1000 void *_p;
1001 if ((_p = Components::EventConsumerBase::_narrow_helper( _repoid )))
1002 return _p;
1003 }
1004 return NULL;
1005 }
1006
1007 Auktion::GebotConsumer_ptr
1008 Auktion::GebotConsumer::_narrow( CORBA::Object_ptr _obj )
1009 {
1010 Auktion::GebotConsumer_ptr _o;
1011 if( !CORBA::is_nil( _obj ) ) {
1012 void *_p;
1013 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/GebotConsumer:1.0" )))
1014 return _duplicate( (Auktion::GebotConsumer_ptr) _p );
1015 if (!strcmp (_obj->_repoid(), "IDL:r4/Auktion/GebotConsumer:1.0") || _obj->_is_a_remote ("IDL:r4/Auktion/GebotConsumer:1.0")) {
1016 _o = new Auktion::GebotConsumer_stub;
1017 _o->CORBA::Object::operator=( *_obj );
1018 return _o;
1019 }
1020 }
1021 return _nil();
1022 }
1023
1024 Auktion::GebotConsumer_ptr
1025 Auktion::GebotConsumer::_narrow( CORBA::AbstractBase_ptr _obj )
1026 {
1027 return _narrow (_obj->_to_object());
1028 }
1029
1030 class _Marshaller_Auktion_GebotConsumer : public ::CORBA::StaticTypeInfo {
1031 typedef Auktion::GebotConsumer_ptr _MICO_T;
1032 public:
1033 StaticValueType create () const;
1034 void assign (StaticValueType dst, const StaticValueType src) const;
1035 void free (StaticValueType) const;
1036 void release (StaticValueType) const;
1037 ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const;
1038 void marshal (::CORBA::DataEncoder &, StaticValueType) const;
1039 };
1040
1041
1042 ::CORBA::StaticValueType _Marshaller_Auktion_GebotConsumer::create() const
1043 {
1044 return (StaticValueType) new _MICO_T( 0 );
1045 }
1046
1047 void _Marshaller_Auktion_GebotConsumer::assign( StaticValueType d, const StaticValueType s ) const
1048 {
1049 *(_MICO_T*) d = ::Auktion::GebotConsumer::_duplicate( *(_MICO_T*) s );
1050 }
1051
1052 void _Marshaller_Auktion_GebotConsumer::free( StaticValueType v ) const
1053 {
1054 ::CORBA::release( *(_MICO_T *) v );
1055 delete (_MICO_T*) v;
1056 }
1057
1058 void _Marshaller_Auktion_GebotConsumer::release( StaticValueType v ) const
1059 {
1060 ::CORBA::release( *(_MICO_T *) v );
1061 }
1062
1063 ::CORBA::Boolean _Marshaller_Auktion_GebotConsumer::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const
1064 {
1065 ::CORBA::Object_ptr obj;
1066 if (!::CORBA::_stc_Object->demarshal(dc, &obj))
1067 return FALSE;
1068 *(_MICO_T *) v = ::Auktion::GebotConsumer::_narrow( obj );
1069 ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v);
1070 ::CORBA::release (obj);
1071 return ret;
1072 }
1073
1074 void _Marshaller_Auktion_GebotConsumer::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const
1075 {
1076 ::CORBA::Object_ptr obj = *(_MICO_T *) v;
1077 ::CORBA::_stc_Object->marshal( ec, &obj );
1078 }
1079
1080 ::CORBA::StaticTypeInfo *_marshaller_Auktion_GebotConsumer;
1081
1082
1083
1084
1085 Auktion::GebotConsumer_stub::~GebotConsumer_stub()
1086 {
1087 }
1088
1089 #ifndef MICO_CONF_NO_POA
1090
1091 void *
1092 POA_Auktion::GebotConsumer::_narrow_helper (const char * repoid)
1093 {
1094 void * p;
1095 if (strcmp (repoid, "IDL:r4/Auktion/GebotConsumer:1.0") == 0) {
1096 return (void *) this;
1097 }
1098 if ((p = POA_Components::EventConsumerBase::_narrow_helper (repoid)) != NULL)
1099 {
1100 return p;
1101 }
1102 return NULL;
1103 }
1104
1105 POA_Auktion::GebotConsumer *
1106 POA_Auktion::GebotConsumer::_narrow (PortableServer::Servant serv)
1107 {
1108 void * p;
1109 if ((p = serv->_narrow_helper ("IDL:r4/Auktion/GebotConsumer:1.0")) != NULL) {
1110 serv->_add_ref ();
1111 return (POA_Auktion::GebotConsumer *) p;
1112 }
1113 return NULL;
1114 }
1115
1116 Auktion::GebotConsumer_stub_clp::GebotConsumer_stub_clp ()
1117 {
1118 }
1119
1120 Auktion::GebotConsumer_stub_clp::GebotConsumer_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj)
1121 : CORBA::Object(*obj), PortableServer::StubBase(poa)
1122 {
1123 }
1124
1125 Auktion::GebotConsumer_stub_clp::~GebotConsumer_stub_clp ()
1126 {
1127 }
1128
1129 #endif // MICO_CONF_NO_POA
1130
1131 void Auktion::GebotConsumer_stub::push_Gebot( Auktion::Gebot* _par_event )
1132 {
1133 CORBA::StaticAny _sa_event( _marshaller_Auktion_Gebot, &_par_event );
1134 CORBA::StaticRequest __req( this, "push_Gebot" );
1135 __req.add_in_arg( &_sa_event );
1136
1137 __req.invoke();
1138
1139 mico_sii_throw( &__req,
1140 0);
1141 }
1142
1143
1144 #ifndef MICO_CONF_NO_POA
1145
1146 void
1147 Auktion::GebotConsumer_stub_clp::push_Gebot( Auktion::Gebot* _par_event )
1148 {
1149 PortableServer::Servant _serv = _preinvoke ();
1150 if (_serv) {
1151 POA_Auktion::GebotConsumer * _myserv = POA_Auktion::GebotConsumer::_narrow (_serv);
1152 if (_myserv) {
1153 Auktion::Gebot* _copy_of_par_event;
1154 _copy_of_par_event = Auktion::Gebot::_downcast (_par_event->_copy_value());
1155 #ifdef HAVE_EXCEPTIONS
1156 try {
1157 #endif
1158 _myserv->push_Gebot(_copy_of_par_event);
1159 #ifdef HAVE_EXCEPTIONS
1160 }
1161 catch (...) {
1162 _myserv->_remove_ref();
1163 _postinvoke();
1164 throw;
1165 }
1166 #endif
1167
1168 _myserv->_remove_ref();
1169 _postinvoke ();
1170 CORBA::remove_ref (_copy_of_par_event);
1171 return;
1172 }
1173 _postinvoke ();
1174 }
1175
1176 Auktion::GebotConsumer_stub::push_Gebot(_par_event);
1177 }
1178
1179 #endif // MICO_CONF_NO_POA
1180
1181
1182
1183
1184 Auktion::CCM_GebotConsumer::~CCM_GebotConsumer()
1185 {
1186 }
1187
1188 void *
1189 Auktion::CCM_GebotConsumer::_narrow_helper( const char *_repoid )
1190 {
1191 if( strcmp( _repoid, "IDL:r4/Auktion/CCM_GebotConsumer:1.0" ) == 0 )
1192 return (void *)this;
1193 {
1194 void *_p;
1195 if ((_p = ::CORBA::LocalObject::_narrow_helper (_repoid)))
1196 return _p;
1197 }
1198 return NULL;
1199 }
1200
1201 Auktion::CCM_GebotConsumer_ptr
1202 Auktion::CCM_GebotConsumer::_narrow( CORBA::Object_ptr _obj )
1203 {
1204 if( !CORBA::is_nil( _obj ) ) {
1205 void *_p;
1206 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/CCM_GebotConsumer:1.0" )))
1207 return _duplicate( (Auktion::CCM_GebotConsumer_ptr) _p );
1208 }
1209 return _nil();
1210 }
1211
1212 Auktion::CCM_GebotConsumer_ptr
1213 Auktion::CCM_GebotConsumer::_narrow( CORBA::AbstractBase_ptr _obj )
1214 {
1215 return _narrow (_obj->_to_object());
1216 }
1217
1218
1219
1220
1221
1222 Auktion::Versteigerung::~Versteigerung()
1223 {
1224 }
1225
1226 void *
1227 Auktion::Versteigerung::_narrow_helper( const char *_repoid )
1228 {
1229 if( strcmp( _repoid, "IDL:r4/Auktion/Versteigerung:1.0" ) == 0 )
1230 return (void *)this;
1231 return NULL;
1232 }
1233
1234 Auktion::Versteigerung_ptr
1235 Auktion::Versteigerung::_narrow( CORBA::Object_ptr _obj )
1236 {
1237 Auktion::Versteigerung_ptr _o;
1238 if( !CORBA::is_nil( _obj ) ) {
1239 void *_p;
1240 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/Versteigerung:1.0" )))
1241 return _duplicate( (Auktion::Versteigerung_ptr) _p );
1242 if (!strcmp (_obj->_repoid(), "IDL:r4/Auktion/Versteigerung:1.0") || _obj->_is_a_remote ("IDL:r4/Auktion/Versteigerung:1.0")) {
1243 _o = new Auktion::Versteigerung_stub;
1244 _o->CORBA::Object::operator=( *_obj );
1245 return _o;
1246 }
1247 }
1248 return _nil();
1249 }
1250
1251 Auktion::Versteigerung_ptr
1252 Auktion::Versteigerung::_narrow( CORBA::AbstractBase_ptr _obj )
1253 {
1254 return _narrow (_obj->_to_object());
1255 }
1256
1257 class _Marshaller_Auktion_Versteigerung : public ::CORBA::StaticTypeInfo {
1258 typedef Auktion::Versteigerung_ptr _MICO_T;
1259 public:
1260 StaticValueType create () const;
1261 void assign (StaticValueType dst, const StaticValueType src) const;
1262 void free (StaticValueType) const;
1263 void release (StaticValueType) const;
1264 ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const;
1265 void marshal (::CORBA::DataEncoder &, StaticValueType) const;
1266 };
1267
1268
1269 ::CORBA::StaticValueType _Marshaller_Auktion_Versteigerung::create() const
1270 {
1271 return (StaticValueType) new _MICO_T( 0 );
1272 }
1273
1274 void _Marshaller_Auktion_Versteigerung::assign( StaticValueType d, const StaticValueType s ) const
1275 {
1276 *(_MICO_T*) d = ::Auktion::Versteigerung::_duplicate( *(_MICO_T*) s );
1277 }
1278
1279 void _Marshaller_Auktion_Versteigerung::free( StaticValueType v ) const
1280 {
1281 ::CORBA::release( *(_MICO_T *) v );
1282 delete (_MICO_T*) v;
1283 }
1284
1285 void _Marshaller_Auktion_Versteigerung::release( StaticValueType v ) const
1286 {
1287 ::CORBA::release( *(_MICO_T *) v );
1288 }
1289
1290 ::CORBA::Boolean _Marshaller_Auktion_Versteigerung::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const
1291 {
1292 ::CORBA::Object_ptr obj;
1293 if (!::CORBA::_stc_Object->demarshal(dc, &obj))
1294 return FALSE;
1295 *(_MICO_T *) v = ::Auktion::Versteigerung::_narrow( obj );
1296 ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v);
1297 ::CORBA::release (obj);
1298 return ret;
1299 }
1300
1301 void _Marshaller_Auktion_Versteigerung::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const
1302 {
1303 ::CORBA::Object_ptr obj = *(_MICO_T *) v;
1304 ::CORBA::_stc_Object->marshal( ec, &obj );
1305 }
1306
1307 ::CORBA::StaticTypeInfo *_marshaller_Auktion_Versteigerung;
1308
1309
1310
1311
1312 Auktion::Versteigerung_stub::~Versteigerung_stub()
1313 {
1314 }
1315
1316 #ifndef MICO_CONF_NO_POA
1317
1318 void *
1319 POA_Auktion::Versteigerung::_narrow_helper (const char * repoid)
1320 {
1321 if (strcmp (repoid, "IDL:r4/Auktion/Versteigerung:1.0") == 0) {
1322 return (void *) this;
1323 }
1324 return NULL;
1325 }
1326
1327 POA_Auktion::Versteigerung *
1328 POA_Auktion::Versteigerung::_narrow (PortableServer::Servant serv)
1329 {
1330 void * p;
1331 if ((p = serv->_narrow_helper ("IDL:r4/Auktion/Versteigerung:1.0")) != NULL) {
1332 serv->_add_ref ();
1333 return (POA_Auktion::Versteigerung *) p;
1334 }
1335 return NULL;
1336 }
1337
1338 Auktion::Versteigerung_stub_clp::Versteigerung_stub_clp ()
1339 {
1340 }
1341
1342 Auktion::Versteigerung_stub_clp::Versteigerung_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj)
1343 : CORBA::Object(*obj), PortableServer::StubBase(poa)
1344 {
1345 }
1346
1347 Auktion::Versteigerung_stub_clp::~Versteigerung_stub_clp ()
1348 {
1349 }
1350
1351 #endif // MICO_CONF_NO_POA
1352
1353 char* Auktion::Versteigerung_stub::name()
1354 {
1355 char* _res;
1356 CORBA::StaticAny __res( CORBA::_stc_string, &_res );
1357
1358 CORBA::StaticRequest __req( this, "_get_name" );
1359 __req.set_result( &__res );
1360
1361 __req.invoke();
1362
1363 mico_sii_throw( &__req,
1364 0);
1365 return _res;
1366 }
1367
1368
1369 #ifndef MICO_CONF_NO_POA
1370
1371 char*
1372 Auktion::Versteigerung_stub_clp::name()
1373 {
1374 PortableServer::Servant _serv = _preinvoke ();
1375 if (_serv) {
1376 POA_Auktion::Versteigerung * _myserv = POA_Auktion::Versteigerung::_narrow (_serv);
1377 if (_myserv) {
1378 char* __res;
1379
1380 #ifdef HAVE_EXCEPTIONS
1381 try {
1382 #endif
1383 __res = _myserv->name();
1384 #ifdef HAVE_EXCEPTIONS
1385 }
1386 catch (...) {
1387 _myserv->_remove_ref();
1388 _postinvoke();
1389 throw;
1390 }
1391 #endif
1392
1393 _myserv->_remove_ref();
1394 _postinvoke ();
1395 return __res;
1396 }
1397 _postinvoke ();
1398 }
1399
1400 return Auktion::Versteigerung_stub::name();
1401 }
1402
1403 #endif // MICO_CONF_NO_POA
1404
1405 CORBA::Long Auktion::Versteigerung_stub::aktuelles_gebot()
1406 {
1407 CORBA::Long _res;
1408 CORBA::StaticAny __res( CORBA::_stc_long, &_res );
1409
1410 CORBA::StaticRequest __req( this, "_get_aktuelles_gebot" );
1411 __req.set_result( &__res );
1412
1413 __req.invoke();
1414
1415 mico_sii_throw( &__req,
1416 0);
1417 return _res;
1418 }
1419
1420
1421 #ifndef MICO_CONF_NO_POA
1422
1423 CORBA::Long
1424 Auktion::Versteigerung_stub_clp::aktuelles_gebot()
1425 {
1426 PortableServer::Servant _serv = _preinvoke ();
1427 if (_serv) {
1428 POA_Auktion::Versteigerung * _myserv = POA_Auktion::Versteigerung::_narrow (_serv);
1429 if (_myserv) {
1430 CORBA::Long __res;
1431
1432 #ifdef HAVE_EXCEPTIONS
1433 try {
1434 #endif
1435 __res = _myserv->aktuelles_gebot();
1436 #ifdef HAVE_EXCEPTIONS
1437 }
1438 catch (...) {
1439 _myserv->_remove_ref();
1440 _postinvoke();
1441 throw;
1442 }
1443 #endif
1444
1445 _myserv->_remove_ref();
1446 _postinvoke ();
1447 return __res;
1448 }
1449 _postinvoke ();
1450 }
1451
1452 return Auktion::Versteigerung_stub::aktuelles_gebot();
1453 }
1454
1455 #endif // MICO_CONF_NO_POA
1456
1457 void Auktion::Versteigerung_stub::biete( CORBA::Long _par_gebot, Auktion::Bieter_ptr _par_potentieller_kaeufer )
1458 {
1459 CORBA::StaticAny _sa_gebot( CORBA::_stc_long, &_par_gebot );
1460 CORBA::StaticAny _sa_potentieller_kaeufer( _marshaller_Auktion_Bieter, &_par_potentieller_kaeufer );
1461 CORBA::StaticRequest __req( this, "biete" );
1462 __req.add_in_arg( &_sa_gebot );
1463 __req.add_in_arg( &_sa_potentieller_kaeufer );
1464
1465 __req.invoke();
1466
1467 mico_sii_throw( &__req,
1468 0);
1469 }
1470
1471
1472 #ifndef MICO_CONF_NO_POA
1473
1474 void
1475 Auktion::Versteigerung_stub_clp::biete( CORBA::Long _par_gebot, Auktion::Bieter_ptr _par_potentieller_kaeufer )
1476 {
1477 PortableServer::Servant _serv = _preinvoke ();
1478 if (_serv) {
1479 POA_Auktion::Versteigerung * _myserv = POA_Auktion::Versteigerung::_narrow (_serv);
1480 if (_myserv) {
1481 #ifdef HAVE_EXCEPTIONS
1482 try {
1483 #endif
1484 _myserv->biete(_par_gebot, _par_potentieller_kaeufer);
1485 #ifdef HAVE_EXCEPTIONS
1486 }
1487 catch (...) {
1488 _myserv->_remove_ref();
1489 _postinvoke();
1490 throw;
1491 }
1492 #endif
1493
1494 _myserv->_remove_ref();
1495 _postinvoke ();
1496 return;
1497 }
1498 _postinvoke ();
1499 }
1500
1501 Auktion::Versteigerung_stub::biete(_par_gebot, _par_potentieller_kaeufer);
1502 }
1503
1504 #endif // MICO_CONF_NO_POA
1505
1506
1507
1508
1509 Auktion::CCM_Versteigerung::~CCM_Versteigerung()
1510 {
1511 }
1512
1513 void *
1514 Auktion::CCM_Versteigerung::_narrow_helper( const char *_repoid )
1515 {
1516 if( strcmp( _repoid, "IDL:r4/Auktion/CCM_Versteigerung:1.0" ) == 0 )
1517 return (void *)this;
1518 {
1519 void *_p;
1520 if ((_p = Auktion::Versteigerung::_narrow_helper( _repoid )))
1521 return _p;
1522 }
1523 {
1524 void *_p;
1525 if ((_p = ::CORBA::LocalObject::_narrow_helper (_repoid)))
1526 return _p;
1527 }
1528 return NULL;
1529 }
1530
1531 Auktion::CCM_Versteigerung_ptr
1532 Auktion::CCM_Versteigerung::_narrow( CORBA::Object_ptr _obj )
1533 {
1534 if( !CORBA::is_nil( _obj ) ) {
1535 void *_p;
1536 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/CCM_Versteigerung:1.0" )))
1537 return _duplicate( (Auktion::CCM_Versteigerung_ptr) _p );
1538 }
1539 return _nil();
1540 }
1541
1542 Auktion::CCM_Versteigerung_ptr
1543 Auktion::CCM_Versteigerung::_narrow( CORBA::AbstractBase_ptr _obj )
1544 {
1545 return _narrow (_obj->_to_object());
1546 }
1547
1548
1549
1550
1551
1552 Auktion::Verkaeufer::~Verkaeufer()
1553 {
1554 }
1555
1556 void *
1557 Auktion::Verkaeufer::_narrow_helper( const char *_repoid )
1558 {
1559 if( strcmp( _repoid, "IDL:r4/Auktion/Verkaeufer:1.0" ) == 0 )
1560 return (void *)this;
1561 {
1562 void *_p;
1563 if ((_p = Components::CCMObject::_narrow_helper( _repoid )))
1564 return _p;
1565 }
1566 return NULL;
1567 }
1568
1569 Auktion::Verkaeufer_ptr
1570 Auktion::Verkaeufer::_narrow( CORBA::Object_ptr _obj )
1571 {
1572 Auktion::Verkaeufer_ptr _o;
1573 if( !CORBA::is_nil( _obj ) ) {
1574 void *_p;
1575 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/Verkaeufer:1.0" )))
1576 return _duplicate( (Auktion::Verkaeufer_ptr) _p );
1577 if (!strcmp (_obj->_repoid(), "IDL:r4/Auktion/Verkaeufer:1.0") || _obj->_is_a_remote ("IDL:r4/Auktion/Verkaeufer:1.0")) {
1578 _o = new Auktion::Verkaeufer_stub;
1579 _o->CORBA::Object::operator=( *_obj );
1580 return _o;
1581 }
1582 }
1583 return _nil();
1584 }
1585
1586 Auktion::Verkaeufer_ptr
1587 Auktion::Verkaeufer::_narrow( CORBA::AbstractBase_ptr _obj )
1588 {
1589 return _narrow (_obj->_to_object());
1590 }
1591
1592 class _Marshaller_Auktion_Verkaeufer : public ::CORBA::StaticTypeInfo {
1593 typedef Auktion::Verkaeufer_ptr _MICO_T;
1594 public:
1595 StaticValueType create () const;
1596 void assign (StaticValueType dst, const StaticValueType src) const;
1597 void free (StaticValueType) const;
1598 void release (StaticValueType) const;
1599 ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const;
1600 void marshal (::CORBA::DataEncoder &, StaticValueType) const;
1601 };
1602
1603
1604 ::CORBA::StaticValueType _Marshaller_Auktion_Verkaeufer::create() const
1605 {
1606 return (StaticValueType) new _MICO_T( 0 );
1607 }
1608
1609 void _Marshaller_Auktion_Verkaeufer::assign( StaticValueType d, const StaticValueType s ) const
1610 {
1611 *(_MICO_T*) d = ::Auktion::Verkaeufer::_duplicate( *(_MICO_T*) s );
1612 }
1613
1614 void _Marshaller_Auktion_Verkaeufer::free( StaticValueType v ) const
1615 {
1616 ::CORBA::release( *(_MICO_T *) v );
1617 delete (_MICO_T*) v;
1618 }
1619
1620 void _Marshaller_Auktion_Verkaeufer::release( StaticValueType v ) const
1621 {
1622 ::CORBA::release( *(_MICO_T *) v );
1623 }
1624
1625 ::CORBA::Boolean _Marshaller_Auktion_Verkaeufer::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const
1626 {
1627 ::CORBA::Object_ptr obj;
1628 if (!::CORBA::_stc_Object->demarshal(dc, &obj))
1629 return FALSE;
1630 *(_MICO_T *) v = ::Auktion::Verkaeufer::_narrow( obj );
1631 ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v);
1632 ::CORBA::release (obj);
1633 return ret;
1634 }
1635
1636 void _Marshaller_Auktion_Verkaeufer::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const
1637 {
1638 ::CORBA::Object_ptr obj = *(_MICO_T *) v;
1639 ::CORBA::_stc_Object->marshal( ec, &obj );
1640 }
1641
1642 ::CORBA::StaticTypeInfo *_marshaller_Auktion_Verkaeufer;
1643
1644
1645
1646
1647 Auktion::Verkaeufer_stub::~Verkaeufer_stub()
1648 {
1649 }
1650
1651 #ifndef MICO_CONF_NO_POA
1652
1653 void *
1654 POA_Auktion::Verkaeufer::_narrow_helper (const char * repoid)
1655 {
1656 void * p;
1657 if (strcmp (repoid, "IDL:r4/Auktion/Verkaeufer:1.0") == 0) {
1658 return (void *) this;
1659 }
1660 if ((p = POA_Components::CCMObject::_narrow_helper (repoid)) != NULL)
1661 {
1662 return p;
1663 }
1664 return NULL;
1665 }
1666
1667 POA_Auktion::Verkaeufer *
1668 POA_Auktion::Verkaeufer::_narrow (PortableServer::Servant serv)
1669 {
1670 void * p;
1671 if ((p = serv->_narrow_helper ("IDL:r4/Auktion/Verkaeufer:1.0")) != NULL) {
1672 serv->_add_ref ();
1673 return (POA_Auktion::Verkaeufer *) p;
1674 }
1675 return NULL;
1676 }
1677
1678 Auktion::Verkaeufer_stub_clp::Verkaeufer_stub_clp ()
1679 {
1680 }
1681
1682 Auktion::Verkaeufer_stub_clp::Verkaeufer_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj)
1683 : CORBA::Object(*obj), PortableServer::StubBase(poa)
1684 {
1685 }
1686
1687 Auktion::Verkaeufer_stub_clp::~Verkaeufer_stub_clp ()
1688 {
1689 }
1690
1691 #endif // MICO_CONF_NO_POA
1692
1693 void Auktion::Verkaeufer_stub::connect_handelsplatz( Auktion::VersteigerungsFabrik_ptr _par_conxn )
1694 {
1695 CORBA::StaticAny _sa_conxn( _marshaller_Auktion_VersteigerungsFabrik, &_par_conxn );
1696 CORBA::StaticRequest __req( this, "connect_handelsplatz" );
1697 __req.add_in_arg( &_sa_conxn );
1698
1699 __req.invoke();
1700
1701 mico_sii_throw( &__req,
1702 _marshaller_Components_AlreadyConnected, "IDL:omg.org/Components/AlreadyConnected:1.0",
1703 _marshaller_Components_InvalidConnection, "IDL:omg.org/Components/InvalidConnection:1.0",
1704 0);
1705 }
1706
1707
1708 #ifndef MICO_CONF_NO_POA
1709
1710 void
1711 Auktion::Verkaeufer_stub_clp::connect_handelsplatz( Auktion::VersteigerungsFabrik_ptr _par_conxn )
1712 {
1713 PortableServer::Servant _serv = _preinvoke ();
1714 if (_serv) {
1715 POA_Auktion::Verkaeufer * _myserv = POA_Auktion::Verkaeufer::_narrow (_serv);
1716 if (_myserv) {
1717 #ifdef HAVE_EXCEPTIONS
1718 try {
1719 #endif
1720 _myserv->connect_handelsplatz(_par_conxn);
1721 #ifdef HAVE_EXCEPTIONS
1722 }
1723 catch (...) {
1724 _myserv->_remove_ref();
1725 _postinvoke();
1726 throw;
1727 }
1728 #endif
1729
1730 _myserv->_remove_ref();
1731 _postinvoke ();
1732 return;
1733 }
1734 _postinvoke ();
1735 }
1736
1737 Auktion::Verkaeufer_stub::connect_handelsplatz(_par_conxn);
1738 }
1739
1740 #endif // MICO_CONF_NO_POA
1741
1742 Auktion::VersteigerungsFabrik_ptr Auktion::Verkaeufer_stub::disconnect_handelsplatz()
1743 {
1744 Auktion::VersteigerungsFabrik_ptr _res;
1745 CORBA::StaticAny __res( _marshaller_Auktion_VersteigerungsFabrik, &_res );
1746
1747 CORBA::StaticRequest __req( this, "disconnect_handelsplatz" );
1748 __req.set_result( &__res );
1749
1750 __req.invoke();
1751
1752 mico_sii_throw( &__req,
1753 _marshaller_Components_NoConnection, "IDL:omg.org/Components/NoConnection:1.0",
1754 0);
1755 return _res;
1756 }
1757
1758
1759 #ifndef MICO_CONF_NO_POA
1760
1761 Auktion::VersteigerungsFabrik_ptr
1762 Auktion::Verkaeufer_stub_clp::disconnect_handelsplatz()
1763 {
1764 PortableServer::Servant _serv = _preinvoke ();
1765 if (_serv) {
1766 POA_Auktion::Verkaeufer * _myserv = POA_Auktion::Verkaeufer::_narrow (_serv);
1767 if (_myserv) {
1768 Auktion::VersteigerungsFabrik_ptr __res;
1769
1770 #ifdef HAVE_EXCEPTIONS
1771 try {
1772 #endif
1773 __res = _myserv->disconnect_handelsplatz();
1774 #ifdef HAVE_EXCEPTIONS
1775 }
1776 catch (...) {
1777 _myserv->_remove_ref();
1778 _postinvoke();
1779 throw;
1780 }
1781 #endif
1782
1783 _myserv->_remove_ref();
1784 _postinvoke ();
1785 return __res;
1786 }
1787 _postinvoke ();
1788 }
1789
1790 return Auktion::Verkaeufer_stub::disconnect_handelsplatz();
1791 }
1792
1793 #endif // MICO_CONF_NO_POA
1794
1795 Auktion::VersteigerungsFabrik_ptr Auktion::Verkaeufer_stub::get_connection_handelsplatz()
1796 {
1797 Auktion::VersteigerungsFabrik_ptr _res;
1798 CORBA::StaticAny __res( _marshaller_Auktion_VersteigerungsFabrik, &_res );
1799
1800 CORBA::StaticRequest __req( this, "get_connection_handelsplatz" );
1801 __req.set_result( &__res );
1802
1803 __req.invoke();
1804
1805 mico_sii_throw( &__req,
1806 0);
1807 return _res;
1808 }
1809
1810
1811 #ifndef MICO_CONF_NO_POA
1812
1813 Auktion::VersteigerungsFabrik_ptr
1814 Auktion::Verkaeufer_stub_clp::get_connection_handelsplatz()
1815 {
1816 PortableServer::Servant _serv = _preinvoke ();
1817 if (_serv) {
1818 POA_Auktion::Verkaeufer * _myserv = POA_Auktion::Verkaeufer::_narrow (_serv);
1819 if (_myserv) {
1820 Auktion::VersteigerungsFabrik_ptr __res;
1821
1822 #ifdef HAVE_EXCEPTIONS
1823 try {
1824 #endif
1825 __res = _myserv->get_connection_handelsplatz();
1826 #ifdef HAVE_EXCEPTIONS
1827 }
1828 catch (...) {
1829 _myserv->_remove_ref();
1830 _postinvoke();
1831 throw;
1832 }
1833 #endif
1834
1835 _myserv->_remove_ref();
1836 _postinvoke ();
1837 return __res;
1838 }
1839 _postinvoke ();
1840 }
1841
1842 return Auktion::Verkaeufer_stub::get_connection_handelsplatz();
1843 }
1844
1845 #endif // MICO_CONF_NO_POA
1846
1847 Auktion::KaufConsumer_ptr Auktion::Verkaeufer_stub::get_consumer_zuschlag()
1848 {
1849 Auktion::KaufConsumer_ptr _res;
1850 CORBA::StaticAny __res( _marshaller_Auktion_KaufConsumer, &_res );
1851
1852 CORBA::StaticRequest __req( this, "get_consumer_zuschlag" );
1853 __req.set_result( &__res );
1854
1855 __req.invoke();
1856
1857 mico_sii_throw( &__req,
1858 0);
1859 return _res;
1860 }
1861
1862
1863 #ifndef MICO_CONF_NO_POA
1864
1865 Auktion::KaufConsumer_ptr
1866 Auktion::Verkaeufer_stub_clp::get_consumer_zuschlag()
1867 {
1868 PortableServer::Servant _serv = _preinvoke ();
1869 if (_serv) {
1870 POA_Auktion::Verkaeufer * _myserv = POA_Auktion::Verkaeufer::_narrow (_serv);
1871 if (_myserv) {
1872 Auktion::KaufConsumer_ptr __res;
1873
1874 #ifdef HAVE_EXCEPTIONS
1875 try {
1876 #endif
1877 __res = _myserv->get_consumer_zuschlag();
1878 #ifdef HAVE_EXCEPTIONS
1879 }
1880 catch (...) {
1881 _myserv->_remove_ref();
1882 _postinvoke();
1883 throw;
1884 }
1885 #endif
1886
1887 _myserv->_remove_ref();
1888 _postinvoke ();
1889 return __res;
1890 }
1891 _postinvoke ();
1892 }
1893
1894 return Auktion::Verkaeufer_stub::get_consumer_zuschlag();
1895 }
1896
1897 #endif // MICO_CONF_NO_POA
1898
1899
1900
1901
1902 Auktion::CCM_Verkaeufer::~CCM_Verkaeufer()
1903 {
1904 }
1905
1906 void *
1907 Auktion::CCM_Verkaeufer::_narrow_helper( const char *_repoid )
1908 {
1909 if( strcmp( _repoid, "IDL:r4/Auktion/CCM_Verkaeufer:1.0" ) == 0 )
1910 return (void *)this;
1911 {
1912 void *_p;
1913 if ((_p = Components::EnterpriseComponent::_narrow_helper( _repoid )))
1914 return _p;
1915 }
1916 return NULL;
1917 }
1918
1919 Auktion::CCM_Verkaeufer_ptr
1920 Auktion::CCM_Verkaeufer::_narrow( CORBA::Object_ptr _obj )
1921 {
1922 if( !CORBA::is_nil( _obj ) ) {
1923 void *_p;
1924 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/CCM_Verkaeufer:1.0" )))
1925 return _duplicate( (Auktion::CCM_Verkaeufer_ptr) _p );
1926 }
1927 return _nil();
1928 }
1929
1930 Auktion::CCM_Verkaeufer_ptr
1931 Auktion::CCM_Verkaeufer::_narrow( CORBA::AbstractBase_ptr _obj )
1932 {
1933 return _narrow (_obj->_to_object());
1934 }
1935
1936
1937
1938
1939
1940 Auktion::CCM_Verkaeufer_Executor::~CCM_Verkaeufer_Executor()
1941 {
1942 }
1943
1944 void *
1945 Auktion::CCM_Verkaeufer_Executor::_narrow_helper( const char *_repoid )
1946 {
1947 if( strcmp( _repoid, "IDL:r4/Auktion/CCM_Verkaeufer_Executor:1.0" ) == 0 )
1948 return (void *)this;
1949 {
1950 void *_p;
1951 if ((_p = Components::EnterpriseComponent::_narrow_helper( _repoid )))
1952 return _p;
1953 }
1954 return NULL;
1955 }
1956
1957 Auktion::CCM_Verkaeufer_Executor_ptr
1958 Auktion::CCM_Verkaeufer_Executor::_narrow( CORBA::Object_ptr _obj )
1959 {
1960 if( !CORBA::is_nil( _obj ) ) {
1961 void *_p;
1962 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/CCM_Verkaeufer_Executor:1.0" )))
1963 return _duplicate( (Auktion::CCM_Verkaeufer_Executor_ptr) _p );
1964 }
1965 return _nil();
1966 }
1967
1968 Auktion::CCM_Verkaeufer_Executor_ptr
1969 Auktion::CCM_Verkaeufer_Executor::_narrow( CORBA::AbstractBase_ptr _obj )
1970 {
1971 return _narrow (_obj->_to_object());
1972 }
1973
1974
1975
1976
1977
1978 Auktion::CCM_Verkaeufer_Context::~CCM_Verkaeufer_Context()
1979 {
1980 }
1981
1982 void *
1983 Auktion::CCM_Verkaeufer_Context::_narrow_helper( const char *_repoid )
1984 {
1985 if( strcmp( _repoid, "IDL:r4/Auktion/CCM_Verkaeufer_Context:1.0" ) == 0 )
1986 return (void *)this;
1987 {
1988 void *_p;
1989 if ((_p = Components::SessionContext::_narrow_helper( _repoid )))
1990 return _p;
1991 }
1992 return NULL;
1993 }
1994
1995 Auktion::CCM_Verkaeufer_Context_ptr
1996 Auktion::CCM_Verkaeufer_Context::_narrow( CORBA::Object_ptr _obj )
1997 {
1998 if( !CORBA::is_nil( _obj ) ) {
1999 void *_p;
2000 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/CCM_Verkaeufer_Context:1.0" )))
2001 return _duplicate( (Auktion::CCM_Verkaeufer_Context_ptr) _p );
2002 }
2003 return _nil();
2004 }
2005
2006 Auktion::CCM_Verkaeufer_Context_ptr
2007 Auktion::CCM_Verkaeufer_Context::_narrow( CORBA::AbstractBase_ptr _obj )
2008 {
2009 return _narrow (_obj->_to_object());
2010 }
2011
2012
2013
2014
2015
2016 Auktion::VersteigerungsFabrik::~VersteigerungsFabrik()
2017 {
2018 }
2019
2020 void *
2021 Auktion::VersteigerungsFabrik::_narrow_helper( const char *_repoid )
2022 {
2023 if( strcmp( _repoid, "IDL:r4/Auktion/VersteigerungsFabrik:1.0" ) == 0 )
2024 return (void *)this;
2025 return NULL;
2026 }
2027
2028 Auktion::VersteigerungsFabrik_ptr
2029 Auktion::VersteigerungsFabrik::_narrow( CORBA::Object_ptr _obj )
2030 {
2031 Auktion::VersteigerungsFabrik_ptr _o;
2032 if( !CORBA::is_nil( _obj ) ) {
2033 void *_p;
2034 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/VersteigerungsFabrik:1.0" )))
2035 return _duplicate( (Auktion::VersteigerungsFabrik_ptr) _p );
2036 if (!strcmp (_obj->_repoid(), "IDL:r4/Auktion/VersteigerungsFabrik:1.0") || _obj->_is_a_remote ("IDL:r4/Auktion/VersteigerungsFabrik:1.0")) {
2037 _o = new Auktion::VersteigerungsFabrik_stub;
2038 _o->CORBA::Object::operator=( *_obj );
2039 return _o;
2040 }
2041 }
2042 return _nil();
2043 }
2044
2045 Auktion::VersteigerungsFabrik_ptr
2046 Auktion::VersteigerungsFabrik::_narrow( CORBA::AbstractBase_ptr _obj )
2047 {
2048 return _narrow (_obj->_to_object());
2049 }
2050
2051 class _Marshaller_Auktion_VersteigerungsFabrik : public ::CORBA::StaticTypeInfo {
2052 typedef Auktion::VersteigerungsFabrik_ptr _MICO_T;
2053 public:
2054 StaticValueType create () const;
2055 void assign (StaticValueType dst, const StaticValueType src) const;
2056 void free (StaticValueType) const;
2057 void release (StaticValueType) const;
2058 ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const;
2059 void marshal (::CORBA::DataEncoder &, StaticValueType) const;
2060 };
2061
2062
2063 ::CORBA::StaticValueType _Marshaller_Auktion_VersteigerungsFabrik::create() const
2064 {
2065 return (StaticValueType) new _MICO_T( 0 );
2066 }
2067
2068 void _Marshaller_Auktion_VersteigerungsFabrik::assign( StaticValueType d, const StaticValueType s ) const
2069 {
2070 *(_MICO_T*) d = ::Auktion::VersteigerungsFabrik::_duplicate( *(_MICO_T*) s );
2071 }
2072
2073 void _Marshaller_Auktion_VersteigerungsFabrik::free( StaticValueType v ) const
2074 {
2075 ::CORBA::release( *(_MICO_T *) v );
2076 delete (_MICO_T*) v;
2077 }
2078
2079 void _Marshaller_Auktion_VersteigerungsFabrik::release( StaticValueType v ) const
2080 {
2081 ::CORBA::release( *(_MICO_T *) v );
2082 }
2083
2084 ::CORBA::Boolean _Marshaller_Auktion_VersteigerungsFabrik::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const
2085 {
2086 ::CORBA::Object_ptr obj;
2087 if (!::CORBA::_stc_Object->demarshal(dc, &obj))
2088 return FALSE;
2089 *(_MICO_T *) v = ::Auktion::VersteigerungsFabrik::_narrow( obj );
2090 ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v);
2091 ::CORBA::release (obj);
2092 return ret;
2093 }
2094
2095 void _Marshaller_Auktion_VersteigerungsFabrik::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const
2096 {
2097 ::CORBA::Object_ptr obj = *(_MICO_T *) v;
2098 ::CORBA::_stc_Object->marshal( ec, &obj );
2099 }
2100
2101 ::CORBA::StaticTypeInfo *_marshaller_Auktion_VersteigerungsFabrik;
2102
2103
2104
2105
2106 Auktion::VersteigerungsFabrik_stub::~VersteigerungsFabrik_stub()
2107 {
2108 }
2109
2110 #ifndef MICO_CONF_NO_POA
2111
2112 void *
2113 POA_Auktion::VersteigerungsFabrik::_narrow_helper (const char * repoid)
2114 {
2115 if (strcmp (repoid, "IDL:r4/Auktion/VersteigerungsFabrik:1.0") == 0) {
2116 return (void *) this;
2117 }
2118 return NULL;
2119 }
2120
2121 POA_Auktion::VersteigerungsFabrik *
2122 POA_Auktion::VersteigerungsFabrik::_narrow (PortableServer::Servant serv)
2123 {
2124 void * p;
2125 if ((p = serv->_narrow_helper ("IDL:r4/Auktion/VersteigerungsFabrik:1.0")) != NULL) {
2126 serv->_add_ref ();
2127 return (POA_Auktion::VersteigerungsFabrik *) p;
2128 }
2129 return NULL;
2130 }
2131
2132 Auktion::VersteigerungsFabrik_stub_clp::VersteigerungsFabrik_stub_clp ()
2133 {
2134 }
2135
2136 Auktion::VersteigerungsFabrik_stub_clp::VersteigerungsFabrik_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj)
2137 : CORBA::Object(*obj), PortableServer::StubBase(poa)
2138 {
2139 }
2140
2141 Auktion::VersteigerungsFabrik_stub_clp::~VersteigerungsFabrik_stub_clp ()
2142 {
2143 }
2144
2145 #endif // MICO_CONF_NO_POA
2146
2147 Auktion::Versteigerung_ptr Auktion::VersteigerungsFabrik_stub::neue_auktion( const char* _par_name, CORBA::Long _par_minimalgebot, Auktion::Verkaeufer_ptr _par_besitzer )
2148 {
2149 CORBA::StaticAny _sa_name( CORBA::_stc_string, &_par_name );
2150 CORBA::StaticAny _sa_minimalgebot( CORBA::_stc_long, &_par_minimalgebot );
2151 CORBA::StaticAny _sa_besitzer( _marshaller_Auktion_Verkaeufer, &_par_besitzer );
2152 Auktion::Versteigerung_ptr _res;
2153 CORBA::StaticAny __res( _marshaller_Auktion_Versteigerung, &_res );
2154
2155 CORBA::StaticRequest __req( this, "neue_auktion" );
2156 __req.add_in_arg( &_sa_name );
2157 __req.add_in_arg( &_sa_minimalgebot );
2158 __req.add_in_arg( &_sa_besitzer );
2159 __req.set_result( &__res );
2160
2161 __req.invoke();
2162
2163 mico_sii_throw( &__req,
2164 0);
2165 return _res;
2166 }
2167
2168
2169 #ifndef MICO_CONF_NO_POA
2170
2171 Auktion::Versteigerung_ptr
2172 Auktion::VersteigerungsFabrik_stub_clp::neue_auktion( const char* _par_name, CORBA::Long _par_minimalgebot, Auktion::Verkaeufer_ptr _par_besitzer )
2173 {
2174 PortableServer::Servant _serv = _preinvoke ();
2175 if (_serv) {
2176 POA_Auktion::VersteigerungsFabrik * _myserv = POA_Auktion::VersteigerungsFabrik::_narrow (_serv);
2177 if (_myserv) {
2178 Auktion::Versteigerung_ptr __res;
2179
2180 #ifdef HAVE_EXCEPTIONS
2181 try {
2182 #endif
2183 __res = _myserv->neue_auktion(_par_name, _par_minimalgebot, _par_besitzer);
2184 #ifdef HAVE_EXCEPTIONS
2185 }
2186 catch (...) {
2187 _myserv->_remove_ref();
2188 _postinvoke();
2189 throw;
2190 }
2191 #endif
2192
2193 _myserv->_remove_ref();
2194 _postinvoke ();
2195 return __res;
2196 }
2197 _postinvoke ();
2198 }
2199
2200 return Auktion::VersteigerungsFabrik_stub::neue_auktion(_par_name, _par_minimalgebot, _par_besitzer);
2201 }
2202
2203 #endif // MICO_CONF_NO_POA
2204
2205
2206
2207
2208 Auktion::CCM_VersteigerungsFabrik::~CCM_VersteigerungsFabrik()
2209 {
2210 }
2211
2212 void *
2213 Auktion::CCM_VersteigerungsFabrik::_narrow_helper( const char *_repoid )
2214 {
2215 if( strcmp( _repoid, "IDL:r4/Auktion/CCM_VersteigerungsFabrik:1.0" ) == 0 )
2216 return (void *)this;
2217 {
2218 void *_p;
2219 if ((_p = Auktion::VersteigerungsFabrik::_narrow_helper( _repoid )))
2220 return _p;
2221 }
2222 {
2223 void *_p;
2224 if ((_p = ::CORBA::LocalObject::_narrow_helper (_repoid)))
2225 return _p;
2226 }
2227 return NULL;
2228 }
2229
2230 Auktion::CCM_VersteigerungsFabrik_ptr
2231 Auktion::CCM_VersteigerungsFabrik::_narrow( CORBA::Object_ptr _obj )
2232 {
2233 if( !CORBA::is_nil( _obj ) ) {
2234 void *_p;
2235 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/CCM_VersteigerungsFabrik:1.0" )))
2236 return _duplicate( (Auktion::CCM_VersteigerungsFabrik_ptr) _p );
2237 }
2238 return _nil();
2239 }
2240
2241 Auktion::CCM_VersteigerungsFabrik_ptr
2242 Auktion::CCM_VersteigerungsFabrik::_narrow( CORBA::AbstractBase_ptr _obj )
2243 {
2244 return _narrow (_obj->_to_object());
2245 }
2246
2247
2248
2249
2250 Auktion::Kauf::Kauf ()
2251 {
2252 }
2253
2254 Auktion::Kauf::~Kauf ()
2255 {
2256 }
2257
2258 void *
2259 Auktion::Kauf::_narrow_helper (const char * repoid)
2260 {
2261 void * p;
2262 if (strcmp (repoid, "IDL:r4/Auktion/Kauf:1.0") == 0) {
2263 return (void *) this;
2264 }
2265 if ((p = Auktion::Gebot::_narrow_helper (repoid)) != NULL) {
2266 return p;
2267 }
2268 return NULL;
2269 }
2270
2271 Auktion::Kauf *
2272 Auktion::Kauf::_downcast (CORBA::ValueBase * vb)
2273 {
2274 void * p;
2275 if (vb && ((p = vb->_narrow_helper ("IDL:r4/Auktion/Kauf:1.0")))) {
2276 return (Auktion::Kauf *) p;
2277 }
2278 return 0;
2279 }
2280
2281 Auktion::Kauf *
2282 Auktion::Kauf::_downcast (CORBA::AbstractBase * vb)
2283 {
2284 return _downcast (vb->_to_value());
2285 }
2286
2287 CORBA::ValueDef_ptr
2288 Auktion::Kauf::get_value_def ()
2289 {
2290 CORBA::ORB_var orb = CORBA::ORB_instance ("mico-local-orb");
2291 CORBA::Object_var irobj =
2292 orb->resolve_initial_references ("InterfaceRepository");
2293 CORBA::Repository_var ifr = CORBA::Repository::_narrow (irobj);
2294 if (CORBA::is_nil (ifr)) {
2295 return CORBA::ValueDef::_nil ();
2296 }
2297
2298 CORBA::Contained_var cv = ifr->lookup_id ("IDL:r4/Auktion/Kauf:1.0");
2299 return CORBA::ValueDef::_narrow (cv);
2300 }
2301
2302 void
2303 Auktion::Kauf::_copy_members (const Kauf& other)
2304 {
2305 kaeufer (other.kaeufer());
2306 }
2307
2308 CORBA::ValueBase *
2309 Auktion::Kauf::_copy_value ()
2310 {
2311 vector<string> _dummy;
2312 string _repo_id = "IDL:r4/Auktion/Kauf:1.0";
2313 Kauf * _res = _downcast (_create (_dummy, _repo_id));
2314 assert (_res != 0);
2315 _res->Auktion::Gebot::_copy_members (*this);
2316 _res->_copy_members (*this);
2317 return _res;
2318 }
2319
2320 void
2321 Auktion::Kauf::_get_marshal_info (vector<string> & repoids, CORBA::Boolean & chunked)
2322 {
2323 repoids.push_back ("IDL:r4/Auktion/Kauf:1.0");
2324 chunked = FALSE;
2325 }
2326
2327 void
2328 Auktion::Kauf::_marshal_members (CORBA::DataEncoder &ec)
2329 {
2330 Auktion::Gebot::_marshal_members (ec);
2331 Auktion::Kaeufer_ptr _kaeufer = kaeufer ();
2332 _marshaller_Auktion_Kaeufer->marshal (ec, &_kaeufer);
2333 }
2334
2335 CORBA::Boolean
2336 Auktion::Kauf::_demarshal_members (CORBA::DataDecoder &dc)
2337 {
2338 if (!Auktion::Gebot::_demarshal_members (dc)) {
2339 return FALSE;
2340 }
2341 Auktion::Kaeufer_var _kaeufer;
2342 if (!_marshaller_Auktion_Kaeufer->demarshal (dc, &_kaeufer._for_demarshal())) {
2343 return FALSE;
2344 }
2345 kaeufer (_kaeufer);
2346 return TRUE;
2347 }
2348
2349
2350 class _Marshaller_Auktion_Kauf : public ::CORBA::StaticTypeInfo {
2351 typedef Auktion::Kauf* _MICO_T;
2352 public:
2353 StaticValueType create () const;
2354 void assign (StaticValueType dst, const StaticValueType src) const;
2355 void free (StaticValueType) const;
2356 ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const;
2357 void marshal (::CORBA::DataEncoder &, StaticValueType) const;
2358 };
2359
2360
2361 ::CORBA::StaticValueType _Marshaller_Auktion_Kauf::create() const
2362 {
2363 return (StaticValueType) new _MICO_T( 0 );
2364 }
2365
2366 void _Marshaller_Auktion_Kauf::assign( StaticValueType d, const StaticValueType s ) const
2367 {
2368 ::CORBA::remove_ref (*(_MICO_T*)d);
2369 ::CORBA::add_ref (*(_MICO_T*)s);
2370 *(_MICO_T*) d = *(_MICO_T*) s;
2371 }
2372
2373 void _Marshaller_Auktion_Kauf::free( StaticValueType v ) const
2374 {
2375 ::CORBA::remove_ref (*(_MICO_T*)v);
2376 delete (_MICO_T*) v;
2377 }
2378
2379 ::CORBA::Boolean _Marshaller_Auktion_Kauf::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const
2380 {
2381 ::CORBA::ValueBase* vb = NULL;
2382 if (!::CORBA::ValueBase::_demarshal (dc, vb, "IDL:r4/Auktion/Kauf:1.0")) {
2383 return FALSE;
2384 }
2385 *(_MICO_T *)v = ::Auktion::Kauf::_downcast (vb);
2386 if (vb && !*(_MICO_T *)v) {
2387 ::CORBA::remove_ref (vb);
2388 return FALSE;
2389 }
2390 return TRUE;
2391 }
2392
2393 void _Marshaller_Auktion_Kauf::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const
2394 {
2395 ::CORBA::ValueBase::_marshal (ec, *(_MICO_T *)v);
2396 }
2397
2398 ::CORBA::StaticTypeInfo *_marshaller_Auktion_Kauf;
2399
2400
2401
2402 OBV_Auktion::Kauf::Kauf ()
2403 {
2404 }
2405
2406 OBV_Auktion::Kauf::Kauf (::Auktion::Kaeufer_ptr _kaeufer)
2407 {
2408 _m.kaeufer = ::Auktion::Kaeufer::_duplicate( _kaeufer );
2409 }
2410
2411 OBV_Auktion::Kauf::~Kauf ()
2412 {
2413 }
2414
2415 void OBV_Auktion::Kauf::kaeufer( ::Auktion::Kaeufer_ptr _p )
2416 {
2417 _m.kaeufer = ::Auktion::Kaeufer::_duplicate( _p );
2418 }
2419
2420 ::Auktion::Kaeufer_ptr OBV_Auktion::Kauf::kaeufer() const
2421 {
2422 return _m.kaeufer.in();
2423 }
2424
2425
2426
2427
2428 Auktion::KaufConsumer::~KaufConsumer()
2429 {
2430 }
2431
2432 void *
2433 Auktion::KaufConsumer::_narrow_helper( const char *_repoid )
2434 {
2435 if( strcmp( _repoid, "IDL:r4/Auktion/KaufConsumer:1.0" ) == 0 )
2436 return (void *)this;
2437 {
2438 void *_p;
2439 if ((_p = Components::EventConsumerBase::_narrow_helper( _repoid )))
2440 return _p;
2441 }
2442 return NULL;
2443 }
2444
2445 Auktion::KaufConsumer_ptr
2446 Auktion::KaufConsumer::_narrow( CORBA::Object_ptr _obj )
2447 {
2448 Auktion::KaufConsumer_ptr _o;
2449 if( !CORBA::is_nil( _obj ) ) {
2450 void *_p;
2451 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/KaufConsumer:1.0" )))
2452 return _duplicate( (Auktion::KaufConsumer_ptr) _p );
2453 if (!strcmp (_obj->_repoid(), "IDL:r4/Auktion/KaufConsumer:1.0") || _obj->_is_a_remote ("IDL:r4/Auktion/KaufConsumer:1.0")) {
2454 _o = new Auktion::KaufConsumer_stub;
2455 _o->CORBA::Object::operator=( *_obj );
2456 return _o;
2457 }
2458 }
2459 return _nil();
2460 }
2461
2462 Auktion::KaufConsumer_ptr
2463 Auktion::KaufConsumer::_narrow( CORBA::AbstractBase_ptr _obj )
2464 {
2465 return _narrow (_obj->_to_object());
2466 }
2467
2468 class _Marshaller_Auktion_KaufConsumer : public ::CORBA::StaticTypeInfo {
2469 typedef Auktion::KaufConsumer_ptr _MICO_T;
2470 public:
2471 StaticValueType create () const;
2472 void assign (StaticValueType dst, const StaticValueType src) const;
2473 void free (StaticValueType) const;
2474 void release (StaticValueType) const;
2475 ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const;
2476 void marshal (::CORBA::DataEncoder &, StaticValueType) const;
2477 };
2478
2479
2480 ::CORBA::StaticValueType _Marshaller_Auktion_KaufConsumer::create() const
2481 {
2482 return (StaticValueType) new _MICO_T( 0 );
2483 }
2484
2485 void _Marshaller_Auktion_KaufConsumer::assign( StaticValueType d, const StaticValueType s ) const
2486 {
2487 *(_MICO_T*) d = ::Auktion::KaufConsumer::_duplicate( *(_MICO_T*) s );
2488 }
2489
2490 void _Marshaller_Auktion_KaufConsumer::free( StaticValueType v ) const
2491 {
2492 ::CORBA::release( *(_MICO_T *) v );
2493 delete (_MICO_T*) v;
2494 }
2495
2496 void _Marshaller_Auktion_KaufConsumer::release( StaticValueType v ) const
2497 {
2498 ::CORBA::release( *(_MICO_T *) v );
2499 }
2500
2501 ::CORBA::Boolean _Marshaller_Auktion_KaufConsumer::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const
2502 {
2503 ::CORBA::Object_ptr obj;
2504 if (!::CORBA::_stc_Object->demarshal(dc, &obj))
2505 return FALSE;
2506 *(_MICO_T *) v = ::Auktion::KaufConsumer::_narrow( obj );
2507 ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v);
2508 ::CORBA::release (obj);
2509 return ret;
2510 }
2511
2512 void _Marshaller_Auktion_KaufConsumer::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const
2513 {
2514 ::CORBA::Object_ptr obj = *(_MICO_T *) v;
2515 ::CORBA::_stc_Object->marshal( ec, &obj );
2516 }
2517
2518 ::CORBA::StaticTypeInfo *_marshaller_Auktion_KaufConsumer;
2519
2520
2521
2522
2523 Auktion::KaufConsumer_stub::~KaufConsumer_stub()
2524 {
2525 }
2526
2527 #ifndef MICO_CONF_NO_POA
2528
2529 void *
2530 POA_Auktion::KaufConsumer::_narrow_helper (const char * repoid)
2531 {
2532 void * p;
2533 if (strcmp (repoid, "IDL:r4/Auktion/KaufConsumer:1.0") == 0) {
2534 return (void *) this;
2535 }
2536 if ((p = POA_Components::EventConsumerBase::_narrow_helper (repoid)) != NULL)
2537 {
2538 return p;
2539 }
2540 return NULL;
2541 }
2542
2543 POA_Auktion::KaufConsumer *
2544 POA_Auktion::KaufConsumer::_narrow (PortableServer::Servant serv)
2545 {
2546 void * p;
2547 if ((p = serv->_narrow_helper ("IDL:r4/Auktion/KaufConsumer:1.0")) != NULL) {
2548 serv->_add_ref ();
2549 return (POA_Auktion::KaufConsumer *) p;
2550 }
2551 return NULL;
2552 }
2553
2554 Auktion::KaufConsumer_stub_clp::KaufConsumer_stub_clp ()
2555 {
2556 }
2557
2558 Auktion::KaufConsumer_stub_clp::KaufConsumer_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj)
2559 : CORBA::Object(*obj), PortableServer::StubBase(poa)
2560 {
2561 }
2562
2563 Auktion::KaufConsumer_stub_clp::~KaufConsumer_stub_clp ()
2564 {
2565 }
2566
2567 #endif // MICO_CONF_NO_POA
2568
2569 void Auktion::KaufConsumer_stub::push_Kauf( Auktion::Kauf* _par_event )
2570 {
2571 CORBA::StaticAny _sa_event( _marshaller_Auktion_Kauf, &_par_event );
2572 CORBA::StaticRequest __req( this, "push_Kauf" );
2573 __req.add_in_arg( &_sa_event );
2574
2575 __req.invoke();
2576
2577 mico_sii_throw( &__req,
2578 0);
2579 }
2580
2581
2582 #ifndef MICO_CONF_NO_POA
2583
2584 void
2585 Auktion::KaufConsumer_stub_clp::push_Kauf( Auktion::Kauf* _par_event )
2586 {
2587 PortableServer::Servant _serv = _preinvoke ();
2588 if (_serv) {
2589 POA_Auktion::KaufConsumer * _myserv = POA_Auktion::KaufConsumer::_narrow (_serv);
2590 if (_myserv) {
2591 Auktion::Kauf* _copy_of_par_event;
2592 _copy_of_par_event = Auktion::Kauf::_downcast (_par_event->_copy_value());
2593 #ifdef HAVE_EXCEPTIONS
2594 try {
2595 #endif
2596 _myserv->push_Kauf(_copy_of_par_event);
2597 #ifdef HAVE_EXCEPTIONS
2598 }
2599 catch (...) {
2600 _myserv->_remove_ref();
2601 _postinvoke();
2602 throw;
2603 }
2604 #endif
2605
2606 _myserv->_remove_ref();
2607 _postinvoke ();
2608 CORBA::remove_ref (_copy_of_par_event);
2609 return;
2610 }
2611 _postinvoke ();
2612 }
2613
2614 Auktion::KaufConsumer_stub::push_Kauf(_par_event);
2615 }
2616
2617 #endif // MICO_CONF_NO_POA
2618
2619
2620
2621
2622 Auktion::CCM_KaufConsumer::~CCM_KaufConsumer()
2623 {
2624 }
2625
2626 void *
2627 Auktion::CCM_KaufConsumer::_narrow_helper( const char *_repoid )
2628 {
2629 if( strcmp( _repoid, "IDL:r4/Auktion/CCM_KaufConsumer:1.0" ) == 0 )
2630 return (void *)this;
2631 {
2632 void *_p;
2633 if ((_p = ::CORBA::LocalObject::_narrow_helper (_repoid)))
2634 return _p;
2635 }
2636 return NULL;
2637 }
2638
2639 Auktion::CCM_KaufConsumer_ptr
2640 Auktion::CCM_KaufConsumer::_narrow( CORBA::Object_ptr _obj )
2641 {
2642 if( !CORBA::is_nil( _obj ) ) {
2643 void *_p;
2644 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/CCM_KaufConsumer:1.0" )))
2645 return _duplicate( (Auktion::CCM_KaufConsumer_ptr) _p );
2646 }
2647 return _nil();
2648 }
2649
2650 Auktion::CCM_KaufConsumer_ptr
2651 Auktion::CCM_KaufConsumer::_narrow( CORBA::AbstractBase_ptr _obj )
2652 {
2653 return _narrow (_obj->_to_object());
2654 }
2655
2656
2657
2658
2659
2660 Auktion::Auktionshaus::~Auktionshaus()
2661 {
2662 }
2663
2664 void *
2665 Auktion::Auktionshaus::_narrow_helper( const char *_repoid )
2666 {
2667 if( strcmp( _repoid, "IDL:r4/Auktion/Auktionshaus:1.0" ) == 0 )
2668 return (void *)this;
2669 {
2670 void *_p;
2671 if ((_p = Components::CCMObject::_narrow_helper( _repoid )))
2672 return _p;
2673 }
2674 return NULL;
2675 }
2676
2677 Auktion::Auktionshaus_ptr
2678 Auktion::Auktionshaus::_narrow( CORBA::Object_ptr _obj )
2679 {
2680 Auktion::Auktionshaus_ptr _o;
2681 if( !CORBA::is_nil( _obj ) ) {
2682 void *_p;
2683 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/Auktionshaus:1.0" )))
2684 return _duplicate( (Auktion::Auktionshaus_ptr) _p );
2685 if (!strcmp (_obj->_repoid(), "IDL:r4/Auktion/Auktionshaus:1.0") || _obj->_is_a_remote ("IDL:r4/Auktion/Auktionshaus:1.0")) {
2686 _o = new Auktion::Auktionshaus_stub;
2687 _o->CORBA::Object::operator=( *_obj );
2688 return _o;
2689 }
2690 }
2691 return _nil();
2692 }
2693
2694 Auktion::Auktionshaus_ptr
2695 Auktion::Auktionshaus::_narrow( CORBA::AbstractBase_ptr _obj )
2696 {
2697 return _narrow (_obj->_to_object());
2698 }
2699
2700 class _Marshaller_Auktion_Auktionshaus : public ::CORBA::StaticTypeInfo {
2701 typedef Auktion::Auktionshaus_ptr _MICO_T;
2702 public:
2703 StaticValueType create () const;
2704 void assign (StaticValueType dst, const StaticValueType src) const;
2705 void free (StaticValueType) const;
2706 void release (StaticValueType) const;
2707 ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const;
2708 void marshal (::CORBA::DataEncoder &, StaticValueType) const;
2709 };
2710
2711
2712 ::CORBA::StaticValueType _Marshaller_Auktion_Auktionshaus::create() const
2713 {
2714 return (StaticValueType) new _MICO_T( 0 );
2715 }
2716
2717 void _Marshaller_Auktion_Auktionshaus::assign( StaticValueType d, const StaticValueType s ) const
2718 {
2719 *(_MICO_T*) d = ::Auktion::Auktionshaus::_duplicate( *(_MICO_T*) s );
2720 }
2721
2722 void _Marshaller_Auktion_Auktionshaus::free( StaticValueType v ) const
2723 {
2724 ::CORBA::release( *(_MICO_T *) v );
2725 delete (_MICO_T*) v;
2726 }
2727
2728 void _Marshaller_Auktion_Auktionshaus::release( StaticValueType v ) const
2729 {
2730 ::CORBA::release( *(_MICO_T *) v );
2731 }
2732
2733 ::CORBA::Boolean _Marshaller_Auktion_Auktionshaus::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const
2734 {
2735 ::CORBA::Object_ptr obj;
2736 if (!::CORBA::_stc_Object->demarshal(dc, &obj))
2737 return FALSE;
2738 *(_MICO_T *) v = ::Auktion::Auktionshaus::_narrow( obj );
2739 ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v);
2740 ::CORBA::release (obj);
2741 return ret;
2742 }
2743
2744 void _Marshaller_Auktion_Auktionshaus::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const
2745 {
2746 ::CORBA::Object_ptr obj = *(_MICO_T *) v;
2747 ::CORBA::_stc_Object->marshal( ec, &obj );
2748 }
2749
2750 ::CORBA::StaticTypeInfo *_marshaller_Auktion_Auktionshaus;
2751
2752
2753
2754
2755 Auktion::Auktionshaus_stub::~Auktionshaus_stub()
2756 {
2757 }
2758
2759 #ifndef MICO_CONF_NO_POA
2760
2761 void *
2762 POA_Auktion::Auktionshaus::_narrow_helper (const char * repoid)
2763 {
2764 void * p;
2765 if (strcmp (repoid, "IDL:r4/Auktion/Auktionshaus:1.0") == 0) {
2766 return (void *) this;
2767 }
2768 if ((p = POA_Components::CCMObject::_narrow_helper (repoid)) != NULL)
2769 {
2770 return p;
2771 }
2772 return NULL;
2773 }
2774
2775 POA_Auktion::Auktionshaus *
2776 POA_Auktion::Auktionshaus::_narrow (PortableServer::Servant serv)
2777 {
2778 void * p;
2779 if ((p = serv->_narrow_helper ("IDL:r4/Auktion/Auktionshaus:1.0")) != NULL) {
2780 serv->_add_ref ();
2781 return (POA_Auktion::Auktionshaus *) p;
2782 }
2783 return NULL;
2784 }
2785
2786 Auktion::Auktionshaus_stub_clp::Auktionshaus_stub_clp ()
2787 {
2788 }
2789
2790 Auktion::Auktionshaus_stub_clp::Auktionshaus_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj)
2791 : CORBA::Object(*obj), PortableServer::StubBase(poa)
2792 {
2793 }
2794
2795 Auktion::Auktionshaus_stub_clp::~Auktionshaus_stub_clp ()
2796 {
2797 }
2798
2799 #endif // MICO_CONF_NO_POA
2800
2801 Auktion::VersteigerungsFabrik_ptr Auktion::Auktionshaus_stub::provide_auktionen()
2802 {
2803 Auktion::VersteigerungsFabrik_ptr _res;
2804 CORBA::StaticAny __res( _marshaller_Auktion_VersteigerungsFabrik, &_res );
2805
2806 CORBA::StaticRequest __req( this, "provide_auktionen" );
2807 __req.set_result( &__res );
2808
2809 __req.invoke();
2810
2811 mico_sii_throw( &__req,
2812 0);
2813 return _res;
2814 }
2815
2816
2817 #ifndef MICO_CONF_NO_POA
2818
2819 Auktion::VersteigerungsFabrik_ptr
2820 Auktion::Auktionshaus_stub_clp::provide_auktionen()
2821 {
2822 PortableServer::Servant _serv = _preinvoke ();
2823 if (_serv) {
2824 POA_Auktion::Auktionshaus * _myserv = POA_Auktion::Auktionshaus::_narrow (_serv);
2825 if (_myserv) {
2826 Auktion::VersteigerungsFabrik_ptr __res;
2827
2828 #ifdef HAVE_EXCEPTIONS
2829 try {
2830 #endif
2831 __res = _myserv->provide_auktionen();
2832 #ifdef HAVE_EXCEPTIONS
2833 }
2834 catch (...) {
2835 _myserv->_remove_ref();
2836 _postinvoke();
2837 throw;
2838 }
2839 #endif
2840
2841 _myserv->_remove_ref();
2842 _postinvoke ();
2843 return __res;
2844 }
2845 _postinvoke ();
2846 }
2847
2848 return Auktion::Auktionshaus_stub::provide_auktionen();
2849 }
2850
2851 #endif // MICO_CONF_NO_POA
2852
2853 Components::Cookie* Auktion::Auktionshaus_stub::subscribe_gebote( Auktion::GebotConsumer_ptr _par_consumer )
2854 {
2855 CORBA::StaticAny _sa_consumer( _marshaller_Auktion_GebotConsumer, &_par_consumer );
2856 Components::Cookie* _res;
2857 CORBA::StaticAny __res( _marshaller_Components_Cookie, &_res );
2858
2859 CORBA::StaticRequest __req( this, "subscribe_gebote" );
2860 __req.add_in_arg( &_sa_consumer );
2861 __req.set_result( &__res );
2862
2863 __req.invoke();
2864
2865 mico_sii_throw( &__req,
2866 0);
2867 return _res;
2868 }
2869
2870
2871 #ifndef MICO_CONF_NO_POA
2872
2873 Components::Cookie*
2874 Auktion::Auktionshaus_stub_clp::subscribe_gebote( Auktion::GebotConsumer_ptr _par_consumer )
2875 {
2876 PortableServer::Servant _serv = _preinvoke ();
2877 if (_serv) {
2878 POA_Auktion::Auktionshaus * _myserv = POA_Auktion::Auktionshaus::_narrow (_serv);
2879 if (_myserv) {
2880 Components::Cookie* __res;
2881
2882 #ifdef HAVE_EXCEPTIONS
2883 try {
2884 #endif
2885 __res = _myserv->subscribe_gebote(_par_consumer);
2886 #ifdef HAVE_EXCEPTIONS
2887 }
2888 catch (...) {
2889 _myserv->_remove_ref();
2890 _postinvoke();
2891 throw;
2892 }
2893 #endif
2894
2895 _myserv->_remove_ref();
2896 _postinvoke ();
2897 Components::Cookie* __res2 = Components::Cookie::_downcast (__res->_copy_value ());
2898 CORBA::remove_ref (__res);
2899 return __res2;
2900 }
2901 _postinvoke ();
2902 }
2903
2904 return Auktion::Auktionshaus_stub::subscribe_gebote(_par_consumer);
2905 }
2906
2907 #endif // MICO_CONF_NO_POA
2908
2909 Auktion::GebotConsumer_ptr Auktion::Auktionshaus_stub::unsubscribe_gebote( Components::Cookie* _par_ck )
2910 {
2911 CORBA::StaticAny _sa_ck( _marshaller_Components_Cookie, &_par_ck );
2912 Auktion::GebotConsumer_ptr _res;
2913 CORBA::StaticAny __res( _marshaller_Auktion_GebotConsumer, &_res );
2914
2915 CORBA::StaticRequest __req( this, "unsubscribe_gebote" );
2916 __req.add_in_arg( &_sa_ck );
2917 __req.set_result( &__res );
2918
2919 __req.invoke();
2920
2921 mico_sii_throw( &__req,
2922 0);
2923 return _res;
2924 }
2925
2926
2927 #ifndef MICO_CONF_NO_POA
2928
2929 Auktion::GebotConsumer_ptr
2930 Auktion::Auktionshaus_stub_clp::unsubscribe_gebote( Components::Cookie* _par_ck )
2931 {
2932 PortableServer::Servant _serv = _preinvoke ();
2933 if (_serv) {
2934 POA_Auktion::Auktionshaus * _myserv = POA_Auktion::Auktionshaus::_narrow (_serv);
2935 if (_myserv) {
2936 Auktion::GebotConsumer_ptr __res;
2937
2938 Components::Cookie* _copy_of_par_ck;
2939 _copy_of_par_ck = Components::Cookie::_downcast (_par_ck->_copy_value());
2940 #ifdef HAVE_EXCEPTIONS
2941 try {
2942 #endif
2943 __res = _myserv->unsubscribe_gebote(_copy_of_par_ck);
2944 #ifdef HAVE_EXCEPTIONS
2945 }
2946 catch (...) {
2947 _myserv->_remove_ref();
2948 _postinvoke();
2949 throw;
2950 }
2951 #endif
2952
2953 _myserv->_remove_ref();
2954 _postinvoke ();
2955 CORBA::remove_ref (_copy_of_par_ck);
2956 return __res;
2957 }
2958 _postinvoke ();
2959 }
2960
2961 return Auktion::Auktionshaus_stub::unsubscribe_gebote(_par_ck);
2962 }
2963
2964 #endif // MICO_CONF_NO_POA
2965
2966
2967
2968
2969 Auktion::CCM_Auktionshaus::~CCM_Auktionshaus()
2970 {
2971 }
2972
2973 void *
2974 Auktion::CCM_Auktionshaus::_narrow_helper( const char *_repoid )
2975 {
2976 if( strcmp( _repoid, "IDL:r4/Auktion/CCM_Auktionshaus:1.0" ) == 0 )
2977 return (void *)this;
2978 {
2979 void *_p;
2980 if ((_p = Components::EnterpriseComponent::_narrow_helper( _repoid )))
2981 return _p;
2982 }
2983 return NULL;
2984 }
2985
2986 Auktion::CCM_Auktionshaus_ptr
2987 Auktion::CCM_Auktionshaus::_narrow( CORBA::Object_ptr _obj )
2988 {
2989 if( !CORBA::is_nil( _obj ) ) {
2990 void *_p;
2991 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/CCM_Auktionshaus:1.0" )))
2992 return _duplicate( (Auktion::CCM_Auktionshaus_ptr) _p );
2993 }
2994 return _nil();
2995 }
2996
2997 Auktion::CCM_Auktionshaus_ptr
2998 Auktion::CCM_Auktionshaus::_narrow( CORBA::AbstractBase_ptr _obj )
2999 {
3000 return _narrow (_obj->_to_object());
3001 }
3002
3003
3004
3005
3006
3007 Auktion::CCM_Auktionshaus_Executor::~CCM_Auktionshaus_Executor()
3008 {
3009 }
3010
3011 void *
3012 Auktion::CCM_Auktionshaus_Executor::_narrow_helper( const char *_repoid )
3013 {
3014 if( strcmp( _repoid, "IDL:r4/Auktion/CCM_Auktionshaus_Executor:1.0" ) == 0 )
3015 return (void *)this;
3016 {
3017 void *_p;
3018 if ((_p = Components::EnterpriseComponent::_narrow_helper( _repoid )))
3019 return _p;
3020 }
3021 return NULL;
3022 }
3023
3024 Auktion::CCM_Auktionshaus_Executor_ptr
3025 Auktion::CCM_Auktionshaus_Executor::_narrow( CORBA::Object_ptr _obj )
3026 {
3027 if( !CORBA::is_nil( _obj ) ) {
3028 void *_p;
3029 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/CCM_Auktionshaus_Executor:1.0" )))
3030 return _duplicate( (Auktion::CCM_Auktionshaus_Executor_ptr) _p );
3031 }
3032 return _nil();
3033 }
3034
3035 Auktion::CCM_Auktionshaus_Executor_ptr
3036 Auktion::CCM_Auktionshaus_Executor::_narrow( CORBA::AbstractBase_ptr _obj )
3037 {
3038 return _narrow (_obj->_to_object());
3039 }
3040
3041
3042
3043
3044
3045 Auktion::CCM_Auktionshaus_Context::~CCM_Auktionshaus_Context()
3046 {
3047 }
3048
3049 void *
3050 Auktion::CCM_Auktionshaus_Context::_narrow_helper( const char *_repoid )
3051 {
3052 if( strcmp( _repoid, "IDL:r4/Auktion/CCM_Auktionshaus_Context:1.0" ) == 0 )
3053 return (void *)this;
3054 {
3055 void *_p;
3056 if ((_p = Components::SessionContext::_narrow_helper( _repoid )))
3057 return _p;
3058 }
3059 return NULL;
3060 }
3061
3062 Auktion::CCM_Auktionshaus_Context_ptr
3063 Auktion::CCM_Auktionshaus_Context::_narrow( CORBA::Object_ptr _obj )
3064 {
3065 if( !CORBA::is_nil( _obj ) ) {
3066 void *_p;
3067 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/CCM_Auktionshaus_Context:1.0" )))
3068 return _duplicate( (Auktion::CCM_Auktionshaus_Context_ptr) _p );
3069 }
3070 return _nil();
3071 }
3072
3073 Auktion::CCM_Auktionshaus_Context_ptr
3074 Auktion::CCM_Auktionshaus_Context::_narrow( CORBA::AbstractBase_ptr _obj )
3075 {
3076 return _narrow (_obj->_to_object());
3077 }
3078
3079
3080
3081
3082
3083 Auktion::WeltExplicit::~WeltExplicit()
3084 {
3085 }
3086
3087 void *
3088 Auktion::WeltExplicit::_narrow_helper( const char *_repoid )
3089 {
3090 if( strcmp( _repoid, "IDL:r4/Auktion/WeltExplicit:1.0" ) == 0 )
3091 return (void *)this;
3092 {
3093 void *_p;
3094 if ((_p = Components::CCMHome::_narrow_helper( _repoid )))
3095 return _p;
3096 }
3097 return NULL;
3098 }
3099
3100 Auktion::WeltExplicit_ptr
3101 Auktion::WeltExplicit::_narrow( CORBA::Object_ptr _obj )
3102 {
3103 Auktion::WeltExplicit_ptr _o;
3104 if( !CORBA::is_nil( _obj ) ) {
3105 void *_p;
3106 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/WeltExplicit:1.0" )))
3107 return _duplicate( (Auktion::WeltExplicit_ptr) _p );
3108 if (!strcmp (_obj->_repoid(), "IDL:r4/Auktion/WeltExplicit:1.0") || _obj->_is_a_remote ("IDL:r4/Auktion/WeltExplicit:1.0")) {
3109 _o = new Auktion::WeltExplicit_stub;
3110 _o->CORBA::Object::operator=( *_obj );
3111 return _o;
3112 }
3113 }
3114 return _nil();
3115 }
3116
3117 Auktion::WeltExplicit_ptr
3118 Auktion::WeltExplicit::_narrow( CORBA::AbstractBase_ptr _obj )
3119 {
3120 return _narrow (_obj->_to_object());
3121 }
3122
3123 class _Marshaller_Auktion_WeltExplicit : public ::CORBA::StaticTypeInfo {
3124 typedef Auktion::WeltExplicit_ptr _MICO_T;
3125 public:
3126 StaticValueType create () const;
3127 void assign (StaticValueType dst, const StaticValueType src) const;
3128 void free (StaticValueType) const;
3129 void release (StaticValueType) const;
3130 ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const;
3131 void marshal (::CORBA::DataEncoder &, StaticValueType) const;
3132 };
3133
3134
3135 ::CORBA::StaticValueType _Marshaller_Auktion_WeltExplicit::create() const
3136 {
3137 return (StaticValueType) new _MICO_T( 0 );
3138 }
3139
3140 void _Marshaller_Auktion_WeltExplicit::assign( StaticValueType d, const StaticValueType s ) const
3141 {
3142 *(_MICO_T*) d = ::Auktion::WeltExplicit::_duplicate( *(_MICO_T*) s );
3143 }
3144
3145 void _Marshaller_Auktion_WeltExplicit::free( StaticValueType v ) const
3146 {
3147 ::CORBA::release( *(_MICO_T *) v );
3148 delete (_MICO_T*) v;
3149 }
3150
3151 void _Marshaller_Auktion_WeltExplicit::release( StaticValueType v ) const
3152 {
3153 ::CORBA::release( *(_MICO_T *) v );
3154 }
3155
3156 ::CORBA::Boolean _Marshaller_Auktion_WeltExplicit::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const
3157 {
3158 ::CORBA::Object_ptr obj;
3159 if (!::CORBA::_stc_Object->demarshal(dc, &obj))
3160 return FALSE;
3161 *(_MICO_T *) v = ::Auktion::WeltExplicit::_narrow( obj );
3162 ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v);
3163 ::CORBA::release (obj);
3164 return ret;
3165 }
3166
3167 void _Marshaller_Auktion_WeltExplicit::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const
3168 {
3169 ::CORBA::Object_ptr obj = *(_MICO_T *) v;
3170 ::CORBA::_stc_Object->marshal( ec, &obj );
3171 }
3172
3173 ::CORBA::StaticTypeInfo *_marshaller_Auktion_WeltExplicit;
3174
3175
3176
3177
3178 Auktion::WeltExplicit_stub::~WeltExplicit_stub()
3179 {
3180 }
3181
3182 #ifndef MICO_CONF_NO_POA
3183
3184 void *
3185 POA_Auktion::WeltExplicit::_narrow_helper (const char * repoid)
3186 {
3187 void * p;
3188 if (strcmp (repoid, "IDL:r4/Auktion/WeltExplicit:1.0") == 0) {
3189 return (void *) this;
3190 }
3191 if ((p = POA_Components::CCMHome::_narrow_helper (repoid)) != NULL)
3192 {
3193 return p;
3194 }
3195 return NULL;
3196 }
3197
3198 POA_Auktion::WeltExplicit *
3199 POA_Auktion::WeltExplicit::_narrow (PortableServer::Servant serv)
3200 {
3201 void * p;
3202 if ((p = serv->_narrow_helper ("IDL:r4/Auktion/WeltExplicit:1.0")) != NULL) {
3203 serv->_add_ref ();
3204 return (POA_Auktion::WeltExplicit *) p;
3205 }
3206 return NULL;
3207 }
3208
3209 Auktion::WeltExplicit_stub_clp::WeltExplicit_stub_clp ()
3210 {
3211 }
3212
3213 Auktion::WeltExplicit_stub_clp::WeltExplicit_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj)
3214 : CORBA::Object(*obj), PortableServer::StubBase(poa)
3215 {
3216 }
3217
3218 Auktion::WeltExplicit_stub_clp::~WeltExplicit_stub_clp ()
3219 {
3220 }
3221
3222 #endif // MICO_CONF_NO_POA
3223
3224
3225
3226
3227 Auktion::WeltImplicit::~WeltImplicit()
3228 {
3229 }
3230
3231 void *
3232 Auktion::WeltImplicit::_narrow_helper( const char *_repoid )
3233 {
3234 if( strcmp( _repoid, "IDL:r4/Auktion/WeltImplicit:1.0" ) == 0 )
3235 return (void *)this;
3236 {
3237 void *_p;
3238 if ((_p = Components::KeylessCCMHome::_narrow_helper( _repoid )))
3239 return _p;
3240 }
3241 return NULL;
3242 }
3243
3244 Auktion::WeltImplicit_ptr
3245 Auktion::WeltImplicit::_narrow( CORBA::Object_ptr _obj )
3246 {
3247 Auktion::WeltImplicit_ptr _o;
3248 if( !CORBA::is_nil( _obj ) ) {
3249 void *_p;
3250 if( (_p = _obj->_narrow_helper( "IDL:r4/Auktion/WeltImplicit:1.0" )))
3251 return _duplicate( (Auktion::WeltImplicit_ptr) _p );
3252 if (!strcmp (_obj->_repoid(), "IDL:r4/Auktion/WeltImplicit:1.0") || _obj->_is_a_remote ("IDL:r4/Auktion/WeltImplicit:1.0")) {
3253 _o = new Auktion::WeltImplicit_stub;
3254 _o->CORBA::Object::operator=( *_obj );
3255 return _o;
3256 }
3257 }
3258 return _nil();
3259 }
3260
3261 Auktion::WeltImplicit_ptr
3262 Auktion::WeltImplicit::_narrow( CORBA::AbstractBase_ptr _obj )
3263 {
3264 return _narrow (_obj->_to_object());
3265 }
3266
3267 class _Marshaller_Auktion_WeltImplicit : public ::CORBA::StaticTypeInfo {
3268 typedef Auktion::WeltImplicit_ptr _MICO_T;
3269 public:
3270 StaticValueType create () const;
3271 void assign (StaticValueType dst, const StaticValueType src) const;
3272 void free (StaticValueType) const;
3273 void release (StaticValueType) const;
3274 ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const;
3275 void marshal (::CORBA::DataEncoder &, StaticValueType) const;
3276 };
3277
3278
3279 ::CORBA::StaticValueType _Marshaller_Auktion_WeltImplicit::create() const
3280 {
3281 return (StaticValueType) new _MICO_T( 0 );
3282 }
3283
3284 void _Marshaller_Auktion_WeltImplicit::assign( StaticValueType d, const StaticValueType s ) const
3285 {
3286 *(_MICO_T*) d = ::Auktion::WeltImplicit::_duplicate( *(_MICO_T*) s );
3287 }
3288
3289 void _Marshaller_Auktion_WeltImplicit::free( StaticValueType v ) const
3290 {
3291 ::CORBA::release( *(_MICO_T *) v );
3292 delete (_MICO_T*) v;
3293 }
3294
3295 void _Marshaller_Auktion_WeltImplicit::release( StaticValueType v ) const
3296 {
3297 ::CORBA::release( *(_MICO_T *) v );
3298 }
3299
3300 ::CORBA::Boolean _Marshaller_Auktion_WeltImplicit::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const
3301 {
3302 ::CORBA::Object_ptr obj;
3303 if (!::CORBA::_stc_Object->demarshal(dc, &obj))
3304 return FALSE;
3305 *(_MICO_T *) v = ::Auktion::WeltImplicit::_narrow( obj );
3306 ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v);
3307 ::CORBA::release (obj);
3308 return ret;
3309 }
3310
3311 void _Marshaller_Auktion_WeltImplicit::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const
3312 {
3313 ::CORBA::Object_ptr obj = *(_MICO_T *) v;
3314 ::CORBA::_stc_Object->marshal( ec, &obj );
3315 }
3316
3317 ::CORBA::StaticTypeInfo *_marshaller_Auktion_WeltImplicit;
3318
3319
3320
3321
3322 Auktion::WeltImplicit_stub::~WeltImplicit_stub()
3323 {
3324 }
3325
3326 #ifndef MICO_CONF_NO_POA
3327
3328 void *
3329 POA_Auktion::WeltImplicit::_narrow_helper (const char * repoid)
3330 {
3331 void * p;
3332 if (strcmp (repoid, "IDL:r4/Auktion/WeltImplicit:1.0") == 0) {
3333 return (void *) this;
3334 }
3335 if ((p = POA_Components::KeylessCCMHome::_narrow_helper (repoid)) != NULL)
3336 {
3337 return p;
3338 }
3339 return NULL;
3340 }
3341
3342 POA_Auktion::WeltImplicit *
3343 POA_Auktion::WeltImplicit::_narrow (PortableServer::Servant serv)
3344 {
3345 void * p;
3346 if ((p = serv->_narrow_helper ("IDL:r4/Auktion/WeltImplicit:1.0")) != NULL) {
3347 serv->_add_ref ();
3348 return (POA_Auktion::WeltImplicit *) p;
3349 }
3350 return NULL;
3351 }
3352
3353 Auktion::WeltImplicit_stub_clp::WeltImplicit_stub_clp ()
3354 {
3355 }
3356
3357 Auktion::WeltImplicit_stub_clp::WeltImplicit_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj)
3358 : CORBA::Object(*obj), PortableServer::StubBase(poa)
3359 {
3360 }
3361
3362 Auktion::WeltImplicit_stub_clp::~WeltImplicit_stub_clp ()
3363 {
3364 }
3365
3366 #endif // MICO_CONF_NO_POA
3367
3368 Auktion::Auktionshaus_ptr Auktion::WeltImplicit_stub::create()
3369 {
3370 Auktion::Auktionshaus_ptr _res;
3371 CORBA::StaticAny __res( _marshaller_Auktion_Auktionshaus, &_res );
3372
3373 CORBA::StaticRequest __req( this, "create" );
3374 __req.set_result( &__res );
3375
3376 __req.invoke();
3377
3378 mico_sii_throw( &__req,
3379 0);
3380 return _res;
3381 }
3382
3383
3384 #ifndef MICO_CONF_NO_POA
3385
3386 Auktion::Auktionshaus_ptr
3387 Auktion::WeltImplicit_stub_clp::create()
3388 {
3389 PortableServer::Servant _serv = _preinvoke ();
3390 if (_serv) {
3391 POA_Auktion::WeltImplicit * _myserv = POA_Auktion::WeltImplicit::_narrow (_serv);
3392 if (_myserv) {
3393 Auktion::Auktionshaus_ptr __res;
3394
3395 #ifdef HAVE_EXCEPTIONS
3396 try {
3397 #endif
3398 __res = _myserv->create();
3399 #ifdef HAVE_EXCEPTIONS
3400 }
3401 catch (...) {
3402 _myserv->_remove_ref();
3403 _postinvoke();
3404 throw;
3405 }
3406 &nb