SimpleRobotSimEvents.cpp

00001 // **********************************************************************
00002 //
00003 // Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
00004 //
00005 // This copy of Ice-E is licensed to you under the terms described in the
00006 // ICEE_LICENSE file included in this distribution.
00007 //
00008 // **********************************************************************
00009 
00010 // Ice-E version 1.3.0
00011 // Generated from file `SimpleRobotSimEvents.ice'
00012 
00013 #include <SimpleRobotSimEvents.h>
00014 #include <IceE/LocalException.h>
00015 #include <IceE/ObjectFactory.h>
00016 #include <IceE/BasicStream.h>
00017 #include <IceE/Iterator.h>
00018 
00019 #ifndef ICEE_IGNORE_VERSION
00020 #   if ICEE_INT_VERSION / 100 != 103
00021 #       error IceE version mismatch!
00022 #   endif
00023 #   if ICEE_INT_VERSION % 100 < 0
00024 #       error IceE patch level mismatch!
00025 #   endif
00026 #endif
00027 
00028 static const ::std::string __RobotSimEvents__Events__updateMessage_name = "updateMessage";
00029 
00030 ::Ice::Object* IceInternal::upCast(::RobotSimEvents::EventMessage* p) { return p; }
00031 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::RobotSimEvents::EventMessage* p) { return p; }
00032 
00033 ::Ice::Object* IceInternal::upCast(::RobotSimEvents::Events* p) { return p; }
00034 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::RobotSimEvents::Events* p) { return p; }
00035 
00036 ::Ice::Object* IceInternal::upCast(::RobotSimEvents::RetinaMessage* p) { return p; }
00037 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::RobotSimEvents::RetinaMessage* p) { return p; }
00038 
00039 ::Ice::Object* IceInternal::upCast(::RobotSimEvents::CameraConfigMessage* p) { return p; }
00040 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::RobotSimEvents::CameraConfigMessage* p) { return p; }
00041 
00042 void
00043 RobotSimEvents::__read(::IceInternal::BasicStream* __is, ::RobotSimEvents::EventMessagePrx& v)
00044 {
00045     ::Ice::ObjectPrx proxy;
00046     __is->read(proxy);
00047     if(!proxy)
00048     {
00049         v = 0;
00050     }
00051     else
00052     {
00053         v = new ::IceProxy::RobotSimEvents::EventMessage;
00054         v->__copyFrom(proxy);
00055     }
00056 }
00057 
00058 void
00059 RobotSimEvents::__read(::IceInternal::BasicStream* __is, ::RobotSimEvents::EventsPrx& v)
00060 {
00061     ::Ice::ObjectPrx proxy;
00062     __is->read(proxy);
00063     if(!proxy)
00064     {
00065         v = 0;
00066     }
00067     else
00068     {
00069         v = new ::IceProxy::RobotSimEvents::Events;
00070         v->__copyFrom(proxy);
00071     }
00072 }
00073 
00074 void
00075 RobotSimEvents::__read(::IceInternal::BasicStream* __is, ::RobotSimEvents::RetinaMessagePrx& v)
00076 {
00077     ::Ice::ObjectPrx proxy;
00078     __is->read(proxy);
00079     if(!proxy)
00080     {
00081         v = 0;
00082     }
00083     else
00084     {
00085         v = new ::IceProxy::RobotSimEvents::RetinaMessage;
00086         v->__copyFrom(proxy);
00087     }
00088 }
00089 
00090 void
00091 RobotSimEvents::__read(::IceInternal::BasicStream* __is, ::RobotSimEvents::CameraConfigMessagePrx& v)
00092 {
00093     ::Ice::ObjectPrx proxy;
00094     __is->read(proxy);
00095     if(!proxy)
00096     {
00097         v = 0;
00098     }
00099     else
00100     {
00101         v = new ::IceProxy::RobotSimEvents::CameraConfigMessage;
00102         v->__copyFrom(proxy);
00103     }
00104 }
00105 
00106 static const ::std::string __RobotSimEvents__EventMessage_ids[2] =
00107 {
00108     "::Ice::Object",
00109     "::RobotSimEvents::EventMessage"
00110 };
00111 
00112 bool
00113 RobotSimEvents::EventMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const
00114 {
00115     return ::std::binary_search(__RobotSimEvents__EventMessage_ids, __RobotSimEvents__EventMessage_ids + 2, _s);
00116 }
00117 
00118 ::std::vector< ::std::string>
00119 RobotSimEvents::EventMessage::ice_ids(const ::Ice::Current&) const
00120 {
00121     return ::std::vector< ::std::string>(&__RobotSimEvents__EventMessage_ids[0], &__RobotSimEvents__EventMessage_ids[2]);
00122 }
00123 
00124 const ::std::string&
00125 RobotSimEvents::EventMessage::ice_id(const ::Ice::Current&) const
00126 {
00127     return __RobotSimEvents__EventMessage_ids[1];
00128 }
00129 
00130 const ::std::string&
00131 RobotSimEvents::EventMessage::ice_staticId()
00132 {
00133     return __RobotSimEvents__EventMessage_ids[1];
00134 }
00135 
00136 void
00137 RobotSimEvents::EventMessage::__write(::IceInternal::BasicStream* __os) const
00138 {
00139     __os->writeTypeId(ice_staticId());
00140     __os->startWriteSlice();
00141     __os->endWriteSlice();
00142     ::Ice::Object::__write(__os);
00143 }
00144 
00145 void
00146 RobotSimEvents::EventMessage::__read(::IceInternal::BasicStream* __is, bool __rid)
00147 {
00148     if(__rid)
00149     {
00150         ::std::string myId;
00151         __is->readTypeId(myId);
00152     }
00153     __is->startReadSlice();
00154     __is->endReadSlice();
00155     ::Ice::Object::__read(__is, true);
00156 }
00157 
00158 class __F__RobotSimEvents__EventMessage : public ::Ice::ObjectFactory
00159 {
00160 public:
00161 
00162     virtual ::Ice::ObjectPtr
00163     create(const ::std::string& type)
00164     {
00165         assert(type == ::RobotSimEvents::EventMessage::ice_staticId());
00166         return new ::RobotSimEvents::EventMessage;
00167     }
00168 
00169     virtual void
00170     destroy()
00171     {
00172     }
00173 };
00174 
00175 static ::Ice::ObjectFactoryPtr __F__RobotSimEvents__EventMessage_Ptr = new __F__RobotSimEvents__EventMessage;
00176 
00177 const ::Ice::ObjectFactoryPtr&
00178 RobotSimEvents::EventMessage::ice_factory()
00179 {
00180     return __F__RobotSimEvents__EventMessage_Ptr;
00181 }
00182 
00183 class __F__RobotSimEvents__EventMessage__Init
00184 {
00185 public:
00186 
00187     __F__RobotSimEvents__EventMessage__Init()
00188     {
00189         ::IceInternal::factoryTable->addObjectFactory(::RobotSimEvents::EventMessage::ice_staticId(), ::RobotSimEvents::EventMessage::ice_factory());
00190     }
00191 
00192     ~__F__RobotSimEvents__EventMessage__Init()
00193     {
00194         ::IceInternal::factoryTable->removeObjectFactory(::RobotSimEvents::EventMessage::ice_staticId());
00195     }
00196 };
00197 
00198 static __F__RobotSimEvents__EventMessage__Init __F__RobotSimEvents__EventMessage__i;
00199 
00200 #ifdef __APPLE__
00201 extern "C" { void __F__RobotSimEvents__EventMessage__initializer() {} }
00202 #endif
00203 
00204 
00205 bool
00206 RobotSimEvents::operator==(const ::RobotSimEvents::EventMessage& l, const ::RobotSimEvents::EventMessage& r)
00207 {
00208     return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r);
00209 }
00210 
00211 bool
00212 RobotSimEvents::operator<(const ::RobotSimEvents::EventMessage& l, const ::RobotSimEvents::EventMessage& r)
00213 {
00214     return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r);
00215 }
00216 
00217 void
00218 RobotSimEvents::__patch__EventMessagePtr(void* __addr, ::Ice::ObjectPtr& v)
00219 {
00220     ::RobotSimEvents::EventMessagePtr* p = static_cast< ::RobotSimEvents::EventMessagePtr*>(__addr);
00221     assert(p);
00222     *p = ::RobotSimEvents::EventMessagePtr::dynamicCast(v);
00223     if(v && !*p)
00224     {
00225         IceInternal::Ex::throwUOE(::RobotSimEvents::EventMessage::ice_staticId(), v->ice_id());
00226     }
00227 }
00228 
00229 static const ::std::string __RobotSimEvents__Events_ids[2] =
00230 {
00231     "::Ice::Object",
00232     "::RobotSimEvents::Events"
00233 };
00234 
00235 bool
00236 RobotSimEvents::Events::ice_isA(const ::std::string& _s, const ::Ice::Current&) const
00237 {
00238     return ::std::binary_search(__RobotSimEvents__Events_ids, __RobotSimEvents__Events_ids + 2, _s);
00239 }
00240 
00241 ::std::vector< ::std::string>
00242 RobotSimEvents::Events::ice_ids(const ::Ice::Current&) const
00243 {
00244     return ::std::vector< ::std::string>(&__RobotSimEvents__Events_ids[0], &__RobotSimEvents__Events_ids[2]);
00245 }
00246 
00247 const ::std::string&
00248 RobotSimEvents::Events::ice_id(const ::Ice::Current&) const
00249 {
00250     return __RobotSimEvents__Events_ids[1];
00251 }
00252 
00253 const ::std::string&
00254 RobotSimEvents::Events::ice_staticId()
00255 {
00256     return __RobotSimEvents__Events_ids[1];
00257 }
00258 
00259 #ifndef ICEE_PURE_CLIENT
00260 ::Ice::DispatchStatus
00261 RobotSimEvents::Events::___updateMessage(::IceInternal::Incoming& __inS, const ::Ice::Current& __current)
00262 {
00263     __checkMode(::Ice::Normal, __current.mode);
00264     ::IceInternal::BasicStream* __is = __inS.is();
00265     ::RobotSimEvents::EventMessagePtr eMsg;
00266     __is->read(::RobotSimEvents::__patch__EventMessagePtr, &eMsg);
00267     __is->readPendingObjects();
00268     updateMessage(eMsg, __current);
00269     return ::Ice::DispatchOK;
00270 }
00271 #endif // ICEE_PURE_CLIENT
00272 
00273 #ifndef ICEE_PURE_CLIENT
00274 static ::std::string __RobotSimEvents__Events_all[] =
00275 {
00276     "ice_id",
00277     "ice_ids",
00278     "ice_isA",
00279     "ice_ping",
00280     "updateMessage"
00281 };
00282 
00283 ::Ice::DispatchStatus
00284 RobotSimEvents::Events::__dispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
00285 {
00286     ::std::pair< ::std::string*, ::std::string*> r = ::std::equal_range(__RobotSimEvents__Events_all, __RobotSimEvents__Events_all + 5, current.operation);
00287     if(r.first == r.second)
00288     {
00289         throw Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
00290     }
00291 
00292     switch(r.first - __RobotSimEvents__Events_all)
00293     {
00294         case 0:
00295         {
00296             return ___ice_id(in, current);
00297         }
00298         case 1:
00299         {
00300             return ___ice_ids(in, current);
00301         }
00302         case 2:
00303         {
00304             return ___ice_isA(in, current);
00305         }
00306         case 3:
00307         {
00308             return ___ice_ping(in, current);
00309         }
00310         case 4:
00311         {
00312             return ___updateMessage(in, current);
00313         }
00314     }
00315 
00316     assert(false);
00317     throw Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
00318 }
00319 #endif // ICEE_PURE_CLIENT
00320 
00321 void
00322 RobotSimEvents::Events::__write(::IceInternal::BasicStream* __os) const
00323 {
00324     __os->writeTypeId(ice_staticId());
00325     __os->startWriteSlice();
00326     __os->endWriteSlice();
00327     ::Ice::Object::__write(__os);
00328 }
00329 
00330 void
00331 RobotSimEvents::Events::__read(::IceInternal::BasicStream* __is, bool __rid)
00332 {
00333     if(__rid)
00334     {
00335         ::std::string myId;
00336         __is->readTypeId(myId);
00337     }
00338     __is->startReadSlice();
00339     __is->endReadSlice();
00340     ::Ice::Object::__read(__is, true);
00341 }
00342 
00343 
00344 bool
00345 RobotSimEvents::operator==(const ::RobotSimEvents::Events& l, const ::RobotSimEvents::Events& r)
00346 {
00347     return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r);
00348 }
00349 
00350 bool
00351 RobotSimEvents::operator<(const ::RobotSimEvents::Events& l, const ::RobotSimEvents::Events& r)
00352 {
00353     return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r);
00354 }
00355 
00356 void
00357 RobotSimEvents::__patch__EventsPtr(void* __addr, ::Ice::ObjectPtr& v)
00358 {
00359     ::RobotSimEvents::EventsPtr* p = static_cast< ::RobotSimEvents::EventsPtr*>(__addr);
00360     assert(p);
00361     *p = ::RobotSimEvents::EventsPtr::dynamicCast(v);
00362     if(v && !*p)
00363     {
00364         IceInternal::Ex::throwUOE(::RobotSimEvents::Events::ice_staticId(), v->ice_id());
00365     }
00366 }
00367 
00368 RobotSimEvents::RetinaMessage::RetinaMessage(const ::ImageIceMod::ImageIce& __ice_img, const ::std::string& __ice_cameraID) :
00369     img(__ice_img),
00370     cameraID(__ice_cameraID)
00371 {
00372 }
00373 
00374 static const ::std::string __RobotSimEvents__RetinaMessage_ids[3] =
00375 {
00376     "::Ice::Object",
00377     "::RobotSimEvents::EventMessage",
00378     "::RobotSimEvents::RetinaMessage"
00379 };
00380 
00381 bool
00382 RobotSimEvents::RetinaMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const
00383 {
00384     return ::std::binary_search(__RobotSimEvents__RetinaMessage_ids, __RobotSimEvents__RetinaMessage_ids + 3, _s);
00385 }
00386 
00387 ::std::vector< ::std::string>
00388 RobotSimEvents::RetinaMessage::ice_ids(const ::Ice::Current&) const
00389 {
00390     return ::std::vector< ::std::string>(&__RobotSimEvents__RetinaMessage_ids[0], &__RobotSimEvents__RetinaMessage_ids[3]);
00391 }
00392 
00393 const ::std::string&
00394 RobotSimEvents::RetinaMessage::ice_id(const ::Ice::Current&) const
00395 {
00396     return __RobotSimEvents__RetinaMessage_ids[2];
00397 }
00398 
00399 const ::std::string&
00400 RobotSimEvents::RetinaMessage::ice_staticId()
00401 {
00402     return __RobotSimEvents__RetinaMessage_ids[2];
00403 }
00404 
00405 void
00406 RobotSimEvents::RetinaMessage::__write(::IceInternal::BasicStream* __os) const
00407 {
00408     __os->writeTypeId(ice_staticId());
00409     __os->startWriteSlice();
00410     img.__write(__os);
00411     __os->write(cameraID);
00412     __os->endWriteSlice();
00413     ::RobotSimEvents::EventMessage::__write(__os);
00414 }
00415 
00416 void
00417 RobotSimEvents::RetinaMessage::__read(::IceInternal::BasicStream* __is, bool __rid)
00418 {
00419     if(__rid)
00420     {
00421         ::std::string myId;
00422         __is->readTypeId(myId);
00423     }
00424     __is->startReadSlice();
00425     img.__read(__is);
00426     __is->read(cameraID);
00427     __is->endReadSlice();
00428     ::RobotSimEvents::EventMessage::__read(__is, true);
00429 }
00430 
00431 class __F__RobotSimEvents__RetinaMessage : public ::Ice::ObjectFactory
00432 {
00433 public:
00434 
00435     virtual ::Ice::ObjectPtr
00436     create(const ::std::string& type)
00437     {
00438         assert(type == ::RobotSimEvents::RetinaMessage::ice_staticId());
00439         return new ::RobotSimEvents::RetinaMessage;
00440     }
00441 
00442     virtual void
00443     destroy()
00444     {
00445     }
00446 };
00447 
00448 static ::Ice::ObjectFactoryPtr __F__RobotSimEvents__RetinaMessage_Ptr = new __F__RobotSimEvents__RetinaMessage;
00449 
00450 const ::Ice::ObjectFactoryPtr&
00451 RobotSimEvents::RetinaMessage::ice_factory()
00452 {
00453     return __F__RobotSimEvents__RetinaMessage_Ptr;
00454 }
00455 
00456 class __F__RobotSimEvents__RetinaMessage__Init
00457 {
00458 public:
00459 
00460     __F__RobotSimEvents__RetinaMessage__Init()
00461     {
00462         ::IceInternal::factoryTable->addObjectFactory(::RobotSimEvents::RetinaMessage::ice_staticId(), ::RobotSimEvents::RetinaMessage::ice_factory());
00463     }
00464 
00465     ~__F__RobotSimEvents__RetinaMessage__Init()
00466     {
00467         ::IceInternal::factoryTable->removeObjectFactory(::RobotSimEvents::RetinaMessage::ice_staticId());
00468     }
00469 };
00470 
00471 static __F__RobotSimEvents__RetinaMessage__Init __F__RobotSimEvents__RetinaMessage__i;
00472 
00473 #ifdef __APPLE__
00474 extern "C" { void __F__RobotSimEvents__RetinaMessage__initializer() {} }
00475 #endif
00476 
00477 
00478 bool
00479 RobotSimEvents::operator==(const ::RobotSimEvents::RetinaMessage& l, const ::RobotSimEvents::RetinaMessage& r)
00480 {
00481     return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r);
00482 }
00483 
00484 bool
00485 RobotSimEvents::operator<(const ::RobotSimEvents::RetinaMessage& l, const ::RobotSimEvents::RetinaMessage& r)
00486 {
00487     return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r);
00488 }
00489 
00490 void
00491 RobotSimEvents::__patch__RetinaMessagePtr(void* __addr, ::Ice::ObjectPtr& v)
00492 {
00493     ::RobotSimEvents::RetinaMessagePtr* p = static_cast< ::RobotSimEvents::RetinaMessagePtr*>(__addr);
00494     assert(p);
00495     *p = ::RobotSimEvents::RetinaMessagePtr::dynamicCast(v);
00496     if(v && !*p)
00497     {
00498         IceInternal::Ex::throwUOE(::RobotSimEvents::RetinaMessage::ice_staticId(), v->ice_id());
00499     }
00500 }
00501 
00502 RobotSimEvents::CameraConfigMessage::CameraConfigMessage(const ::std::string& __ice_cameraID, bool __ice_active) :
00503     cameraID(__ice_cameraID),
00504     active(__ice_active)
00505 {
00506 }
00507 
00508 static const ::std::string __RobotSimEvents__CameraConfigMessage_ids[3] =
00509 {
00510     "::Ice::Object",
00511     "::RobotSimEvents::CameraConfigMessage",
00512     "::RobotSimEvents::EventMessage"
00513 };
00514 
00515 bool
00516 RobotSimEvents::CameraConfigMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const
00517 {
00518     return ::std::binary_search(__RobotSimEvents__CameraConfigMessage_ids, __RobotSimEvents__CameraConfigMessage_ids + 3, _s);
00519 }
00520 
00521 ::std::vector< ::std::string>
00522 RobotSimEvents::CameraConfigMessage::ice_ids(const ::Ice::Current&) const
00523 {
00524     return ::std::vector< ::std::string>(&__RobotSimEvents__CameraConfigMessage_ids[0], &__RobotSimEvents__CameraConfigMessage_ids[3]);
00525 }
00526 
00527 const ::std::string&
00528 RobotSimEvents::CameraConfigMessage::ice_id(const ::Ice::Current&) const
00529 {
00530     return __RobotSimEvents__CameraConfigMessage_ids[1];
00531 }
00532 
00533 const ::std::string&
00534 RobotSimEvents::CameraConfigMessage::ice_staticId()
00535 {
00536     return __RobotSimEvents__CameraConfigMessage_ids[1];
00537 }
00538 
00539 void
00540 RobotSimEvents::CameraConfigMessage::__write(::IceInternal::BasicStream* __os) const
00541 {
00542     __os->writeTypeId(ice_staticId());
00543     __os->startWriteSlice();
00544     __os->write(cameraID);
00545     __os->write(active);
00546     __os->endWriteSlice();
00547     ::RobotSimEvents::EventMessage::__write(__os);
00548 }
00549 
00550 void
00551 RobotSimEvents::CameraConfigMessage::__read(::IceInternal::BasicStream* __is, bool __rid)
00552 {
00553     if(__rid)
00554     {
00555         ::std::string myId;
00556         __is->readTypeId(myId);
00557     }
00558     __is->startReadSlice();
00559     __is->read(cameraID);
00560     __is->read(active);
00561     __is->endReadSlice();
00562     ::RobotSimEvents::EventMessage::__read(__is, true);
00563 }
00564 
00565 class __F__RobotSimEvents__CameraConfigMessage : public ::Ice::ObjectFactory
00566 {
00567 public:
00568 
00569     virtual ::Ice::ObjectPtr
00570     create(const ::std::string& type)
00571     {
00572         assert(type == ::RobotSimEvents::CameraConfigMessage::ice_staticId());
00573         return new ::RobotSimEvents::CameraConfigMessage;
00574     }
00575 
00576     virtual void
00577     destroy()
00578     {
00579     }
00580 };
00581 
00582 static ::Ice::ObjectFactoryPtr __F__RobotSimEvents__CameraConfigMessage_Ptr = new __F__RobotSimEvents__CameraConfigMessage;
00583 
00584 const ::Ice::ObjectFactoryPtr&
00585 RobotSimEvents::CameraConfigMessage::ice_factory()
00586 {
00587     return __F__RobotSimEvents__CameraConfigMessage_Ptr;
00588 }
00589 
00590 class __F__RobotSimEvents__CameraConfigMessage__Init
00591 {
00592 public:
00593 
00594     __F__RobotSimEvents__CameraConfigMessage__Init()
00595     {
00596         ::IceInternal::factoryTable->addObjectFactory(::RobotSimEvents::CameraConfigMessage::ice_staticId(), ::RobotSimEvents::CameraConfigMessage::ice_factory());
00597     }
00598 
00599     ~__F__RobotSimEvents__CameraConfigMessage__Init()
00600     {
00601         ::IceInternal::factoryTable->removeObjectFactory(::RobotSimEvents::CameraConfigMessage::ice_staticId());
00602     }
00603 };
00604 
00605 static __F__RobotSimEvents__CameraConfigMessage__Init __F__RobotSimEvents__CameraConfigMessage__i;
00606 
00607 #ifdef __APPLE__
00608 extern "C" { void __F__RobotSimEvents__CameraConfigMessage__initializer() {} }
00609 #endif
00610 
00611 
00612 bool
00613 RobotSimEvents::operator==(const ::RobotSimEvents::CameraConfigMessage& l, const ::RobotSimEvents::CameraConfigMessage& r)
00614 {
00615     return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r);
00616 }
00617 
00618 bool
00619 RobotSimEvents::operator<(const ::RobotSimEvents::CameraConfigMessage& l, const ::RobotSimEvents::CameraConfigMessage& r)
00620 {
00621     return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r);
00622 }
00623 
00624 void
00625 RobotSimEvents::__patch__CameraConfigMessagePtr(void* __addr, ::Ice::ObjectPtr& v)
00626 {
00627     ::RobotSimEvents::CameraConfigMessagePtr* p = static_cast< ::RobotSimEvents::CameraConfigMessagePtr*>(__addr);
00628     assert(p);
00629     *p = ::RobotSimEvents::CameraConfigMessagePtr::dynamicCast(v);
00630     if(v && !*p)
00631     {
00632         IceInternal::Ex::throwUOE(::RobotSimEvents::CameraConfigMessage::ice_staticId(), v->ice_id());
00633     }
00634 }
00635 
00636 const ::std::string&
00637 IceProxy::RobotSimEvents::EventMessage::ice_staticId()
00638 {
00639     return __RobotSimEvents__EventMessage_ids[1];
00640 }
00641 
00642 ::IceProxy::Ice::Object*
00643 IceProxy::RobotSimEvents::EventMessage::__newInstance() const
00644 {
00645     return new EventMessage;
00646 }
00647 
00648 void
00649 IceProxy::RobotSimEvents::Events::updateMessage(const ::RobotSimEvents::EventMessagePtr& eMsg, const ::Ice::Context* __ctx)
00650 {
00651     int __cnt = 0;
00652     while(true)
00653     {
00654         ::IceInternal::RequestHandlerPtr __handler;
00655         try
00656         {
00657             __handler = __getRequestHandler();
00658             ::IceInternal::Outgoing __outS(__handler.get(), _reference.get(), __RobotSimEvents__Events__updateMessage_name, ::Ice::Normal, __ctx);
00659             try
00660             {
00661                 ::IceInternal::BasicStream* __os = __outS.os();
00662                 __os->write(::Ice::ObjectPtr(::IceInternal::upCast(eMsg.get())));
00663                 __os->writePendingObjects();
00664             }
00665             catch(const ::Ice::LocalException& __ex)
00666             {
00667                 __outS.abort(__ex);
00668             }
00669             bool __ok = __outS.invoke();
00670             try
00671             {
00672                 if(!__ok)
00673                 {
00674                     __outS.is()->throwUnknownUserException();
00675                 }
00676             }
00677             catch(const ::Ice::LocalException& __ex)
00678             {
00679                 throw ::IceInternal::LocalExceptionWrapper(__ex, false);
00680             }
00681 #if defined(_MSC_VER) && defined(_M_ARM) // ARM bug.
00682             catch(...)
00683             {
00684                 throw;
00685             }
00686 #endif
00687             return;
00688         }
00689         catch(const ::IceInternal::LocalExceptionWrapper& __ex)
00690         {
00691             __handleExceptionWrapper(__handler, __ex);
00692         }
00693         catch(const ::Ice::LocalException& __ex)
00694         {
00695             __handleException(__handler, __ex, __cnt);
00696         }
00697 #if defined(_MSC_VER) && defined(_M_ARM) // ARM bug.
00698         catch(...)
00699         {
00700             throw;
00701         }
00702 #endif
00703     }
00704 }
00705 
00706 const ::std::string&
00707 IceProxy::RobotSimEvents::Events::ice_staticId()
00708 {
00709     return __RobotSimEvents__Events_ids[1];
00710 }
00711 
00712 ::IceProxy::Ice::Object*
00713 IceProxy::RobotSimEvents::Events::__newInstance() const
00714 {
00715     return new Events;
00716 }
00717 
00718 const ::std::string&
00719 IceProxy::RobotSimEvents::RetinaMessage::ice_staticId()
00720 {
00721     return __RobotSimEvents__RetinaMessage_ids[2];
00722 }
00723 
00724 ::IceProxy::Ice::Object*
00725 IceProxy::RobotSimEvents::RetinaMessage::__newInstance() const
00726 {
00727     return new RetinaMessage;
00728 }
00729 
00730 const ::std::string&
00731 IceProxy::RobotSimEvents::CameraConfigMessage::ice_staticId()
00732 {
00733     return __RobotSimEvents__CameraConfigMessage_ids[1];
00734 }
00735 
00736 ::IceProxy::Ice::Object*
00737 IceProxy::RobotSimEvents::CameraConfigMessage::__newInstance() const
00738 {
00739     return new CameraConfigMessage;
00740 }
Generated on Sun May 8 08:41:21 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3