00001 // ********************************************************************** 00002 // 00003 // Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. 00004 // 00005 // This copy of Ice is licensed to you under the terms described in the 00006 // ICE_LICENSE file included in this distribution. 00007 // 00008 // ********************************************************************** 00009 00010 // Ice version 3.3.1 00011 // Generated from file `HawkMessages.ice' 00012 00013 #include <HawkMessages.ice.H> 00014 #include <Ice/LocalException.h> 00015 #include <Ice/ObjectFactory.h> 00016 #include <Ice/BasicStream.h> 00017 #include <IceUtil/Iterator.h> 00018 #include <IceUtil/ScopedArray.h> 00019 00020 #ifndef ICE_IGNORE_VERSION 00021 # if ICE_INT_VERSION / 100 != 303 00022 # error Ice version mismatch! 00023 # endif 00024 # if ICE_INT_VERSION % 100 > 50 00025 # error Beta header file detected 00026 # endif 00027 # if ICE_INT_VERSION % 100 < 1 00028 # error Ice patch level mismatch! 00029 # endif 00030 #endif 00031 00032 static const ::std::string __HawkMessages__MessageAgent__catchMessage_name = "catchMessage"; 00033 00034 ::Ice::Object* IceInternal::upCast(::HawkMessages::Message* p) { return p; } 00035 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::HawkMessages::Message* p) { return p; } 00036 00037 ::Ice::Object* IceInternal::upCast(::HawkMessages::MessageAgent* p) { return p; } 00038 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::HawkMessages::MessageAgent* p) { return p; } 00039 00040 ::Ice::Object* IceInternal::upCast(::HawkMessages::CameraImageMessage* p) { return p; } 00041 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::HawkMessages::CameraImageMessage* p) { return p; } 00042 00043 ::Ice::Object* IceInternal::upCast(::HawkMessages::ControlCameraMessage* p) { return p; } 00044 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::HawkMessages::ControlCameraMessage* p) { return p; } 00045 00046 ::Ice::Object* IceInternal::upCast(::HawkMessages::ControlDriveVisionMessage* p) { return p; } 00047 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::HawkMessages::ControlDriveVisionMessage* p) { return p; } 00048 00049 ::Ice::Object* IceInternal::upCast(::HawkMessages::ControlLandMessage* p) { return p; } 00050 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::HawkMessages::ControlLandMessage* p) { return p; } 00051 00052 ::Ice::Object* IceInternal::upCast(::HawkMessages::ControlMoveMessage* p) { return p; } 00053 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::HawkMessages::ControlMoveMessage* p) { return p; } 00054 00055 ::Ice::Object* IceInternal::upCast(::HawkMessages::ControlRoomVisionMessage* p) { return p; } 00056 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::HawkMessages::ControlRoomVisionMessage* p) { return p; } 00057 00058 ::Ice::Object* IceInternal::upCast(::HawkMessages::ControlTakeOffMessage* p) { return p; } 00059 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::HawkMessages::ControlTakeOffMessage* p) { return p; } 00060 00061 ::Ice::Object* IceInternal::upCast(::HawkMessages::DriveFinderMessage* p) { return p; } 00062 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::HawkMessages::DriveFinderMessage* p) { return p; } 00063 00064 ::Ice::Object* IceInternal::upCast(::HawkMessages::ExampleMessage* p) { return p; } 00065 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::HawkMessages::ExampleMessage* p) { return p; } 00066 00067 ::Ice::Object* IceInternal::upCast(::HawkMessages::ExecuteMissionMessage* p) { return p; } 00068 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::HawkMessages::ExecuteMissionMessage* p) { return p; } 00069 00070 ::Ice::Object* IceInternal::upCast(::HawkMessages::MissionListMessage* p) { return p; } 00071 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::HawkMessages::MissionListMessage* p) { return p; } 00072 00073 ::Ice::Object* IceInternal::upCast(::HawkMessages::RoomFinderMessage* p) { return p; } 00074 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::HawkMessages::RoomFinderMessage* p) { return p; } 00075 00076 ::Ice::Object* IceInternal::upCast(::HawkMessages::SensorDataMessage* p) { return p; } 00077 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::HawkMessages::SensorDataMessage* p) { return p; } 00078 00079 ::Ice::Object* IceInternal::upCast(::HawkMessages::SlamDataMessage* p) { return p; } 00080 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::HawkMessages::SlamDataMessage* p) { return p; } 00081 00082 void 00083 HawkMessages::__read(::IceInternal::BasicStream* __is, ::HawkMessages::MessagePrx& v) 00084 { 00085 ::Ice::ObjectPrx proxy; 00086 __is->read(proxy); 00087 if(!proxy) 00088 { 00089 v = 0; 00090 } 00091 else 00092 { 00093 v = new ::IceProxy::HawkMessages::Message; 00094 v->__copyFrom(proxy); 00095 } 00096 } 00097 00098 void 00099 HawkMessages::__read(::IceInternal::BasicStream* __is, ::HawkMessages::MessageAgentPrx& v) 00100 { 00101 ::Ice::ObjectPrx proxy; 00102 __is->read(proxy); 00103 if(!proxy) 00104 { 00105 v = 0; 00106 } 00107 else 00108 { 00109 v = new ::IceProxy::HawkMessages::MessageAgent; 00110 v->__copyFrom(proxy); 00111 } 00112 } 00113 00114 void 00115 HawkMessages::__read(::IceInternal::BasicStream* __is, ::HawkMessages::CameraImageMessagePrx& v) 00116 { 00117 ::Ice::ObjectPrx proxy; 00118 __is->read(proxy); 00119 if(!proxy) 00120 { 00121 v = 0; 00122 } 00123 else 00124 { 00125 v = new ::IceProxy::HawkMessages::CameraImageMessage; 00126 v->__copyFrom(proxy); 00127 } 00128 } 00129 00130 void 00131 HawkMessages::__read(::IceInternal::BasicStream* __is, ::HawkMessages::ControlCameraMessagePrx& v) 00132 { 00133 ::Ice::ObjectPrx proxy; 00134 __is->read(proxy); 00135 if(!proxy) 00136 { 00137 v = 0; 00138 } 00139 else 00140 { 00141 v = new ::IceProxy::HawkMessages::ControlCameraMessage; 00142 v->__copyFrom(proxy); 00143 } 00144 } 00145 00146 void 00147 HawkMessages::__read(::IceInternal::BasicStream* __is, ::HawkMessages::ControlDriveVisionMessagePrx& v) 00148 { 00149 ::Ice::ObjectPrx proxy; 00150 __is->read(proxy); 00151 if(!proxy) 00152 { 00153 v = 0; 00154 } 00155 else 00156 { 00157 v = new ::IceProxy::HawkMessages::ControlDriveVisionMessage; 00158 v->__copyFrom(proxy); 00159 } 00160 } 00161 00162 void 00163 HawkMessages::__read(::IceInternal::BasicStream* __is, ::HawkMessages::ControlLandMessagePrx& v) 00164 { 00165 ::Ice::ObjectPrx proxy; 00166 __is->read(proxy); 00167 if(!proxy) 00168 { 00169 v = 0; 00170 } 00171 else 00172 { 00173 v = new ::IceProxy::HawkMessages::ControlLandMessage; 00174 v->__copyFrom(proxy); 00175 } 00176 } 00177 00178 void 00179 HawkMessages::__read(::IceInternal::BasicStream* __is, ::HawkMessages::ControlMoveMessagePrx& v) 00180 { 00181 ::Ice::ObjectPrx proxy; 00182 __is->read(proxy); 00183 if(!proxy) 00184 { 00185 v = 0; 00186 } 00187 else 00188 { 00189 v = new ::IceProxy::HawkMessages::ControlMoveMessage; 00190 v->__copyFrom(proxy); 00191 } 00192 } 00193 00194 void 00195 HawkMessages::__read(::IceInternal::BasicStream* __is, ::HawkMessages::ControlRoomVisionMessagePrx& v) 00196 { 00197 ::Ice::ObjectPrx proxy; 00198 __is->read(proxy); 00199 if(!proxy) 00200 { 00201 v = 0; 00202 } 00203 else 00204 { 00205 v = new ::IceProxy::HawkMessages::ControlRoomVisionMessage; 00206 v->__copyFrom(proxy); 00207 } 00208 } 00209 00210 void 00211 HawkMessages::__read(::IceInternal::BasicStream* __is, ::HawkMessages::ControlTakeOffMessagePrx& v) 00212 { 00213 ::Ice::ObjectPrx proxy; 00214 __is->read(proxy); 00215 if(!proxy) 00216 { 00217 v = 0; 00218 } 00219 else 00220 { 00221 v = new ::IceProxy::HawkMessages::ControlTakeOffMessage; 00222 v->__copyFrom(proxy); 00223 } 00224 } 00225 00226 void 00227 HawkMessages::__read(::IceInternal::BasicStream* __is, ::HawkMessages::DriveFinderMessagePrx& v) 00228 { 00229 ::Ice::ObjectPrx proxy; 00230 __is->read(proxy); 00231 if(!proxy) 00232 { 00233 v = 0; 00234 } 00235 else 00236 { 00237 v = new ::IceProxy::HawkMessages::DriveFinderMessage; 00238 v->__copyFrom(proxy); 00239 } 00240 } 00241 00242 void 00243 HawkMessages::__read(::IceInternal::BasicStream* __is, ::HawkMessages::ExampleMessagePrx& v) 00244 { 00245 ::Ice::ObjectPrx proxy; 00246 __is->read(proxy); 00247 if(!proxy) 00248 { 00249 v = 0; 00250 } 00251 else 00252 { 00253 v = new ::IceProxy::HawkMessages::ExampleMessage; 00254 v->__copyFrom(proxy); 00255 } 00256 } 00257 00258 void 00259 HawkMessages::__read(::IceInternal::BasicStream* __is, ::HawkMessages::ExecuteMissionMessagePrx& v) 00260 { 00261 ::Ice::ObjectPrx proxy; 00262 __is->read(proxy); 00263 if(!proxy) 00264 { 00265 v = 0; 00266 } 00267 else 00268 { 00269 v = new ::IceProxy::HawkMessages::ExecuteMissionMessage; 00270 v->__copyFrom(proxy); 00271 } 00272 } 00273 00274 void 00275 HawkMessages::__read(::IceInternal::BasicStream* __is, ::HawkMessages::MissionListMessagePrx& v) 00276 { 00277 ::Ice::ObjectPrx proxy; 00278 __is->read(proxy); 00279 if(!proxy) 00280 { 00281 v = 0; 00282 } 00283 else 00284 { 00285 v = new ::IceProxy::HawkMessages::MissionListMessage; 00286 v->__copyFrom(proxy); 00287 } 00288 } 00289 00290 void 00291 HawkMessages::__read(::IceInternal::BasicStream* __is, ::HawkMessages::RoomFinderMessagePrx& v) 00292 { 00293 ::Ice::ObjectPrx proxy; 00294 __is->read(proxy); 00295 if(!proxy) 00296 { 00297 v = 0; 00298 } 00299 else 00300 { 00301 v = new ::IceProxy::HawkMessages::RoomFinderMessage; 00302 v->__copyFrom(proxy); 00303 } 00304 } 00305 00306 void 00307 HawkMessages::__read(::IceInternal::BasicStream* __is, ::HawkMessages::SensorDataMessagePrx& v) 00308 { 00309 ::Ice::ObjectPrx proxy; 00310 __is->read(proxy); 00311 if(!proxy) 00312 { 00313 v = 0; 00314 } 00315 else 00316 { 00317 v = new ::IceProxy::HawkMessages::SensorDataMessage; 00318 v->__copyFrom(proxy); 00319 } 00320 } 00321 00322 void 00323 HawkMessages::__read(::IceInternal::BasicStream* __is, ::HawkMessages::SlamDataMessagePrx& v) 00324 { 00325 ::Ice::ObjectPrx proxy; 00326 __is->read(proxy); 00327 if(!proxy) 00328 { 00329 v = 0; 00330 } 00331 else 00332 { 00333 v = new ::IceProxy::HawkMessages::SlamDataMessage; 00334 v->__copyFrom(proxy); 00335 } 00336 } 00337 00338 bool 00339 HawkMessages::Pose::operator==(const Pose& __rhs) const 00340 { 00341 if(this == &__rhs) 00342 { 00343 return true; 00344 } 00345 if(x != __rhs.x) 00346 { 00347 return false; 00348 } 00349 if(y != __rhs.y) 00350 { 00351 return false; 00352 } 00353 if(z != __rhs.z) 00354 { 00355 return false; 00356 } 00357 if(theta != __rhs.theta) 00358 { 00359 return false; 00360 } 00361 return true; 00362 } 00363 00364 bool 00365 HawkMessages::Pose::operator<(const Pose& __rhs) const 00366 { 00367 if(this == &__rhs) 00368 { 00369 return false; 00370 } 00371 if(x < __rhs.x) 00372 { 00373 return true; 00374 } 00375 else if(__rhs.x < x) 00376 { 00377 return false; 00378 } 00379 if(y < __rhs.y) 00380 { 00381 return true; 00382 } 00383 else if(__rhs.y < y) 00384 { 00385 return false; 00386 } 00387 if(z < __rhs.z) 00388 { 00389 return true; 00390 } 00391 else if(__rhs.z < z) 00392 { 00393 return false; 00394 } 00395 if(theta < __rhs.theta) 00396 { 00397 return true; 00398 } 00399 else if(__rhs.theta < theta) 00400 { 00401 return false; 00402 } 00403 return false; 00404 } 00405 00406 void 00407 HawkMessages::Pose::__write(::IceInternal::BasicStream* __os) const 00408 { 00409 __os->write(x); 00410 __os->write(y); 00411 __os->write(z); 00412 __os->write(theta); 00413 } 00414 00415 void 00416 HawkMessages::Pose::__read(::IceInternal::BasicStream* __is) 00417 { 00418 __is->read(x); 00419 __is->read(y); 00420 __is->read(z); 00421 __is->read(theta); 00422 } 00423 00424 bool 00425 HawkMessages::Sonar::operator==(const Sonar& __rhs) const 00426 { 00427 if(this == &__rhs) 00428 { 00429 return true; 00430 } 00431 if(sonarID != __rhs.sonarID) 00432 { 00433 return false; 00434 } 00435 if(distance != __rhs.distance) 00436 { 00437 return false; 00438 } 00439 return true; 00440 } 00441 00442 bool 00443 HawkMessages::Sonar::operator<(const Sonar& __rhs) const 00444 { 00445 if(this == &__rhs) 00446 { 00447 return false; 00448 } 00449 if(sonarID < __rhs.sonarID) 00450 { 00451 return true; 00452 } 00453 else if(__rhs.sonarID < sonarID) 00454 { 00455 return false; 00456 } 00457 if(distance < __rhs.distance) 00458 { 00459 return true; 00460 } 00461 else if(__rhs.distance < distance) 00462 { 00463 return false; 00464 } 00465 return false; 00466 } 00467 00468 void 00469 HawkMessages::Sonar::__write(::IceInternal::BasicStream* __os) const 00470 { 00471 __os->write(sonarID); 00472 __os->write(distance); 00473 } 00474 00475 void 00476 HawkMessages::Sonar::__read(::IceInternal::BasicStream* __is) 00477 { 00478 __is->read(sonarID); 00479 __is->read(distance); 00480 } 00481 00482 void 00483 HawkMessages::__writeSonarSeq(::IceInternal::BasicStream* __os, const ::HawkMessages::Sonar* begin, const ::HawkMessages::Sonar* end) 00484 { 00485 ::Ice::Int size = static_cast< ::Ice::Int>(end - begin); 00486 __os->writeSize(size); 00487 for(int i = 0; i < size; ++i) 00488 { 00489 begin[i].__write(__os); 00490 } 00491 } 00492 00493 void 00494 HawkMessages::__readSonarSeq(::IceInternal::BasicStream* __is, ::HawkMessages::SonarSeq& v) 00495 { 00496 ::Ice::Int sz; 00497 __is->readSize(sz); 00498 __is->startSeq(sz, 9); 00499 v.resize(sz); 00500 for(int i = 0; i < sz; ++i) 00501 { 00502 v[i].__read(__is); 00503 __is->checkSeq(); 00504 __is->endElement(); 00505 } 00506 __is->endSeq(sz); 00507 } 00508 00509 const ::std::string& 00510 IceProxy::HawkMessages::Message::ice_staticId() 00511 { 00512 return ::HawkMessages::Message::ice_staticId(); 00513 } 00514 00515 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00516 IceProxy::HawkMessages::Message::__createDelegateM() 00517 { 00518 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::HawkMessages::Message); 00519 } 00520 00521 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00522 IceProxy::HawkMessages::Message::__createDelegateD() 00523 { 00524 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::HawkMessages::Message); 00525 } 00526 00527 ::IceProxy::Ice::Object* 00528 IceProxy::HawkMessages::Message::__newInstance() const 00529 { 00530 return new Message; 00531 } 00532 00533 void 00534 IceProxy::HawkMessages::MessageAgent::catchMessage(const ::HawkMessages::MessagePtr& msg, const ::Ice::Context* __ctx) 00535 { 00536 int __cnt = 0; 00537 while(true) 00538 { 00539 ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; 00540 try 00541 { 00542 #if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) // C++Builder 2009 compiler bug 00543 IceUtil::DummyBCC dummy; 00544 #endif 00545 __delBase = __getDelegate(false); 00546 ::IceDelegate::HawkMessages::MessageAgent* __del = dynamic_cast< ::IceDelegate::HawkMessages::MessageAgent*>(__delBase.get()); 00547 __del->catchMessage(msg, __ctx); 00548 return; 00549 } 00550 catch(const ::IceInternal::LocalExceptionWrapper& __ex) 00551 { 00552 __handleExceptionWrapper(__delBase, __ex, 0); 00553 } 00554 catch(const ::Ice::LocalException& __ex) 00555 { 00556 __handleException(__delBase, __ex, 0, __cnt); 00557 } 00558 } 00559 } 00560 00561 const ::std::string& 00562 IceProxy::HawkMessages::MessageAgent::ice_staticId() 00563 { 00564 return ::HawkMessages::MessageAgent::ice_staticId(); 00565 } 00566 00567 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00568 IceProxy::HawkMessages::MessageAgent::__createDelegateM() 00569 { 00570 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::HawkMessages::MessageAgent); 00571 } 00572 00573 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00574 IceProxy::HawkMessages::MessageAgent::__createDelegateD() 00575 { 00576 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::HawkMessages::MessageAgent); 00577 } 00578 00579 ::IceProxy::Ice::Object* 00580 IceProxy::HawkMessages::MessageAgent::__newInstance() const 00581 { 00582 return new MessageAgent; 00583 } 00584 00585 const ::std::string& 00586 IceProxy::HawkMessages::CameraImageMessage::ice_staticId() 00587 { 00588 return ::HawkMessages::CameraImageMessage::ice_staticId(); 00589 } 00590 00591 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00592 IceProxy::HawkMessages::CameraImageMessage::__createDelegateM() 00593 { 00594 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::HawkMessages::CameraImageMessage); 00595 } 00596 00597 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00598 IceProxy::HawkMessages::CameraImageMessage::__createDelegateD() 00599 { 00600 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::HawkMessages::CameraImageMessage); 00601 } 00602 00603 ::IceProxy::Ice::Object* 00604 IceProxy::HawkMessages::CameraImageMessage::__newInstance() const 00605 { 00606 return new CameraImageMessage; 00607 } 00608 00609 const ::std::string& 00610 IceProxy::HawkMessages::ControlCameraMessage::ice_staticId() 00611 { 00612 return ::HawkMessages::ControlCameraMessage::ice_staticId(); 00613 } 00614 00615 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00616 IceProxy::HawkMessages::ControlCameraMessage::__createDelegateM() 00617 { 00618 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::HawkMessages::ControlCameraMessage); 00619 } 00620 00621 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00622 IceProxy::HawkMessages::ControlCameraMessage::__createDelegateD() 00623 { 00624 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::HawkMessages::ControlCameraMessage); 00625 } 00626 00627 ::IceProxy::Ice::Object* 00628 IceProxy::HawkMessages::ControlCameraMessage::__newInstance() const 00629 { 00630 return new ControlCameraMessage; 00631 } 00632 00633 const ::std::string& 00634 IceProxy::HawkMessages::ControlDriveVisionMessage::ice_staticId() 00635 { 00636 return ::HawkMessages::ControlDriveVisionMessage::ice_staticId(); 00637 } 00638 00639 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00640 IceProxy::HawkMessages::ControlDriveVisionMessage::__createDelegateM() 00641 { 00642 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::HawkMessages::ControlDriveVisionMessage); 00643 } 00644 00645 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00646 IceProxy::HawkMessages::ControlDriveVisionMessage::__createDelegateD() 00647 { 00648 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::HawkMessages::ControlDriveVisionMessage); 00649 } 00650 00651 ::IceProxy::Ice::Object* 00652 IceProxy::HawkMessages::ControlDriveVisionMessage::__newInstance() const 00653 { 00654 return new ControlDriveVisionMessage; 00655 } 00656 00657 const ::std::string& 00658 IceProxy::HawkMessages::ControlLandMessage::ice_staticId() 00659 { 00660 return ::HawkMessages::ControlLandMessage::ice_staticId(); 00661 } 00662 00663 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00664 IceProxy::HawkMessages::ControlLandMessage::__createDelegateM() 00665 { 00666 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::HawkMessages::ControlLandMessage); 00667 } 00668 00669 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00670 IceProxy::HawkMessages::ControlLandMessage::__createDelegateD() 00671 { 00672 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::HawkMessages::ControlLandMessage); 00673 } 00674 00675 ::IceProxy::Ice::Object* 00676 IceProxy::HawkMessages::ControlLandMessage::__newInstance() const 00677 { 00678 return new ControlLandMessage; 00679 } 00680 00681 const ::std::string& 00682 IceProxy::HawkMessages::ControlMoveMessage::ice_staticId() 00683 { 00684 return ::HawkMessages::ControlMoveMessage::ice_staticId(); 00685 } 00686 00687 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00688 IceProxy::HawkMessages::ControlMoveMessage::__createDelegateM() 00689 { 00690 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::HawkMessages::ControlMoveMessage); 00691 } 00692 00693 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00694 IceProxy::HawkMessages::ControlMoveMessage::__createDelegateD() 00695 { 00696 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::HawkMessages::ControlMoveMessage); 00697 } 00698 00699 ::IceProxy::Ice::Object* 00700 IceProxy::HawkMessages::ControlMoveMessage::__newInstance() const 00701 { 00702 return new ControlMoveMessage; 00703 } 00704 00705 const ::std::string& 00706 IceProxy::HawkMessages::ControlRoomVisionMessage::ice_staticId() 00707 { 00708 return ::HawkMessages::ControlRoomVisionMessage::ice_staticId(); 00709 } 00710 00711 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00712 IceProxy::HawkMessages::ControlRoomVisionMessage::__createDelegateM() 00713 { 00714 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::HawkMessages::ControlRoomVisionMessage); 00715 } 00716 00717 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00718 IceProxy::HawkMessages::ControlRoomVisionMessage::__createDelegateD() 00719 { 00720 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::HawkMessages::ControlRoomVisionMessage); 00721 } 00722 00723 ::IceProxy::Ice::Object* 00724 IceProxy::HawkMessages::ControlRoomVisionMessage::__newInstance() const 00725 { 00726 return new ControlRoomVisionMessage; 00727 } 00728 00729 const ::std::string& 00730 IceProxy::HawkMessages::ControlTakeOffMessage::ice_staticId() 00731 { 00732 return ::HawkMessages::ControlTakeOffMessage::ice_staticId(); 00733 } 00734 00735 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00736 IceProxy::HawkMessages::ControlTakeOffMessage::__createDelegateM() 00737 { 00738 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::HawkMessages::ControlTakeOffMessage); 00739 } 00740 00741 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00742 IceProxy::HawkMessages::ControlTakeOffMessage::__createDelegateD() 00743 { 00744 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::HawkMessages::ControlTakeOffMessage); 00745 } 00746 00747 ::IceProxy::Ice::Object* 00748 IceProxy::HawkMessages::ControlTakeOffMessage::__newInstance() const 00749 { 00750 return new ControlTakeOffMessage; 00751 } 00752 00753 const ::std::string& 00754 IceProxy::HawkMessages::DriveFinderMessage::ice_staticId() 00755 { 00756 return ::HawkMessages::DriveFinderMessage::ice_staticId(); 00757 } 00758 00759 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00760 IceProxy::HawkMessages::DriveFinderMessage::__createDelegateM() 00761 { 00762 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::HawkMessages::DriveFinderMessage); 00763 } 00764 00765 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00766 IceProxy::HawkMessages::DriveFinderMessage::__createDelegateD() 00767 { 00768 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::HawkMessages::DriveFinderMessage); 00769 } 00770 00771 ::IceProxy::Ice::Object* 00772 IceProxy::HawkMessages::DriveFinderMessage::__newInstance() const 00773 { 00774 return new DriveFinderMessage; 00775 } 00776 00777 const ::std::string& 00778 IceProxy::HawkMessages::ExampleMessage::ice_staticId() 00779 { 00780 return ::HawkMessages::ExampleMessage::ice_staticId(); 00781 } 00782 00783 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00784 IceProxy::HawkMessages::ExampleMessage::__createDelegateM() 00785 { 00786 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::HawkMessages::ExampleMessage); 00787 } 00788 00789 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00790 IceProxy::HawkMessages::ExampleMessage::__createDelegateD() 00791 { 00792 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::HawkMessages::ExampleMessage); 00793 } 00794 00795 ::IceProxy::Ice::Object* 00796 IceProxy::HawkMessages::ExampleMessage::__newInstance() const 00797 { 00798 return new ExampleMessage; 00799 } 00800 00801 const ::std::string& 00802 IceProxy::HawkMessages::ExecuteMissionMessage::ice_staticId() 00803 { 00804 return ::HawkMessages::ExecuteMissionMessage::ice_staticId(); 00805 } 00806 00807 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00808 IceProxy::HawkMessages::ExecuteMissionMessage::__createDelegateM() 00809 { 00810 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::HawkMessages::ExecuteMissionMessage); 00811 } 00812 00813 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00814 IceProxy::HawkMessages::ExecuteMissionMessage::__createDelegateD() 00815 { 00816 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::HawkMessages::ExecuteMissionMessage); 00817 } 00818 00819 ::IceProxy::Ice::Object* 00820 IceProxy::HawkMessages::ExecuteMissionMessage::__newInstance() const 00821 { 00822 return new ExecuteMissionMessage; 00823 } 00824 00825 const ::std::string& 00826 IceProxy::HawkMessages::MissionListMessage::ice_staticId() 00827 { 00828 return ::HawkMessages::MissionListMessage::ice_staticId(); 00829 } 00830 00831 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00832 IceProxy::HawkMessages::MissionListMessage::__createDelegateM() 00833 { 00834 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::HawkMessages::MissionListMessage); 00835 } 00836 00837 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00838 IceProxy::HawkMessages::MissionListMessage::__createDelegateD() 00839 { 00840 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::HawkMessages::MissionListMessage); 00841 } 00842 00843 ::IceProxy::Ice::Object* 00844 IceProxy::HawkMessages::MissionListMessage::__newInstance() const 00845 { 00846 return new MissionListMessage; 00847 } 00848 00849 const ::std::string& 00850 IceProxy::HawkMessages::RoomFinderMessage::ice_staticId() 00851 { 00852 return ::HawkMessages::RoomFinderMessage::ice_staticId(); 00853 } 00854 00855 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00856 IceProxy::HawkMessages::RoomFinderMessage::__createDelegateM() 00857 { 00858 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::HawkMessages::RoomFinderMessage); 00859 } 00860 00861 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00862 IceProxy::HawkMessages::RoomFinderMessage::__createDelegateD() 00863 { 00864 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::HawkMessages::RoomFinderMessage); 00865 } 00866 00867 ::IceProxy::Ice::Object* 00868 IceProxy::HawkMessages::RoomFinderMessage::__newInstance() const 00869 { 00870 return new RoomFinderMessage; 00871 } 00872 00873 const ::std::string& 00874 IceProxy::HawkMessages::SensorDataMessage::ice_staticId() 00875 { 00876 return ::HawkMessages::SensorDataMessage::ice_staticId(); 00877 } 00878 00879 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00880 IceProxy::HawkMessages::SensorDataMessage::__createDelegateM() 00881 { 00882 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::HawkMessages::SensorDataMessage); 00883 } 00884 00885 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00886 IceProxy::HawkMessages::SensorDataMessage::__createDelegateD() 00887 { 00888 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::HawkMessages::SensorDataMessage); 00889 } 00890 00891 ::IceProxy::Ice::Object* 00892 IceProxy::HawkMessages::SensorDataMessage::__newInstance() const 00893 { 00894 return new SensorDataMessage; 00895 } 00896 00897 const ::std::string& 00898 IceProxy::HawkMessages::SlamDataMessage::ice_staticId() 00899 { 00900 return ::HawkMessages::SlamDataMessage::ice_staticId(); 00901 } 00902 00903 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00904 IceProxy::HawkMessages::SlamDataMessage::__createDelegateM() 00905 { 00906 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::HawkMessages::SlamDataMessage); 00907 } 00908 00909 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00910 IceProxy::HawkMessages::SlamDataMessage::__createDelegateD() 00911 { 00912 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::HawkMessages::SlamDataMessage); 00913 } 00914 00915 ::IceProxy::Ice::Object* 00916 IceProxy::HawkMessages::SlamDataMessage::__newInstance() const 00917 { 00918 return new SlamDataMessage; 00919 } 00920 00921 void 00922 IceDelegateM::HawkMessages::MessageAgent::catchMessage(const ::HawkMessages::MessagePtr& msg, const ::Ice::Context* __context) 00923 { 00924 ::IceInternal::Outgoing __og(__handler.get(), __HawkMessages__MessageAgent__catchMessage_name, ::Ice::Normal, __context); 00925 try 00926 { 00927 ::IceInternal::BasicStream* __os = __og.os(); 00928 __os->write(::Ice::ObjectPtr(::IceInternal::upCast(msg.get()))); 00929 __os->writePendingObjects(); 00930 } 00931 catch(const ::Ice::LocalException& __ex) 00932 { 00933 __og.abort(__ex); 00934 } 00935 bool __ok = __og.invoke(); 00936 if(!__og.is()->b.empty()) 00937 { 00938 try 00939 { 00940 if(!__ok) 00941 { 00942 try 00943 { 00944 __og.throwUserException(); 00945 } 00946 catch(const ::Ice::UserException& __ex) 00947 { 00948 ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); 00949 throw __uue; 00950 } 00951 } 00952 __og.is()->skipEmptyEncaps(); 00953 } 00954 catch(const ::Ice::LocalException& __ex) 00955 { 00956 throw ::IceInternal::LocalExceptionWrapper(__ex, false); 00957 } 00958 } 00959 } 00960 00961 void 00962 IceDelegateD::HawkMessages::MessageAgent::catchMessage(const ::HawkMessages::MessagePtr& msg, const ::Ice::Context* __context) 00963 { 00964 class _DirectI : public ::IceInternal::Direct 00965 { 00966 public: 00967 00968 _DirectI(const ::HawkMessages::MessagePtr& msg, const ::Ice::Current& __current) : 00969 ::IceInternal::Direct(__current), 00970 _m_msg(msg) 00971 { 00972 } 00973 00974 virtual ::Ice::DispatchStatus 00975 run(::Ice::Object* object) 00976 { 00977 ::HawkMessages::MessageAgent* servant = dynamic_cast< ::HawkMessages::MessageAgent*>(object); 00978 if(!servant) 00979 { 00980 throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); 00981 } 00982 servant->catchMessage(_m_msg, _current); 00983 return ::Ice::DispatchOK; 00984 } 00985 00986 private: 00987 00988 const ::HawkMessages::MessagePtr& _m_msg; 00989 }; 00990 00991 ::Ice::Current __current; 00992 __initCurrent(__current, __HawkMessages__MessageAgent__catchMessage_name, ::Ice::Normal, __context); 00993 try 00994 { 00995 _DirectI __direct(msg, __current); 00996 try 00997 { 00998 __direct.servant()->__collocDispatch(__direct); 00999 } 01000 catch(...) 01001 { 01002 __direct.destroy(); 01003 throw; 01004 } 01005 __direct.destroy(); 01006 } 01007 catch(const ::Ice::SystemException&) 01008 { 01009 throw; 01010 } 01011 catch(const ::IceInternal::LocalExceptionWrapper&) 01012 { 01013 throw; 01014 } 01015 catch(const ::std::exception& __ex) 01016 { 01017 ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); 01018 } 01019 catch(...) 01020 { 01021 throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); 01022 } 01023 } 01024 01025 ::Ice::ObjectPtr 01026 HawkMessages::Message::ice_clone() const 01027 { 01028 ::HawkMessages::MessagePtr __p = new ::HawkMessages::Message(*this); 01029 return __p; 01030 } 01031 01032 static const ::std::string __HawkMessages__Message_ids[2] = 01033 { 01034 "::HawkMessages::Message", 01035 "::Ice::Object" 01036 }; 01037 01038 bool 01039 HawkMessages::Message::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 01040 { 01041 return ::std::binary_search(__HawkMessages__Message_ids, __HawkMessages__Message_ids + 2, _s); 01042 } 01043 01044 ::std::vector< ::std::string> 01045 HawkMessages::Message::ice_ids(const ::Ice::Current&) const 01046 { 01047 return ::std::vector< ::std::string>(&__HawkMessages__Message_ids[0], &__HawkMessages__Message_ids[2]); 01048 } 01049 01050 const ::std::string& 01051 HawkMessages::Message::ice_id(const ::Ice::Current&) const 01052 { 01053 return __HawkMessages__Message_ids[0]; 01054 } 01055 01056 const ::std::string& 01057 HawkMessages::Message::ice_staticId() 01058 { 01059 return __HawkMessages__Message_ids[0]; 01060 } 01061 01062 void 01063 HawkMessages::Message::__write(::IceInternal::BasicStream* __os) const 01064 { 01065 __os->writeTypeId(ice_staticId()); 01066 __os->startWriteSlice(); 01067 __os->endWriteSlice(); 01068 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 01069 Object::__write(__os); 01070 #else 01071 ::Ice::Object::__write(__os); 01072 #endif 01073 } 01074 01075 void 01076 HawkMessages::Message::__read(::IceInternal::BasicStream* __is, bool __rid) 01077 { 01078 if(__rid) 01079 { 01080 ::std::string myId; 01081 __is->readTypeId(myId); 01082 } 01083 __is->startReadSlice(); 01084 __is->endReadSlice(); 01085 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 01086 Object::__read(__is, true); 01087 #else 01088 ::Ice::Object::__read(__is, true); 01089 #endif 01090 } 01091 01092 void 01093 HawkMessages::Message::__write(const ::Ice::OutputStreamPtr&) const 01094 { 01095 Ice::MarshalException ex(__FILE__, __LINE__); 01096 ex.reason = "type HawkMessages::Message was not generated with stream support"; 01097 throw ex; 01098 } 01099 01100 void 01101 HawkMessages::Message::__read(const ::Ice::InputStreamPtr&, bool) 01102 { 01103 Ice::MarshalException ex(__FILE__, __LINE__); 01104 ex.reason = "type HawkMessages::Message was not generated with stream support"; 01105 throw ex; 01106 } 01107 01108 class __F__HawkMessages__Message : public ::Ice::ObjectFactory 01109 { 01110 public: 01111 01112 virtual ::Ice::ObjectPtr 01113 create(const ::std::string& type) 01114 { 01115 assert(type == ::HawkMessages::Message::ice_staticId()); 01116 return new ::HawkMessages::Message; 01117 } 01118 01119 virtual void 01120 destroy() 01121 { 01122 } 01123 }; 01124 01125 static ::Ice::ObjectFactoryPtr __F__HawkMessages__Message_Ptr = new __F__HawkMessages__Message; 01126 01127 const ::Ice::ObjectFactoryPtr& 01128 HawkMessages::Message::ice_factory() 01129 { 01130 return __F__HawkMessages__Message_Ptr; 01131 } 01132 01133 class __F__HawkMessages__Message__Init 01134 { 01135 public: 01136 01137 __F__HawkMessages__Message__Init() 01138 { 01139 ::IceInternal::factoryTable->addObjectFactory(::HawkMessages::Message::ice_staticId(), ::HawkMessages::Message::ice_factory()); 01140 } 01141 01142 ~__F__HawkMessages__Message__Init() 01143 { 01144 ::IceInternal::factoryTable->removeObjectFactory(::HawkMessages::Message::ice_staticId()); 01145 } 01146 }; 01147 01148 static __F__HawkMessages__Message__Init __F__HawkMessages__Message__i; 01149 01150 #ifdef __APPLE__ 01151 extern "C" { void __F__HawkMessages__Message__initializer() {} } 01152 #endif 01153 01154 void 01155 HawkMessages::__patch__MessagePtr(void* __addr, ::Ice::ObjectPtr& v) 01156 { 01157 ::HawkMessages::MessagePtr* p = static_cast< ::HawkMessages::MessagePtr*>(__addr); 01158 assert(p); 01159 *p = ::HawkMessages::MessagePtr::dynamicCast(v); 01160 if(v && !*p) 01161 { 01162 IceInternal::Ex::throwUOE(::HawkMessages::Message::ice_staticId(), v->ice_id()); 01163 } 01164 } 01165 01166 bool 01167 HawkMessages::operator==(const ::HawkMessages::Message& l, const ::HawkMessages::Message& r) 01168 { 01169 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 01170 } 01171 01172 bool 01173 HawkMessages::operator<(const ::HawkMessages::Message& l, const ::HawkMessages::Message& r) 01174 { 01175 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 01176 } 01177 01178 ::Ice::ObjectPtr 01179 HawkMessages::MessageAgent::ice_clone() const 01180 { 01181 throw ::Ice::CloneNotImplementedException(__FILE__, __LINE__); 01182 return 0; // to avoid a warning with some compilers 01183 } 01184 01185 static const ::std::string __HawkMessages__MessageAgent_ids[2] = 01186 { 01187 "::HawkMessages::MessageAgent", 01188 "::Ice::Object" 01189 }; 01190 01191 bool 01192 HawkMessages::MessageAgent::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 01193 { 01194 return ::std::binary_search(__HawkMessages__MessageAgent_ids, __HawkMessages__MessageAgent_ids + 2, _s); 01195 } 01196 01197 ::std::vector< ::std::string> 01198 HawkMessages::MessageAgent::ice_ids(const ::Ice::Current&) const 01199 { 01200 return ::std::vector< ::std::string>(&__HawkMessages__MessageAgent_ids[0], &__HawkMessages__MessageAgent_ids[2]); 01201 } 01202 01203 const ::std::string& 01204 HawkMessages::MessageAgent::ice_id(const ::Ice::Current&) const 01205 { 01206 return __HawkMessages__MessageAgent_ids[0]; 01207 } 01208 01209 const ::std::string& 01210 HawkMessages::MessageAgent::ice_staticId() 01211 { 01212 return __HawkMessages__MessageAgent_ids[0]; 01213 } 01214 01215 ::Ice::DispatchStatus 01216 HawkMessages::MessageAgent::___catchMessage(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) 01217 { 01218 __checkMode(::Ice::Normal, __current.mode); 01219 ::IceInternal::BasicStream* __is = __inS.is(); 01220 __is->startReadEncaps(); 01221 ::HawkMessages::MessagePtr msg; 01222 __is->read(::HawkMessages::__patch__MessagePtr, &msg); 01223 __is->readPendingObjects(); 01224 __is->endReadEncaps(); 01225 catchMessage(msg, __current); 01226 return ::Ice::DispatchOK; 01227 } 01228 01229 static ::std::string __HawkMessages__MessageAgent_all[] = 01230 { 01231 "catchMessage", 01232 "ice_id", 01233 "ice_ids", 01234 "ice_isA", 01235 "ice_ping" 01236 }; 01237 01238 ::Ice::DispatchStatus 01239 HawkMessages::MessageAgent::__dispatch(::IceInternal::Incoming& in, const ::Ice::Current& current) 01240 { 01241 ::std::pair< ::std::string*, ::std::string*> r = ::std::equal_range(__HawkMessages__MessageAgent_all, __HawkMessages__MessageAgent_all + 5, current.operation); 01242 if(r.first == r.second) 01243 { 01244 throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation); 01245 } 01246 01247 switch(r.first - __HawkMessages__MessageAgent_all) 01248 { 01249 case 0: 01250 { 01251 return ___catchMessage(in, current); 01252 } 01253 case 1: 01254 { 01255 return ___ice_id(in, current); 01256 } 01257 case 2: 01258 { 01259 return ___ice_ids(in, current); 01260 } 01261 case 3: 01262 { 01263 return ___ice_isA(in, current); 01264 } 01265 case 4: 01266 { 01267 return ___ice_ping(in, current); 01268 } 01269 } 01270 01271 assert(false); 01272 throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation); 01273 } 01274 01275 void 01276 HawkMessages::MessageAgent::__write(::IceInternal::BasicStream* __os) const 01277 { 01278 __os->writeTypeId(ice_staticId()); 01279 __os->startWriteSlice(); 01280 __os->endWriteSlice(); 01281 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 01282 Object::__write(__os); 01283 #else 01284 ::Ice::Object::__write(__os); 01285 #endif 01286 } 01287 01288 void 01289 HawkMessages::MessageAgent::__read(::IceInternal::BasicStream* __is, bool __rid) 01290 { 01291 if(__rid) 01292 { 01293 ::std::string myId; 01294 __is->readTypeId(myId); 01295 } 01296 __is->startReadSlice(); 01297 __is->endReadSlice(); 01298 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 01299 Object::__read(__is, true); 01300 #else 01301 ::Ice::Object::__read(__is, true); 01302 #endif 01303 } 01304 01305 void 01306 HawkMessages::MessageAgent::__write(const ::Ice::OutputStreamPtr&) const 01307 { 01308 Ice::MarshalException ex(__FILE__, __LINE__); 01309 ex.reason = "type HawkMessages::MessageAgent was not generated with stream support"; 01310 throw ex; 01311 } 01312 01313 void 01314 HawkMessages::MessageAgent::__read(const ::Ice::InputStreamPtr&, bool) 01315 { 01316 Ice::MarshalException ex(__FILE__, __LINE__); 01317 ex.reason = "type HawkMessages::MessageAgent was not generated with stream support"; 01318 throw ex; 01319 } 01320 01321 void 01322 HawkMessages::__patch__MessageAgentPtr(void* __addr, ::Ice::ObjectPtr& v) 01323 { 01324 ::HawkMessages::MessageAgentPtr* p = static_cast< ::HawkMessages::MessageAgentPtr*>(__addr); 01325 assert(p); 01326 *p = ::HawkMessages::MessageAgentPtr::dynamicCast(v); 01327 if(v && !*p) 01328 { 01329 IceInternal::Ex::throwUOE(::HawkMessages::MessageAgent::ice_staticId(), v->ice_id()); 01330 } 01331 } 01332 01333 bool 01334 HawkMessages::operator==(const ::HawkMessages::MessageAgent& l, const ::HawkMessages::MessageAgent& r) 01335 { 01336 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 01337 } 01338 01339 bool 01340 HawkMessages::operator<(const ::HawkMessages::MessageAgent& l, const ::HawkMessages::MessageAgent& r) 01341 { 01342 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 01343 } 01344 01345 HawkMessages::CameraImageMessage::CameraImageMessage(const ::std::string& __ice_cameraID, const ::std::string& __ice_compression, const ::ImageIceMod::ImageIce& __ice_image) : 01346 cameraID(__ice_cameraID), 01347 compression(__ice_compression), 01348 image(__ice_image) 01349 { 01350 } 01351 01352 ::Ice::ObjectPtr 01353 HawkMessages::CameraImageMessage::ice_clone() const 01354 { 01355 ::HawkMessages::CameraImageMessagePtr __p = new ::HawkMessages::CameraImageMessage(*this); 01356 return __p; 01357 } 01358 01359 static const ::std::string __HawkMessages__CameraImageMessage_ids[3] = 01360 { 01361 "::HawkMessages::CameraImageMessage", 01362 "::HawkMessages::Message", 01363 "::Ice::Object" 01364 }; 01365 01366 bool 01367 HawkMessages::CameraImageMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 01368 { 01369 return ::std::binary_search(__HawkMessages__CameraImageMessage_ids, __HawkMessages__CameraImageMessage_ids + 3, _s); 01370 } 01371 01372 ::std::vector< ::std::string> 01373 HawkMessages::CameraImageMessage::ice_ids(const ::Ice::Current&) const 01374 { 01375 return ::std::vector< ::std::string>(&__HawkMessages__CameraImageMessage_ids[0], &__HawkMessages__CameraImageMessage_ids[3]); 01376 } 01377 01378 const ::std::string& 01379 HawkMessages::CameraImageMessage::ice_id(const ::Ice::Current&) const 01380 { 01381 return __HawkMessages__CameraImageMessage_ids[0]; 01382 } 01383 01384 const ::std::string& 01385 HawkMessages::CameraImageMessage::ice_staticId() 01386 { 01387 return __HawkMessages__CameraImageMessage_ids[0]; 01388 } 01389 01390 void 01391 HawkMessages::CameraImageMessage::__write(::IceInternal::BasicStream* __os) const 01392 { 01393 __os->writeTypeId(ice_staticId()); 01394 __os->startWriteSlice(); 01395 __os->write(cameraID); 01396 __os->write(compression); 01397 image.__write(__os); 01398 __os->endWriteSlice(); 01399 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 01400 Message::__write(__os); 01401 #else 01402 ::HawkMessages::Message::__write(__os); 01403 #endif 01404 } 01405 01406 void 01407 HawkMessages::CameraImageMessage::__read(::IceInternal::BasicStream* __is, bool __rid) 01408 { 01409 if(__rid) 01410 { 01411 ::std::string myId; 01412 __is->readTypeId(myId); 01413 } 01414 __is->startReadSlice(); 01415 __is->read(cameraID); 01416 __is->read(compression); 01417 image.__read(__is); 01418 __is->endReadSlice(); 01419 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 01420 Message::__read(__is, true); 01421 #else 01422 ::HawkMessages::Message::__read(__is, true); 01423 #endif 01424 } 01425 01426 void 01427 HawkMessages::CameraImageMessage::__write(const ::Ice::OutputStreamPtr&) const 01428 { 01429 Ice::MarshalException ex(__FILE__, __LINE__); 01430 ex.reason = "type HawkMessages::CameraImageMessage was not generated with stream support"; 01431 throw ex; 01432 } 01433 01434 void 01435 HawkMessages::CameraImageMessage::__read(const ::Ice::InputStreamPtr&, bool) 01436 { 01437 Ice::MarshalException ex(__FILE__, __LINE__); 01438 ex.reason = "type HawkMessages::CameraImageMessage was not generated with stream support"; 01439 throw ex; 01440 } 01441 01442 class __F__HawkMessages__CameraImageMessage : public ::Ice::ObjectFactory 01443 { 01444 public: 01445 01446 virtual ::Ice::ObjectPtr 01447 create(const ::std::string& type) 01448 { 01449 assert(type == ::HawkMessages::CameraImageMessage::ice_staticId()); 01450 return new ::HawkMessages::CameraImageMessage; 01451 } 01452 01453 virtual void 01454 destroy() 01455 { 01456 } 01457 }; 01458 01459 static ::Ice::ObjectFactoryPtr __F__HawkMessages__CameraImageMessage_Ptr = new __F__HawkMessages__CameraImageMessage; 01460 01461 const ::Ice::ObjectFactoryPtr& 01462 HawkMessages::CameraImageMessage::ice_factory() 01463 { 01464 return __F__HawkMessages__CameraImageMessage_Ptr; 01465 } 01466 01467 class __F__HawkMessages__CameraImageMessage__Init 01468 { 01469 public: 01470 01471 __F__HawkMessages__CameraImageMessage__Init() 01472 { 01473 ::IceInternal::factoryTable->addObjectFactory(::HawkMessages::CameraImageMessage::ice_staticId(), ::HawkMessages::CameraImageMessage::ice_factory()); 01474 } 01475 01476 ~__F__HawkMessages__CameraImageMessage__Init() 01477 { 01478 ::IceInternal::factoryTable->removeObjectFactory(::HawkMessages::CameraImageMessage::ice_staticId()); 01479 } 01480 }; 01481 01482 static __F__HawkMessages__CameraImageMessage__Init __F__HawkMessages__CameraImageMessage__i; 01483 01484 #ifdef __APPLE__ 01485 extern "C" { void __F__HawkMessages__CameraImageMessage__initializer() {} } 01486 #endif 01487 01488 void 01489 HawkMessages::__patch__CameraImageMessagePtr(void* __addr, ::Ice::ObjectPtr& v) 01490 { 01491 ::HawkMessages::CameraImageMessagePtr* p = static_cast< ::HawkMessages::CameraImageMessagePtr*>(__addr); 01492 assert(p); 01493 *p = ::HawkMessages::CameraImageMessagePtr::dynamicCast(v); 01494 if(v && !*p) 01495 { 01496 IceInternal::Ex::throwUOE(::HawkMessages::CameraImageMessage::ice_staticId(), v->ice_id()); 01497 } 01498 } 01499 01500 bool 01501 HawkMessages::operator==(const ::HawkMessages::CameraImageMessage& l, const ::HawkMessages::CameraImageMessage& r) 01502 { 01503 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 01504 } 01505 01506 bool 01507 HawkMessages::operator<(const ::HawkMessages::CameraImageMessage& l, const ::HawkMessages::CameraImageMessage& r) 01508 { 01509 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 01510 } 01511 01512 HawkMessages::ControlCameraMessage::ControlCameraMessage(const ::std::string& __ice_cameraID, const ::std::string& __ice_compression, ::Ice::Int __ice_fps, bool __ice_cameraOn) : 01513 cameraID(__ice_cameraID), 01514 compression(__ice_compression), 01515 fps(__ice_fps), 01516 cameraOn(__ice_cameraOn) 01517 { 01518 } 01519 01520 ::Ice::ObjectPtr 01521 HawkMessages::ControlCameraMessage::ice_clone() const 01522 { 01523 ::HawkMessages::ControlCameraMessagePtr __p = new ::HawkMessages::ControlCameraMessage(*this); 01524 return __p; 01525 } 01526 01527 static const ::std::string __HawkMessages__ControlCameraMessage_ids[3] = 01528 { 01529 "::HawkMessages::ControlCameraMessage", 01530 "::HawkMessages::Message", 01531 "::Ice::Object" 01532 }; 01533 01534 bool 01535 HawkMessages::ControlCameraMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 01536 { 01537 return ::std::binary_search(__HawkMessages__ControlCameraMessage_ids, __HawkMessages__ControlCameraMessage_ids + 3, _s); 01538 } 01539 01540 ::std::vector< ::std::string> 01541 HawkMessages::ControlCameraMessage::ice_ids(const ::Ice::Current&) const 01542 { 01543 return ::std::vector< ::std::string>(&__HawkMessages__ControlCameraMessage_ids[0], &__HawkMessages__ControlCameraMessage_ids[3]); 01544 } 01545 01546 const ::std::string& 01547 HawkMessages::ControlCameraMessage::ice_id(const ::Ice::Current&) const 01548 { 01549 return __HawkMessages__ControlCameraMessage_ids[0]; 01550 } 01551 01552 const ::std::string& 01553 HawkMessages::ControlCameraMessage::ice_staticId() 01554 { 01555 return __HawkMessages__ControlCameraMessage_ids[0]; 01556 } 01557 01558 void 01559 HawkMessages::ControlCameraMessage::__write(::IceInternal::BasicStream* __os) const 01560 { 01561 __os->writeTypeId(ice_staticId()); 01562 __os->startWriteSlice(); 01563 __os->write(cameraID); 01564 __os->write(compression); 01565 __os->write(fps); 01566 __os->write(cameraOn); 01567 __os->endWriteSlice(); 01568 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 01569 Message::__write(__os); 01570 #else 01571 ::HawkMessages::Message::__write(__os); 01572 #endif 01573 } 01574 01575 void 01576 HawkMessages::ControlCameraMessage::__read(::IceInternal::BasicStream* __is, bool __rid) 01577 { 01578 if(__rid) 01579 { 01580 ::std::string myId; 01581 __is->readTypeId(myId); 01582 } 01583 __is->startReadSlice(); 01584 __is->read(cameraID); 01585 __is->read(compression); 01586 __is->read(fps); 01587 __is->read(cameraOn); 01588 __is->endReadSlice(); 01589 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 01590 Message::__read(__is, true); 01591 #else 01592 ::HawkMessages::Message::__read(__is, true); 01593 #endif 01594 } 01595 01596 void 01597 HawkMessages::ControlCameraMessage::__write(const ::Ice::OutputStreamPtr&) const 01598 { 01599 Ice::MarshalException ex(__FILE__, __LINE__); 01600 ex.reason = "type HawkMessages::ControlCameraMessage was not generated with stream support"; 01601 throw ex; 01602 } 01603 01604 void 01605 HawkMessages::ControlCameraMessage::__read(const ::Ice::InputStreamPtr&, bool) 01606 { 01607 Ice::MarshalException ex(__FILE__, __LINE__); 01608 ex.reason = "type HawkMessages::ControlCameraMessage was not generated with stream support"; 01609 throw ex; 01610 } 01611 01612 class __F__HawkMessages__ControlCameraMessage : public ::Ice::ObjectFactory 01613 { 01614 public: 01615 01616 virtual ::Ice::ObjectPtr 01617 create(const ::std::string& type) 01618 { 01619 assert(type == ::HawkMessages::ControlCameraMessage::ice_staticId()); 01620 return new ::HawkMessages::ControlCameraMessage; 01621 } 01622 01623 virtual void 01624 destroy() 01625 { 01626 } 01627 }; 01628 01629 static ::Ice::ObjectFactoryPtr __F__HawkMessages__ControlCameraMessage_Ptr = new __F__HawkMessages__ControlCameraMessage; 01630 01631 const ::Ice::ObjectFactoryPtr& 01632 HawkMessages::ControlCameraMessage::ice_factory() 01633 { 01634 return __F__HawkMessages__ControlCameraMessage_Ptr; 01635 } 01636 01637 class __F__HawkMessages__ControlCameraMessage__Init 01638 { 01639 public: 01640 01641 __F__HawkMessages__ControlCameraMessage__Init() 01642 { 01643 ::IceInternal::factoryTable->addObjectFactory(::HawkMessages::ControlCameraMessage::ice_staticId(), ::HawkMessages::ControlCameraMessage::ice_factory()); 01644 } 01645 01646 ~__F__HawkMessages__ControlCameraMessage__Init() 01647 { 01648 ::IceInternal::factoryTable->removeObjectFactory(::HawkMessages::ControlCameraMessage::ice_staticId()); 01649 } 01650 }; 01651 01652 static __F__HawkMessages__ControlCameraMessage__Init __F__HawkMessages__ControlCameraMessage__i; 01653 01654 #ifdef __APPLE__ 01655 extern "C" { void __F__HawkMessages__ControlCameraMessage__initializer() {} } 01656 #endif 01657 01658 void 01659 HawkMessages::__patch__ControlCameraMessagePtr(void* __addr, ::Ice::ObjectPtr& v) 01660 { 01661 ::HawkMessages::ControlCameraMessagePtr* p = static_cast< ::HawkMessages::ControlCameraMessagePtr*>(__addr); 01662 assert(p); 01663 *p = ::HawkMessages::ControlCameraMessagePtr::dynamicCast(v); 01664 if(v && !*p) 01665 { 01666 IceInternal::Ex::throwUOE(::HawkMessages::ControlCameraMessage::ice_staticId(), v->ice_id()); 01667 } 01668 } 01669 01670 bool 01671 HawkMessages::operator==(const ::HawkMessages::ControlCameraMessage& l, const ::HawkMessages::ControlCameraMessage& r) 01672 { 01673 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 01674 } 01675 01676 bool 01677 HawkMessages::operator<(const ::HawkMessages::ControlCameraMessage& l, const ::HawkMessages::ControlCameraMessage& r) 01678 { 01679 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 01680 } 01681 01682 HawkMessages::ControlDriveVisionMessage::ControlDriveVisionMessage(bool __ice_driveVisionOn) : 01683 driveVisionOn(__ice_driveVisionOn) 01684 { 01685 } 01686 01687 ::Ice::ObjectPtr 01688 HawkMessages::ControlDriveVisionMessage::ice_clone() const 01689 { 01690 ::HawkMessages::ControlDriveVisionMessagePtr __p = new ::HawkMessages::ControlDriveVisionMessage(*this); 01691 return __p; 01692 } 01693 01694 static const ::std::string __HawkMessages__ControlDriveVisionMessage_ids[3] = 01695 { 01696 "::HawkMessages::ControlDriveVisionMessage", 01697 "::HawkMessages::Message", 01698 "::Ice::Object" 01699 }; 01700 01701 bool 01702 HawkMessages::ControlDriveVisionMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 01703 { 01704 return ::std::binary_search(__HawkMessages__ControlDriveVisionMessage_ids, __HawkMessages__ControlDriveVisionMessage_ids + 3, _s); 01705 } 01706 01707 ::std::vector< ::std::string> 01708 HawkMessages::ControlDriveVisionMessage::ice_ids(const ::Ice::Current&) const 01709 { 01710 return ::std::vector< ::std::string>(&__HawkMessages__ControlDriveVisionMessage_ids[0], &__HawkMessages__ControlDriveVisionMessage_ids[3]); 01711 } 01712 01713 const ::std::string& 01714 HawkMessages::ControlDriveVisionMessage::ice_id(const ::Ice::Current&) const 01715 { 01716 return __HawkMessages__ControlDriveVisionMessage_ids[0]; 01717 } 01718 01719 const ::std::string& 01720 HawkMessages::ControlDriveVisionMessage::ice_staticId() 01721 { 01722 return __HawkMessages__ControlDriveVisionMessage_ids[0]; 01723 } 01724 01725 void 01726 HawkMessages::ControlDriveVisionMessage::__write(::IceInternal::BasicStream* __os) const 01727 { 01728 __os->writeTypeId(ice_staticId()); 01729 __os->startWriteSlice(); 01730 __os->write(driveVisionOn); 01731 __os->endWriteSlice(); 01732 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 01733 Message::__write(__os); 01734 #else 01735 ::HawkMessages::Message::__write(__os); 01736 #endif 01737 } 01738 01739 void 01740 HawkMessages::ControlDriveVisionMessage::__read(::IceInternal::BasicStream* __is, bool __rid) 01741 { 01742 if(__rid) 01743 { 01744 ::std::string myId; 01745 __is->readTypeId(myId); 01746 } 01747 __is->startReadSlice(); 01748 __is->read(driveVisionOn); 01749 __is->endReadSlice(); 01750 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 01751 Message::__read(__is, true); 01752 #else 01753 ::HawkMessages::Message::__read(__is, true); 01754 #endif 01755 } 01756 01757 void 01758 HawkMessages::ControlDriveVisionMessage::__write(const ::Ice::OutputStreamPtr&) const 01759 { 01760 Ice::MarshalException ex(__FILE__, __LINE__); 01761 ex.reason = "type HawkMessages::ControlDriveVisionMessage was not generated with stream support"; 01762 throw ex; 01763 } 01764 01765 void 01766 HawkMessages::ControlDriveVisionMessage::__read(const ::Ice::InputStreamPtr&, bool) 01767 { 01768 Ice::MarshalException ex(__FILE__, __LINE__); 01769 ex.reason = "type HawkMessages::ControlDriveVisionMessage was not generated with stream support"; 01770 throw ex; 01771 } 01772 01773 class __F__HawkMessages__ControlDriveVisionMessage : public ::Ice::ObjectFactory 01774 { 01775 public: 01776 01777 virtual ::Ice::ObjectPtr 01778 create(const ::std::string& type) 01779 { 01780 assert(type == ::HawkMessages::ControlDriveVisionMessage::ice_staticId()); 01781 return new ::HawkMessages::ControlDriveVisionMessage; 01782 } 01783 01784 virtual void 01785 destroy() 01786 { 01787 } 01788 }; 01789 01790 static ::Ice::ObjectFactoryPtr __F__HawkMessages__ControlDriveVisionMessage_Ptr = new __F__HawkMessages__ControlDriveVisionMessage; 01791 01792 const ::Ice::ObjectFactoryPtr& 01793 HawkMessages::ControlDriveVisionMessage::ice_factory() 01794 { 01795 return __F__HawkMessages__ControlDriveVisionMessage_Ptr; 01796 } 01797 01798 class __F__HawkMessages__ControlDriveVisionMessage__Init 01799 { 01800 public: 01801 01802 __F__HawkMessages__ControlDriveVisionMessage__Init() 01803 { 01804 ::IceInternal::factoryTable->addObjectFactory(::HawkMessages::ControlDriveVisionMessage::ice_staticId(), ::HawkMessages::ControlDriveVisionMessage::ice_factory()); 01805 } 01806 01807 ~__F__HawkMessages__ControlDriveVisionMessage__Init() 01808 { 01809 ::IceInternal::factoryTable->removeObjectFactory(::HawkMessages::ControlDriveVisionMessage::ice_staticId()); 01810 } 01811 }; 01812 01813 static __F__HawkMessages__ControlDriveVisionMessage__Init __F__HawkMessages__ControlDriveVisionMessage__i; 01814 01815 #ifdef __APPLE__ 01816 extern "C" { void __F__HawkMessages__ControlDriveVisionMessage__initializer() {} } 01817 #endif 01818 01819 void 01820 HawkMessages::__patch__ControlDriveVisionMessagePtr(void* __addr, ::Ice::ObjectPtr& v) 01821 { 01822 ::HawkMessages::ControlDriveVisionMessagePtr* p = static_cast< ::HawkMessages::ControlDriveVisionMessagePtr*>(__addr); 01823 assert(p); 01824 *p = ::HawkMessages::ControlDriveVisionMessagePtr::dynamicCast(v); 01825 if(v && !*p) 01826 { 01827 IceInternal::Ex::throwUOE(::HawkMessages::ControlDriveVisionMessage::ice_staticId(), v->ice_id()); 01828 } 01829 } 01830 01831 bool 01832 HawkMessages::operator==(const ::HawkMessages::ControlDriveVisionMessage& l, const ::HawkMessages::ControlDriveVisionMessage& r) 01833 { 01834 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 01835 } 01836 01837 bool 01838 HawkMessages::operator<(const ::HawkMessages::ControlDriveVisionMessage& l, const ::HawkMessages::ControlDriveVisionMessage& r) 01839 { 01840 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 01841 } 01842 01843 ::Ice::ObjectPtr 01844 HawkMessages::ControlLandMessage::ice_clone() const 01845 { 01846 ::HawkMessages::ControlLandMessagePtr __p = new ::HawkMessages::ControlLandMessage(*this); 01847 return __p; 01848 } 01849 01850 static const ::std::string __HawkMessages__ControlLandMessage_ids[3] = 01851 { 01852 "::HawkMessages::ControlLandMessage", 01853 "::HawkMessages::Message", 01854 "::Ice::Object" 01855 }; 01856 01857 bool 01858 HawkMessages::ControlLandMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 01859 { 01860 return ::std::binary_search(__HawkMessages__ControlLandMessage_ids, __HawkMessages__ControlLandMessage_ids + 3, _s); 01861 } 01862 01863 ::std::vector< ::std::string> 01864 HawkMessages::ControlLandMessage::ice_ids(const ::Ice::Current&) const 01865 { 01866 return ::std::vector< ::std::string>(&__HawkMessages__ControlLandMessage_ids[0], &__HawkMessages__ControlLandMessage_ids[3]); 01867 } 01868 01869 const ::std::string& 01870 HawkMessages::ControlLandMessage::ice_id(const ::Ice::Current&) const 01871 { 01872 return __HawkMessages__ControlLandMessage_ids[0]; 01873 } 01874 01875 const ::std::string& 01876 HawkMessages::ControlLandMessage::ice_staticId() 01877 { 01878 return __HawkMessages__ControlLandMessage_ids[0]; 01879 } 01880 01881 void 01882 HawkMessages::ControlLandMessage::__write(::IceInternal::BasicStream* __os) const 01883 { 01884 __os->writeTypeId(ice_staticId()); 01885 __os->startWriteSlice(); 01886 __os->endWriteSlice(); 01887 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 01888 Message::__write(__os); 01889 #else 01890 ::HawkMessages::Message::__write(__os); 01891 #endif 01892 } 01893 01894 void 01895 HawkMessages::ControlLandMessage::__read(::IceInternal::BasicStream* __is, bool __rid) 01896 { 01897 if(__rid) 01898 { 01899 ::std::string myId; 01900 __is->readTypeId(myId); 01901 } 01902 __is->startReadSlice(); 01903 __is->endReadSlice(); 01904 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 01905 Message::__read(__is, true); 01906 #else 01907 ::HawkMessages::Message::__read(__is, true); 01908 #endif 01909 } 01910 01911 void 01912 HawkMessages::ControlLandMessage::__write(const ::Ice::OutputStreamPtr&) const 01913 { 01914 Ice::MarshalException ex(__FILE__, __LINE__); 01915 ex.reason = "type HawkMessages::ControlLandMessage was not generated with stream support"; 01916 throw ex; 01917 } 01918 01919 void 01920 HawkMessages::ControlLandMessage::__read(const ::Ice::InputStreamPtr&, bool) 01921 { 01922 Ice::MarshalException ex(__FILE__, __LINE__); 01923 ex.reason = "type HawkMessages::ControlLandMessage was not generated with stream support"; 01924 throw ex; 01925 } 01926 01927 class __F__HawkMessages__ControlLandMessage : public ::Ice::ObjectFactory 01928 { 01929 public: 01930 01931 virtual ::Ice::ObjectPtr 01932 create(const ::std::string& type) 01933 { 01934 assert(type == ::HawkMessages::ControlLandMessage::ice_staticId()); 01935 return new ::HawkMessages::ControlLandMessage; 01936 } 01937 01938 virtual void 01939 destroy() 01940 { 01941 } 01942 }; 01943 01944 static ::Ice::ObjectFactoryPtr __F__HawkMessages__ControlLandMessage_Ptr = new __F__HawkMessages__ControlLandMessage; 01945 01946 const ::Ice::ObjectFactoryPtr& 01947 HawkMessages::ControlLandMessage::ice_factory() 01948 { 01949 return __F__HawkMessages__ControlLandMessage_Ptr; 01950 } 01951 01952 class __F__HawkMessages__ControlLandMessage__Init 01953 { 01954 public: 01955 01956 __F__HawkMessages__ControlLandMessage__Init() 01957 { 01958 ::IceInternal::factoryTable->addObjectFactory(::HawkMessages::ControlLandMessage::ice_staticId(), ::HawkMessages::ControlLandMessage::ice_factory()); 01959 } 01960 01961 ~__F__HawkMessages__ControlLandMessage__Init() 01962 { 01963 ::IceInternal::factoryTable->removeObjectFactory(::HawkMessages::ControlLandMessage::ice_staticId()); 01964 } 01965 }; 01966 01967 static __F__HawkMessages__ControlLandMessage__Init __F__HawkMessages__ControlLandMessage__i; 01968 01969 #ifdef __APPLE__ 01970 extern "C" { void __F__HawkMessages__ControlLandMessage__initializer() {} } 01971 #endif 01972 01973 void 01974 HawkMessages::__patch__ControlLandMessagePtr(void* __addr, ::Ice::ObjectPtr& v) 01975 { 01976 ::HawkMessages::ControlLandMessagePtr* p = static_cast< ::HawkMessages::ControlLandMessagePtr*>(__addr); 01977 assert(p); 01978 *p = ::HawkMessages::ControlLandMessagePtr::dynamicCast(v); 01979 if(v && !*p) 01980 { 01981 IceInternal::Ex::throwUOE(::HawkMessages::ControlLandMessage::ice_staticId(), v->ice_id()); 01982 } 01983 } 01984 01985 bool 01986 HawkMessages::operator==(const ::HawkMessages::ControlLandMessage& l, const ::HawkMessages::ControlLandMessage& r) 01987 { 01988 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 01989 } 01990 01991 bool 01992 HawkMessages::operator<(const ::HawkMessages::ControlLandMessage& l, const ::HawkMessages::ControlLandMessage& r) 01993 { 01994 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 01995 } 01996 01997 HawkMessages::ControlMoveMessage::ControlMoveMessage(const ::HawkMessages::Pose& __ice_move) : 01998 move(__ice_move) 01999 { 02000 } 02001 02002 ::Ice::ObjectPtr 02003 HawkMessages::ControlMoveMessage::ice_clone() const 02004 { 02005 ::HawkMessages::ControlMoveMessagePtr __p = new ::HawkMessages::ControlMoveMessage(*this); 02006 return __p; 02007 } 02008 02009 static const ::std::string __HawkMessages__ControlMoveMessage_ids[3] = 02010 { 02011 "::HawkMessages::ControlMoveMessage", 02012 "::HawkMessages::Message", 02013 "::Ice::Object" 02014 }; 02015 02016 bool 02017 HawkMessages::ControlMoveMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 02018 { 02019 return ::std::binary_search(__HawkMessages__ControlMoveMessage_ids, __HawkMessages__ControlMoveMessage_ids + 3, _s); 02020 } 02021 02022 ::std::vector< ::std::string> 02023 HawkMessages::ControlMoveMessage::ice_ids(const ::Ice::Current&) const 02024 { 02025 return ::std::vector< ::std::string>(&__HawkMessages__ControlMoveMessage_ids[0], &__HawkMessages__ControlMoveMessage_ids[3]); 02026 } 02027 02028 const ::std::string& 02029 HawkMessages::ControlMoveMessage::ice_id(const ::Ice::Current&) const 02030 { 02031 return __HawkMessages__ControlMoveMessage_ids[0]; 02032 } 02033 02034 const ::std::string& 02035 HawkMessages::ControlMoveMessage::ice_staticId() 02036 { 02037 return __HawkMessages__ControlMoveMessage_ids[0]; 02038 } 02039 02040 void 02041 HawkMessages::ControlMoveMessage::__write(::IceInternal::BasicStream* __os) const 02042 { 02043 __os->writeTypeId(ice_staticId()); 02044 __os->startWriteSlice(); 02045 move.__write(__os); 02046 __os->endWriteSlice(); 02047 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 02048 Message::__write(__os); 02049 #else 02050 ::HawkMessages::Message::__write(__os); 02051 #endif 02052 } 02053 02054 void 02055 HawkMessages::ControlMoveMessage::__read(::IceInternal::BasicStream* __is, bool __rid) 02056 { 02057 if(__rid) 02058 { 02059 ::std::string myId; 02060 __is->readTypeId(myId); 02061 } 02062 __is->startReadSlice(); 02063 move.__read(__is); 02064 __is->endReadSlice(); 02065 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 02066 Message::__read(__is, true); 02067 #else 02068 ::HawkMessages::Message::__read(__is, true); 02069 #endif 02070 } 02071 02072 void 02073 HawkMessages::ControlMoveMessage::__write(const ::Ice::OutputStreamPtr&) const 02074 { 02075 Ice::MarshalException ex(__FILE__, __LINE__); 02076 ex.reason = "type HawkMessages::ControlMoveMessage was not generated with stream support"; 02077 throw ex; 02078 } 02079 02080 void 02081 HawkMessages::ControlMoveMessage::__read(const ::Ice::InputStreamPtr&, bool) 02082 { 02083 Ice::MarshalException ex(__FILE__, __LINE__); 02084 ex.reason = "type HawkMessages::ControlMoveMessage was not generated with stream support"; 02085 throw ex; 02086 } 02087 02088 class __F__HawkMessages__ControlMoveMessage : public ::Ice::ObjectFactory 02089 { 02090 public: 02091 02092 virtual ::Ice::ObjectPtr 02093 create(const ::std::string& type) 02094 { 02095 assert(type == ::HawkMessages::ControlMoveMessage::ice_staticId()); 02096 return new ::HawkMessages::ControlMoveMessage; 02097 } 02098 02099 virtual void 02100 destroy() 02101 { 02102 } 02103 }; 02104 02105 static ::Ice::ObjectFactoryPtr __F__HawkMessages__ControlMoveMessage_Ptr = new __F__HawkMessages__ControlMoveMessage; 02106 02107 const ::Ice::ObjectFactoryPtr& 02108 HawkMessages::ControlMoveMessage::ice_factory() 02109 { 02110 return __F__HawkMessages__ControlMoveMessage_Ptr; 02111 } 02112 02113 class __F__HawkMessages__ControlMoveMessage__Init 02114 { 02115 public: 02116 02117 __F__HawkMessages__ControlMoveMessage__Init() 02118 { 02119 ::IceInternal::factoryTable->addObjectFactory(::HawkMessages::ControlMoveMessage::ice_staticId(), ::HawkMessages::ControlMoveMessage::ice_factory()); 02120 } 02121 02122 ~__F__HawkMessages__ControlMoveMessage__Init() 02123 { 02124 ::IceInternal::factoryTable->removeObjectFactory(::HawkMessages::ControlMoveMessage::ice_staticId()); 02125 } 02126 }; 02127 02128 static __F__HawkMessages__ControlMoveMessage__Init __F__HawkMessages__ControlMoveMessage__i; 02129 02130 #ifdef __APPLE__ 02131 extern "C" { void __F__HawkMessages__ControlMoveMessage__initializer() {} } 02132 #endif 02133 02134 void 02135 HawkMessages::__patch__ControlMoveMessagePtr(void* __addr, ::Ice::ObjectPtr& v) 02136 { 02137 ::HawkMessages::ControlMoveMessagePtr* p = static_cast< ::HawkMessages::ControlMoveMessagePtr*>(__addr); 02138 assert(p); 02139 *p = ::HawkMessages::ControlMoveMessagePtr::dynamicCast(v); 02140 if(v && !*p) 02141 { 02142 IceInternal::Ex::throwUOE(::HawkMessages::ControlMoveMessage::ice_staticId(), v->ice_id()); 02143 } 02144 } 02145 02146 bool 02147 HawkMessages::operator==(const ::HawkMessages::ControlMoveMessage& l, const ::HawkMessages::ControlMoveMessage& r) 02148 { 02149 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 02150 } 02151 02152 bool 02153 HawkMessages::operator<(const ::HawkMessages::ControlMoveMessage& l, const ::HawkMessages::ControlMoveMessage& r) 02154 { 02155 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 02156 } 02157 02158 HawkMessages::ControlRoomVisionMessage::ControlRoomVisionMessage(bool __ice_roomVisionOn) : 02159 roomVisionOn(__ice_roomVisionOn) 02160 { 02161 } 02162 02163 ::Ice::ObjectPtr 02164 HawkMessages::ControlRoomVisionMessage::ice_clone() const 02165 { 02166 ::HawkMessages::ControlRoomVisionMessagePtr __p = new ::HawkMessages::ControlRoomVisionMessage(*this); 02167 return __p; 02168 } 02169 02170 static const ::std::string __HawkMessages__ControlRoomVisionMessage_ids[3] = 02171 { 02172 "::HawkMessages::ControlRoomVisionMessage", 02173 "::HawkMessages::Message", 02174 "::Ice::Object" 02175 }; 02176 02177 bool 02178 HawkMessages::ControlRoomVisionMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 02179 { 02180 return ::std::binary_search(__HawkMessages__ControlRoomVisionMessage_ids, __HawkMessages__ControlRoomVisionMessage_ids + 3, _s); 02181 } 02182 02183 ::std::vector< ::std::string> 02184 HawkMessages::ControlRoomVisionMessage::ice_ids(const ::Ice::Current&) const 02185 { 02186 return ::std::vector< ::std::string>(&__HawkMessages__ControlRoomVisionMessage_ids[0], &__HawkMessages__ControlRoomVisionMessage_ids[3]); 02187 } 02188 02189 const ::std::string& 02190 HawkMessages::ControlRoomVisionMessage::ice_id(const ::Ice::Current&) const 02191 { 02192 return __HawkMessages__ControlRoomVisionMessage_ids[0]; 02193 } 02194 02195 const ::std::string& 02196 HawkMessages::ControlRoomVisionMessage::ice_staticId() 02197 { 02198 return __HawkMessages__ControlRoomVisionMessage_ids[0]; 02199 } 02200 02201 void 02202 HawkMessages::ControlRoomVisionMessage::__write(::IceInternal::BasicStream* __os) const 02203 { 02204 __os->writeTypeId(ice_staticId()); 02205 __os->startWriteSlice(); 02206 __os->write(roomVisionOn); 02207 __os->endWriteSlice(); 02208 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 02209 Message::__write(__os); 02210 #else 02211 ::HawkMessages::Message::__write(__os); 02212 #endif 02213 } 02214 02215 void 02216 HawkMessages::ControlRoomVisionMessage::__read(::IceInternal::BasicStream* __is, bool __rid) 02217 { 02218 if(__rid) 02219 { 02220 ::std::string myId; 02221 __is->readTypeId(myId); 02222 } 02223 __is->startReadSlice(); 02224 __is->read(roomVisionOn); 02225 __is->endReadSlice(); 02226 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 02227 Message::__read(__is, true); 02228 #else 02229 ::HawkMessages::Message::__read(__is, true); 02230 #endif 02231 } 02232 02233 void 02234 HawkMessages::ControlRoomVisionMessage::__write(const ::Ice::OutputStreamPtr&) const 02235 { 02236 Ice::MarshalException ex(__FILE__, __LINE__); 02237 ex.reason = "type HawkMessages::ControlRoomVisionMessage was not generated with stream support"; 02238 throw ex; 02239 } 02240 02241 void 02242 HawkMessages::ControlRoomVisionMessage::__read(const ::Ice::InputStreamPtr&, bool) 02243 { 02244 Ice::MarshalException ex(__FILE__, __LINE__); 02245 ex.reason = "type HawkMessages::ControlRoomVisionMessage was not generated with stream support"; 02246 throw ex; 02247 } 02248 02249 class __F__HawkMessages__ControlRoomVisionMessage : public ::Ice::ObjectFactory 02250 { 02251 public: 02252 02253 virtual ::Ice::ObjectPtr 02254 create(const ::std::string& type) 02255 { 02256 assert(type == ::HawkMessages::ControlRoomVisionMessage::ice_staticId()); 02257 return new ::HawkMessages::ControlRoomVisionMessage; 02258 } 02259 02260 virtual void 02261 destroy() 02262 { 02263 } 02264 }; 02265 02266 static ::Ice::ObjectFactoryPtr __F__HawkMessages__ControlRoomVisionMessage_Ptr = new __F__HawkMessages__ControlRoomVisionMessage; 02267 02268 const ::Ice::ObjectFactoryPtr& 02269 HawkMessages::ControlRoomVisionMessage::ice_factory() 02270 { 02271 return __F__HawkMessages__ControlRoomVisionMessage_Ptr; 02272 } 02273 02274 class __F__HawkMessages__ControlRoomVisionMessage__Init 02275 { 02276 public: 02277 02278 __F__HawkMessages__ControlRoomVisionMessage__Init() 02279 { 02280 ::IceInternal::factoryTable->addObjectFactory(::HawkMessages::ControlRoomVisionMessage::ice_staticId(), ::HawkMessages::ControlRoomVisionMessage::ice_factory()); 02281 } 02282 02283 ~__F__HawkMessages__ControlRoomVisionMessage__Init() 02284 { 02285 ::IceInternal::factoryTable->removeObjectFactory(::HawkMessages::ControlRoomVisionMessage::ice_staticId()); 02286 } 02287 }; 02288 02289 static __F__HawkMessages__ControlRoomVisionMessage__Init __F__HawkMessages__ControlRoomVisionMessage__i; 02290 02291 #ifdef __APPLE__ 02292 extern "C" { void __F__HawkMessages__ControlRoomVisionMessage__initializer() {} } 02293 #endif 02294 02295 void 02296 HawkMessages::__patch__ControlRoomVisionMessagePtr(void* __addr, ::Ice::ObjectPtr& v) 02297 { 02298 ::HawkMessages::ControlRoomVisionMessagePtr* p = static_cast< ::HawkMessages::ControlRoomVisionMessagePtr*>(__addr); 02299 assert(p); 02300 *p = ::HawkMessages::ControlRoomVisionMessagePtr::dynamicCast(v); 02301 if(v && !*p) 02302 { 02303 IceInternal::Ex::throwUOE(::HawkMessages::ControlRoomVisionMessage::ice_staticId(), v->ice_id()); 02304 } 02305 } 02306 02307 bool 02308 HawkMessages::operator==(const ::HawkMessages::ControlRoomVisionMessage& l, const ::HawkMessages::ControlRoomVisionMessage& r) 02309 { 02310 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 02311 } 02312 02313 bool 02314 HawkMessages::operator<(const ::HawkMessages::ControlRoomVisionMessage& l, const ::HawkMessages::ControlRoomVisionMessage& r) 02315 { 02316 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 02317 } 02318 02319 HawkMessages::ControlTakeOffMessage::ControlTakeOffMessage(::Ice::Double __ice_altitude) : 02320 altitude(__ice_altitude) 02321 { 02322 } 02323 02324 ::Ice::ObjectPtr 02325 HawkMessages::ControlTakeOffMessage::ice_clone() const 02326 { 02327 ::HawkMessages::ControlTakeOffMessagePtr __p = new ::HawkMessages::ControlTakeOffMessage(*this); 02328 return __p; 02329 } 02330 02331 static const ::std::string __HawkMessages__ControlTakeOffMessage_ids[3] = 02332 { 02333 "::HawkMessages::ControlTakeOffMessage", 02334 "::HawkMessages::Message", 02335 "::Ice::Object" 02336 }; 02337 02338 bool 02339 HawkMessages::ControlTakeOffMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 02340 { 02341 return ::std::binary_search(__HawkMessages__ControlTakeOffMessage_ids, __HawkMessages__ControlTakeOffMessage_ids + 3, _s); 02342 } 02343 02344 ::std::vector< ::std::string> 02345 HawkMessages::ControlTakeOffMessage::ice_ids(const ::Ice::Current&) const 02346 { 02347 return ::std::vector< ::std::string>(&__HawkMessages__ControlTakeOffMessage_ids[0], &__HawkMessages__ControlTakeOffMessage_ids[3]); 02348 } 02349 02350 const ::std::string& 02351 HawkMessages::ControlTakeOffMessage::ice_id(const ::Ice::Current&) const 02352 { 02353 return __HawkMessages__ControlTakeOffMessage_ids[0]; 02354 } 02355 02356 const ::std::string& 02357 HawkMessages::ControlTakeOffMessage::ice_staticId() 02358 { 02359 return __HawkMessages__ControlTakeOffMessage_ids[0]; 02360 } 02361 02362 void 02363 HawkMessages::ControlTakeOffMessage::__write(::IceInternal::BasicStream* __os) const 02364 { 02365 __os->writeTypeId(ice_staticId()); 02366 __os->startWriteSlice(); 02367 __os->write(altitude); 02368 __os->endWriteSlice(); 02369 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 02370 Message::__write(__os); 02371 #else 02372 ::HawkMessages::Message::__write(__os); 02373 #endif 02374 } 02375 02376 void 02377 HawkMessages::ControlTakeOffMessage::__read(::IceInternal::BasicStream* __is, bool __rid) 02378 { 02379 if(__rid) 02380 { 02381 ::std::string myId; 02382 __is->readTypeId(myId); 02383 } 02384 __is->startReadSlice(); 02385 __is->read(altitude); 02386 __is->endReadSlice(); 02387 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 02388 Message::__read(__is, true); 02389 #else 02390 ::HawkMessages::Message::__read(__is, true); 02391 #endif 02392 } 02393 02394 void 02395 HawkMessages::ControlTakeOffMessage::__write(const ::Ice::OutputStreamPtr&) const 02396 { 02397 Ice::MarshalException ex(__FILE__, __LINE__); 02398 ex.reason = "type HawkMessages::ControlTakeOffMessage was not generated with stream support"; 02399 throw ex; 02400 } 02401 02402 void 02403 HawkMessages::ControlTakeOffMessage::__read(const ::Ice::InputStreamPtr&, bool) 02404 { 02405 Ice::MarshalException ex(__FILE__, __LINE__); 02406 ex.reason = "type HawkMessages::ControlTakeOffMessage was not generated with stream support"; 02407 throw ex; 02408 } 02409 02410 class __F__HawkMessages__ControlTakeOffMessage : public ::Ice::ObjectFactory 02411 { 02412 public: 02413 02414 virtual ::Ice::ObjectPtr 02415 create(const ::std::string& type) 02416 { 02417 assert(type == ::HawkMessages::ControlTakeOffMessage::ice_staticId()); 02418 return new ::HawkMessages::ControlTakeOffMessage; 02419 } 02420 02421 virtual void 02422 destroy() 02423 { 02424 } 02425 }; 02426 02427 static ::Ice::ObjectFactoryPtr __F__HawkMessages__ControlTakeOffMessage_Ptr = new __F__HawkMessages__ControlTakeOffMessage; 02428 02429 const ::Ice::ObjectFactoryPtr& 02430 HawkMessages::ControlTakeOffMessage::ice_factory() 02431 { 02432 return __F__HawkMessages__ControlTakeOffMessage_Ptr; 02433 } 02434 02435 class __F__HawkMessages__ControlTakeOffMessage__Init 02436 { 02437 public: 02438 02439 __F__HawkMessages__ControlTakeOffMessage__Init() 02440 { 02441 ::IceInternal::factoryTable->addObjectFactory(::HawkMessages::ControlTakeOffMessage::ice_staticId(), ::HawkMessages::ControlTakeOffMessage::ice_factory()); 02442 } 02443 02444 ~__F__HawkMessages__ControlTakeOffMessage__Init() 02445 { 02446 ::IceInternal::factoryTable->removeObjectFactory(::HawkMessages::ControlTakeOffMessage::ice_staticId()); 02447 } 02448 }; 02449 02450 static __F__HawkMessages__ControlTakeOffMessage__Init __F__HawkMessages__ControlTakeOffMessage__i; 02451 02452 #ifdef __APPLE__ 02453 extern "C" { void __F__HawkMessages__ControlTakeOffMessage__initializer() {} } 02454 #endif 02455 02456 void 02457 HawkMessages::__patch__ControlTakeOffMessagePtr(void* __addr, ::Ice::ObjectPtr& v) 02458 { 02459 ::HawkMessages::ControlTakeOffMessagePtr* p = static_cast< ::HawkMessages::ControlTakeOffMessagePtr*>(__addr); 02460 assert(p); 02461 *p = ::HawkMessages::ControlTakeOffMessagePtr::dynamicCast(v); 02462 if(v && !*p) 02463 { 02464 IceInternal::Ex::throwUOE(::HawkMessages::ControlTakeOffMessage::ice_staticId(), v->ice_id()); 02465 } 02466 } 02467 02468 bool 02469 HawkMessages::operator==(const ::HawkMessages::ControlTakeOffMessage& l, const ::HawkMessages::ControlTakeOffMessage& r) 02470 { 02471 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 02472 } 02473 02474 bool 02475 HawkMessages::operator<(const ::HawkMessages::ControlTakeOffMessage& l, const ::HawkMessages::ControlTakeOffMessage& r) 02476 { 02477 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 02478 } 02479 02480 HawkMessages::DriveFinderMessage::DriveFinderMessage(bool __ice_driveFound, const ::HawkMessages::Pose& __ice_drivePose) : 02481 driveFound(__ice_driveFound), 02482 drivePose(__ice_drivePose) 02483 { 02484 } 02485 02486 ::Ice::ObjectPtr 02487 HawkMessages::DriveFinderMessage::ice_clone() const 02488 { 02489 ::HawkMessages::DriveFinderMessagePtr __p = new ::HawkMessages::DriveFinderMessage(*this); 02490 return __p; 02491 } 02492 02493 static const ::std::string __HawkMessages__DriveFinderMessage_ids[3] = 02494 { 02495 "::HawkMessages::DriveFinderMessage", 02496 "::HawkMessages::Message", 02497 "::Ice::Object" 02498 }; 02499 02500 bool 02501 HawkMessages::DriveFinderMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 02502 { 02503 return ::std::binary_search(__HawkMessages__DriveFinderMessage_ids, __HawkMessages__DriveFinderMessage_ids + 3, _s); 02504 } 02505 02506 ::std::vector< ::std::string> 02507 HawkMessages::DriveFinderMessage::ice_ids(const ::Ice::Current&) const 02508 { 02509 return ::std::vector< ::std::string>(&__HawkMessages__DriveFinderMessage_ids[0], &__HawkMessages__DriveFinderMessage_ids[3]); 02510 } 02511 02512 const ::std::string& 02513 HawkMessages::DriveFinderMessage::ice_id(const ::Ice::Current&) const 02514 { 02515 return __HawkMessages__DriveFinderMessage_ids[0]; 02516 } 02517 02518 const ::std::string& 02519 HawkMessages::DriveFinderMessage::ice_staticId() 02520 { 02521 return __HawkMessages__DriveFinderMessage_ids[0]; 02522 } 02523 02524 void 02525 HawkMessages::DriveFinderMessage::__write(::IceInternal::BasicStream* __os) const 02526 { 02527 __os->writeTypeId(ice_staticId()); 02528 __os->startWriteSlice(); 02529 __os->write(driveFound); 02530 drivePose.__write(__os); 02531 __os->endWriteSlice(); 02532 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 02533 Message::__write(__os); 02534 #else 02535 ::HawkMessages::Message::__write(__os); 02536 #endif 02537 } 02538 02539 void 02540 HawkMessages::DriveFinderMessage::__read(::IceInternal::BasicStream* __is, bool __rid) 02541 { 02542 if(__rid) 02543 { 02544 ::std::string myId; 02545 __is->readTypeId(myId); 02546 } 02547 __is->startReadSlice(); 02548 __is->read(driveFound); 02549 drivePose.__read(__is); 02550 __is->endReadSlice(); 02551 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 02552 Message::__read(__is, true); 02553 #else 02554 ::HawkMessages::Message::__read(__is, true); 02555 #endif 02556 } 02557 02558 void 02559 HawkMessages::DriveFinderMessage::__write(const ::Ice::OutputStreamPtr&) const 02560 { 02561 Ice::MarshalException ex(__FILE__, __LINE__); 02562 ex.reason = "type HawkMessages::DriveFinderMessage was not generated with stream support"; 02563 throw ex; 02564 } 02565 02566 void 02567 HawkMessages::DriveFinderMessage::__read(const ::Ice::InputStreamPtr&, bool) 02568 { 02569 Ice::MarshalException ex(__FILE__, __LINE__); 02570 ex.reason = "type HawkMessages::DriveFinderMessage was not generated with stream support"; 02571 throw ex; 02572 } 02573 02574 class __F__HawkMessages__DriveFinderMessage : public ::Ice::ObjectFactory 02575 { 02576 public: 02577 02578 virtual ::Ice::ObjectPtr 02579 create(const ::std::string& type) 02580 { 02581 assert(type == ::HawkMessages::DriveFinderMessage::ice_staticId()); 02582 return new ::HawkMessages::DriveFinderMessage; 02583 } 02584 02585 virtual void 02586 destroy() 02587 { 02588 } 02589 }; 02590 02591 static ::Ice::ObjectFactoryPtr __F__HawkMessages__DriveFinderMessage_Ptr = new __F__HawkMessages__DriveFinderMessage; 02592 02593 const ::Ice::ObjectFactoryPtr& 02594 HawkMessages::DriveFinderMessage::ice_factory() 02595 { 02596 return __F__HawkMessages__DriveFinderMessage_Ptr; 02597 } 02598 02599 class __F__HawkMessages__DriveFinderMessage__Init 02600 { 02601 public: 02602 02603 __F__HawkMessages__DriveFinderMessage__Init() 02604 { 02605 ::IceInternal::factoryTable->addObjectFactory(::HawkMessages::DriveFinderMessage::ice_staticId(), ::HawkMessages::DriveFinderMessage::ice_factory()); 02606 } 02607 02608 ~__F__HawkMessages__DriveFinderMessage__Init() 02609 { 02610 ::IceInternal::factoryTable->removeObjectFactory(::HawkMessages::DriveFinderMessage::ice_staticId()); 02611 } 02612 }; 02613 02614 static __F__HawkMessages__DriveFinderMessage__Init __F__HawkMessages__DriveFinderMessage__i; 02615 02616 #ifdef __APPLE__ 02617 extern "C" { void __F__HawkMessages__DriveFinderMessage__initializer() {} } 02618 #endif 02619 02620 void 02621 HawkMessages::__patch__DriveFinderMessagePtr(void* __addr, ::Ice::ObjectPtr& v) 02622 { 02623 ::HawkMessages::DriveFinderMessagePtr* p = static_cast< ::HawkMessages::DriveFinderMessagePtr*>(__addr); 02624 assert(p); 02625 *p = ::HawkMessages::DriveFinderMessagePtr::dynamicCast(v); 02626 if(v && !*p) 02627 { 02628 IceInternal::Ex::throwUOE(::HawkMessages::DriveFinderMessage::ice_staticId(), v->ice_id()); 02629 } 02630 } 02631 02632 bool 02633 HawkMessages::operator==(const ::HawkMessages::DriveFinderMessage& l, const ::HawkMessages::DriveFinderMessage& r) 02634 { 02635 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 02636 } 02637 02638 bool 02639 HawkMessages::operator<(const ::HawkMessages::DriveFinderMessage& l, const ::HawkMessages::DriveFinderMessage& r) 02640 { 02641 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 02642 } 02643 02644 HawkMessages::ExampleMessage::ExampleMessage(const ::std::string& __ice_name, const ::std::string& __ice_chatter) : 02645 name(__ice_name), 02646 chatter(__ice_chatter) 02647 { 02648 } 02649 02650 ::Ice::ObjectPtr 02651 HawkMessages::ExampleMessage::ice_clone() const 02652 { 02653 ::HawkMessages::ExampleMessagePtr __p = new ::HawkMessages::ExampleMessage(*this); 02654 return __p; 02655 } 02656 02657 static const ::std::string __HawkMessages__ExampleMessage_ids[3] = 02658 { 02659 "::HawkMessages::ExampleMessage", 02660 "::HawkMessages::Message", 02661 "::Ice::Object" 02662 }; 02663 02664 bool 02665 HawkMessages::ExampleMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 02666 { 02667 return ::std::binary_search(__HawkMessages__ExampleMessage_ids, __HawkMessages__ExampleMessage_ids + 3, _s); 02668 } 02669 02670 ::std::vector< ::std::string> 02671 HawkMessages::ExampleMessage::ice_ids(const ::Ice::Current&) const 02672 { 02673 return ::std::vector< ::std::string>(&__HawkMessages__ExampleMessage_ids[0], &__HawkMessages__ExampleMessage_ids[3]); 02674 } 02675 02676 const ::std::string& 02677 HawkMessages::ExampleMessage::ice_id(const ::Ice::Current&) const 02678 { 02679 return __HawkMessages__ExampleMessage_ids[0]; 02680 } 02681 02682 const ::std::string& 02683 HawkMessages::ExampleMessage::ice_staticId() 02684 { 02685 return __HawkMessages__ExampleMessage_ids[0]; 02686 } 02687 02688 void 02689 HawkMessages::ExampleMessage::__write(::IceInternal::BasicStream* __os) const 02690 { 02691 __os->writeTypeId(ice_staticId()); 02692 __os->startWriteSlice(); 02693 __os->write(name); 02694 __os->write(chatter); 02695 __os->endWriteSlice(); 02696 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 02697 Message::__write(__os); 02698 #else 02699 ::HawkMessages::Message::__write(__os); 02700 #endif 02701 } 02702 02703 void 02704 HawkMessages::ExampleMessage::__read(::IceInternal::BasicStream* __is, bool __rid) 02705 { 02706 if(__rid) 02707 { 02708 ::std::string myId; 02709 __is->readTypeId(myId); 02710 } 02711 __is->startReadSlice(); 02712 __is->read(name); 02713 __is->read(chatter); 02714 __is->endReadSlice(); 02715 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 02716 Message::__read(__is, true); 02717 #else 02718 ::HawkMessages::Message::__read(__is, true); 02719 #endif 02720 } 02721 02722 void 02723 HawkMessages::ExampleMessage::__write(const ::Ice::OutputStreamPtr&) const 02724 { 02725 Ice::MarshalException ex(__FILE__, __LINE__); 02726 ex.reason = "type HawkMessages::ExampleMessage was not generated with stream support"; 02727 throw ex; 02728 } 02729 02730 void 02731 HawkMessages::ExampleMessage::__read(const ::Ice::InputStreamPtr&, bool) 02732 { 02733 Ice::MarshalException ex(__FILE__, __LINE__); 02734 ex.reason = "type HawkMessages::ExampleMessage was not generated with stream support"; 02735 throw ex; 02736 } 02737 02738 class __F__HawkMessages__ExampleMessage : public ::Ice::ObjectFactory 02739 { 02740 public: 02741 02742 virtual ::Ice::ObjectPtr 02743 create(const ::std::string& type) 02744 { 02745 assert(type == ::HawkMessages::ExampleMessage::ice_staticId()); 02746 return new ::HawkMessages::ExampleMessage; 02747 } 02748 02749 virtual void 02750 destroy() 02751 { 02752 } 02753 }; 02754 02755 static ::Ice::ObjectFactoryPtr __F__HawkMessages__ExampleMessage_Ptr = new __F__HawkMessages__ExampleMessage; 02756 02757 const ::Ice::ObjectFactoryPtr& 02758 HawkMessages::ExampleMessage::ice_factory() 02759 { 02760 return __F__HawkMessages__ExampleMessage_Ptr; 02761 } 02762 02763 class __F__HawkMessages__ExampleMessage__Init 02764 { 02765 public: 02766 02767 __F__HawkMessages__ExampleMessage__Init() 02768 { 02769 ::IceInternal::factoryTable->addObjectFactory(::HawkMessages::ExampleMessage::ice_staticId(), ::HawkMessages::ExampleMessage::ice_factory()); 02770 } 02771 02772 ~__F__HawkMessages__ExampleMessage__Init() 02773 { 02774 ::IceInternal::factoryTable->removeObjectFactory(::HawkMessages::ExampleMessage::ice_staticId()); 02775 } 02776 }; 02777 02778 static __F__HawkMessages__ExampleMessage__Init __F__HawkMessages__ExampleMessage__i; 02779 02780 #ifdef __APPLE__ 02781 extern "C" { void __F__HawkMessages__ExampleMessage__initializer() {} } 02782 #endif 02783 02784 void 02785 HawkMessages::__patch__ExampleMessagePtr(void* __addr, ::Ice::ObjectPtr& v) 02786 { 02787 ::HawkMessages::ExampleMessagePtr* p = static_cast< ::HawkMessages::ExampleMessagePtr*>(__addr); 02788 assert(p); 02789 *p = ::HawkMessages::ExampleMessagePtr::dynamicCast(v); 02790 if(v && !*p) 02791 { 02792 IceInternal::Ex::throwUOE(::HawkMessages::ExampleMessage::ice_staticId(), v->ice_id()); 02793 } 02794 } 02795 02796 bool 02797 HawkMessages::operator==(const ::HawkMessages::ExampleMessage& l, const ::HawkMessages::ExampleMessage& r) 02798 { 02799 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 02800 } 02801 02802 bool 02803 HawkMessages::operator<(const ::HawkMessages::ExampleMessage& l, const ::HawkMessages::ExampleMessage& r) 02804 { 02805 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 02806 } 02807 02808 HawkMessages::ExecuteMissionMessage::ExecuteMissionMessage(const ::std::string& __ice_mission) : 02809 mission(__ice_mission) 02810 { 02811 } 02812 02813 ::Ice::ObjectPtr 02814 HawkMessages::ExecuteMissionMessage::ice_clone() const 02815 { 02816 ::HawkMessages::ExecuteMissionMessagePtr __p = new ::HawkMessages::ExecuteMissionMessage(*this); 02817 return __p; 02818 } 02819 02820 static const ::std::string __HawkMessages__ExecuteMissionMessage_ids[3] = 02821 { 02822 "::HawkMessages::ExecuteMissionMessage", 02823 "::HawkMessages::Message", 02824 "::Ice::Object" 02825 }; 02826 02827 bool 02828 HawkMessages::ExecuteMissionMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 02829 { 02830 return ::std::binary_search(__HawkMessages__ExecuteMissionMessage_ids, __HawkMessages__ExecuteMissionMessage_ids + 3, _s); 02831 } 02832 02833 ::std::vector< ::std::string> 02834 HawkMessages::ExecuteMissionMessage::ice_ids(const ::Ice::Current&) const 02835 { 02836 return ::std::vector< ::std::string>(&__HawkMessages__ExecuteMissionMessage_ids[0], &__HawkMessages__ExecuteMissionMessage_ids[3]); 02837 } 02838 02839 const ::std::string& 02840 HawkMessages::ExecuteMissionMessage::ice_id(const ::Ice::Current&) const 02841 { 02842 return __HawkMessages__ExecuteMissionMessage_ids[0]; 02843 } 02844 02845 const ::std::string& 02846 HawkMessages::ExecuteMissionMessage::ice_staticId() 02847 { 02848 return __HawkMessages__ExecuteMissionMessage_ids[0]; 02849 } 02850 02851 void 02852 HawkMessages::ExecuteMissionMessage::__write(::IceInternal::BasicStream* __os) const 02853 { 02854 __os->writeTypeId(ice_staticId()); 02855 __os->startWriteSlice(); 02856 __os->write(mission); 02857 __os->endWriteSlice(); 02858 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 02859 Message::__write(__os); 02860 #else 02861 ::HawkMessages::Message::__write(__os); 02862 #endif 02863 } 02864 02865 void 02866 HawkMessages::ExecuteMissionMessage::__read(::IceInternal::BasicStream* __is, bool __rid) 02867 { 02868 if(__rid) 02869 { 02870 ::std::string myId; 02871 __is->readTypeId(myId); 02872 } 02873 __is->startReadSlice(); 02874 __is->read(mission); 02875 __is->endReadSlice(); 02876 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 02877 Message::__read(__is, true); 02878 #else 02879 ::HawkMessages::Message::__read(__is, true); 02880 #endif 02881 } 02882 02883 void 02884 HawkMessages::ExecuteMissionMessage::__write(const ::Ice::OutputStreamPtr&) const 02885 { 02886 Ice::MarshalException ex(__FILE__, __LINE__); 02887 ex.reason = "type HawkMessages::ExecuteMissionMessage was not generated with stream support"; 02888 throw ex; 02889 } 02890 02891 void 02892 HawkMessages::ExecuteMissionMessage::__read(const ::Ice::InputStreamPtr&, bool) 02893 { 02894 Ice::MarshalException ex(__FILE__, __LINE__); 02895 ex.reason = "type HawkMessages::ExecuteMissionMessage was not generated with stream support"; 02896 throw ex; 02897 } 02898 02899 class __F__HawkMessages__ExecuteMissionMessage : public ::Ice::ObjectFactory 02900 { 02901 public: 02902 02903 virtual ::Ice::ObjectPtr 02904 create(const ::std::string& type) 02905 { 02906 assert(type == ::HawkMessages::ExecuteMissionMessage::ice_staticId()); 02907 return new ::HawkMessages::ExecuteMissionMessage; 02908 } 02909 02910 virtual void 02911 destroy() 02912 { 02913 } 02914 }; 02915 02916 static ::Ice::ObjectFactoryPtr __F__HawkMessages__ExecuteMissionMessage_Ptr = new __F__HawkMessages__ExecuteMissionMessage; 02917 02918 const ::Ice::ObjectFactoryPtr& 02919 HawkMessages::ExecuteMissionMessage::ice_factory() 02920 { 02921 return __F__HawkMessages__ExecuteMissionMessage_Ptr; 02922 } 02923 02924 class __F__HawkMessages__ExecuteMissionMessage__Init 02925 { 02926 public: 02927 02928 __F__HawkMessages__ExecuteMissionMessage__Init() 02929 { 02930 ::IceInternal::factoryTable->addObjectFactory(::HawkMessages::ExecuteMissionMessage::ice_staticId(), ::HawkMessages::ExecuteMissionMessage::ice_factory()); 02931 } 02932 02933 ~__F__HawkMessages__ExecuteMissionMessage__Init() 02934 { 02935 ::IceInternal::factoryTable->removeObjectFactory(::HawkMessages::ExecuteMissionMessage::ice_staticId()); 02936 } 02937 }; 02938 02939 static __F__HawkMessages__ExecuteMissionMessage__Init __F__HawkMessages__ExecuteMissionMessage__i; 02940 02941 #ifdef __APPLE__ 02942 extern "C" { void __F__HawkMessages__ExecuteMissionMessage__initializer() {} } 02943 #endif 02944 02945 void 02946 HawkMessages::__patch__ExecuteMissionMessagePtr(void* __addr, ::Ice::ObjectPtr& v) 02947 { 02948 ::HawkMessages::ExecuteMissionMessagePtr* p = static_cast< ::HawkMessages::ExecuteMissionMessagePtr*>(__addr); 02949 assert(p); 02950 *p = ::HawkMessages::ExecuteMissionMessagePtr::dynamicCast(v); 02951 if(v && !*p) 02952 { 02953 IceInternal::Ex::throwUOE(::HawkMessages::ExecuteMissionMessage::ice_staticId(), v->ice_id()); 02954 } 02955 } 02956 02957 bool 02958 HawkMessages::operator==(const ::HawkMessages::ExecuteMissionMessage& l, const ::HawkMessages::ExecuteMissionMessage& r) 02959 { 02960 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 02961 } 02962 02963 bool 02964 HawkMessages::operator<(const ::HawkMessages::ExecuteMissionMessage& l, const ::HawkMessages::ExecuteMissionMessage& r) 02965 { 02966 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 02967 } 02968 02969 HawkMessages::MissionListMessage::MissionListMessage(const ::HawkMessages::StringSeq& __ice_missions) : 02970 missions(__ice_missions) 02971 { 02972 } 02973 02974 ::Ice::ObjectPtr 02975 HawkMessages::MissionListMessage::ice_clone() const 02976 { 02977 ::HawkMessages::MissionListMessagePtr __p = new ::HawkMessages::MissionListMessage(*this); 02978 return __p; 02979 } 02980 02981 static const ::std::string __HawkMessages__MissionListMessage_ids[3] = 02982 { 02983 "::HawkMessages::Message", 02984 "::HawkMessages::MissionListMessage", 02985 "::Ice::Object" 02986 }; 02987 02988 bool 02989 HawkMessages::MissionListMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 02990 { 02991 return ::std::binary_search(__HawkMessages__MissionListMessage_ids, __HawkMessages__MissionListMessage_ids + 3, _s); 02992 } 02993 02994 ::std::vector< ::std::string> 02995 HawkMessages::MissionListMessage::ice_ids(const ::Ice::Current&) const 02996 { 02997 return ::std::vector< ::std::string>(&__HawkMessages__MissionListMessage_ids[0], &__HawkMessages__MissionListMessage_ids[3]); 02998 } 02999 03000 const ::std::string& 03001 HawkMessages::MissionListMessage::ice_id(const ::Ice::Current&) const 03002 { 03003 return __HawkMessages__MissionListMessage_ids[1]; 03004 } 03005 03006 const ::std::string& 03007 HawkMessages::MissionListMessage::ice_staticId() 03008 { 03009 return __HawkMessages__MissionListMessage_ids[1]; 03010 } 03011 03012 void 03013 HawkMessages::MissionListMessage::__write(::IceInternal::BasicStream* __os) const 03014 { 03015 __os->writeTypeId(ice_staticId()); 03016 __os->startWriteSlice(); 03017 if(missions.size() == 0) 03018 { 03019 __os->writeSize(0); 03020 } 03021 else 03022 { 03023 __os->write(&missions[0], &missions[0] + missions.size()); 03024 } 03025 __os->endWriteSlice(); 03026 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 03027 Message::__write(__os); 03028 #else 03029 ::HawkMessages::Message::__write(__os); 03030 #endif 03031 } 03032 03033 void 03034 HawkMessages::MissionListMessage::__read(::IceInternal::BasicStream* __is, bool __rid) 03035 { 03036 if(__rid) 03037 { 03038 ::std::string myId; 03039 __is->readTypeId(myId); 03040 } 03041 __is->startReadSlice(); 03042 __is->read(missions); 03043 __is->endReadSlice(); 03044 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 03045 Message::__read(__is, true); 03046 #else 03047 ::HawkMessages::Message::__read(__is, true); 03048 #endif 03049 } 03050 03051 void 03052 HawkMessages::MissionListMessage::__write(const ::Ice::OutputStreamPtr&) const 03053 { 03054 Ice::MarshalException ex(__FILE__, __LINE__); 03055 ex.reason = "type HawkMessages::MissionListMessage was not generated with stream support"; 03056 throw ex; 03057 } 03058 03059 void 03060 HawkMessages::MissionListMessage::__read(const ::Ice::InputStreamPtr&, bool) 03061 { 03062 Ice::MarshalException ex(__FILE__, __LINE__); 03063 ex.reason = "type HawkMessages::MissionListMessage was not generated with stream support"; 03064 throw ex; 03065 } 03066 03067 class __F__HawkMessages__MissionListMessage : public ::Ice::ObjectFactory 03068 { 03069 public: 03070 03071 virtual ::Ice::ObjectPtr 03072 create(const ::std::string& type) 03073 { 03074 assert(type == ::HawkMessages::MissionListMessage::ice_staticId()); 03075 return new ::HawkMessages::MissionListMessage; 03076 } 03077 03078 virtual void 03079 destroy() 03080 { 03081 } 03082 }; 03083 03084 static ::Ice::ObjectFactoryPtr __F__HawkMessages__MissionListMessage_Ptr = new __F__HawkMessages__MissionListMessage; 03085 03086 const ::Ice::ObjectFactoryPtr& 03087 HawkMessages::MissionListMessage::ice_factory() 03088 { 03089 return __F__HawkMessages__MissionListMessage_Ptr; 03090 } 03091 03092 class __F__HawkMessages__MissionListMessage__Init 03093 { 03094 public: 03095 03096 __F__HawkMessages__MissionListMessage__Init() 03097 { 03098 ::IceInternal::factoryTable->addObjectFactory(::HawkMessages::MissionListMessage::ice_staticId(), ::HawkMessages::MissionListMessage::ice_factory()); 03099 } 03100 03101 ~__F__HawkMessages__MissionListMessage__Init() 03102 { 03103 ::IceInternal::factoryTable->removeObjectFactory(::HawkMessages::MissionListMessage::ice_staticId()); 03104 } 03105 }; 03106 03107 static __F__HawkMessages__MissionListMessage__Init __F__HawkMessages__MissionListMessage__i; 03108 03109 #ifdef __APPLE__ 03110 extern "C" { void __F__HawkMessages__MissionListMessage__initializer() {} } 03111 #endif 03112 03113 void 03114 HawkMessages::__patch__MissionListMessagePtr(void* __addr, ::Ice::ObjectPtr& v) 03115 { 03116 ::HawkMessages::MissionListMessagePtr* p = static_cast< ::HawkMessages::MissionListMessagePtr*>(__addr); 03117 assert(p); 03118 *p = ::HawkMessages::MissionListMessagePtr::dynamicCast(v); 03119 if(v && !*p) 03120 { 03121 IceInternal::Ex::throwUOE(::HawkMessages::MissionListMessage::ice_staticId(), v->ice_id()); 03122 } 03123 } 03124 03125 bool 03126 HawkMessages::operator==(const ::HawkMessages::MissionListMessage& l, const ::HawkMessages::MissionListMessage& r) 03127 { 03128 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 03129 } 03130 03131 bool 03132 HawkMessages::operator<(const ::HawkMessages::MissionListMessage& l, const ::HawkMessages::MissionListMessage& r) 03133 { 03134 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 03135 } 03136 03137 HawkMessages::RoomFinderMessage::RoomFinderMessage(bool __ice_roomFound, const ::HawkMessages::Pose& __ice_roomPose) : 03138 roomFound(__ice_roomFound), 03139 roomPose(__ice_roomPose) 03140 { 03141 } 03142 03143 ::Ice::ObjectPtr 03144 HawkMessages::RoomFinderMessage::ice_clone() const 03145 { 03146 ::HawkMessages::RoomFinderMessagePtr __p = new ::HawkMessages::RoomFinderMessage(*this); 03147 return __p; 03148 } 03149 03150 static const ::std::string __HawkMessages__RoomFinderMessage_ids[3] = 03151 { 03152 "::HawkMessages::Message", 03153 "::HawkMessages::RoomFinderMessage", 03154 "::Ice::Object" 03155 }; 03156 03157 bool 03158 HawkMessages::RoomFinderMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 03159 { 03160 return ::std::binary_search(__HawkMessages__RoomFinderMessage_ids, __HawkMessages__RoomFinderMessage_ids + 3, _s); 03161 } 03162 03163 ::std::vector< ::std::string> 03164 HawkMessages::RoomFinderMessage::ice_ids(const ::Ice::Current&) const 03165 { 03166 return ::std::vector< ::std::string>(&__HawkMessages__RoomFinderMessage_ids[0], &__HawkMessages__RoomFinderMessage_ids[3]); 03167 } 03168 03169 const ::std::string& 03170 HawkMessages::RoomFinderMessage::ice_id(const ::Ice::Current&) const 03171 { 03172 return __HawkMessages__RoomFinderMessage_ids[1]; 03173 } 03174 03175 const ::std::string& 03176 HawkMessages::RoomFinderMessage::ice_staticId() 03177 { 03178 return __HawkMessages__RoomFinderMessage_ids[1]; 03179 } 03180 03181 void 03182 HawkMessages::RoomFinderMessage::__write(::IceInternal::BasicStream* __os) const 03183 { 03184 __os->writeTypeId(ice_staticId()); 03185 __os->startWriteSlice(); 03186 __os->write(roomFound); 03187 roomPose.__write(__os); 03188 __os->endWriteSlice(); 03189 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 03190 Message::__write(__os); 03191 #else 03192 ::HawkMessages::Message::__write(__os); 03193 #endif 03194 } 03195 03196 void 03197 HawkMessages::RoomFinderMessage::__read(::IceInternal::BasicStream* __is, bool __rid) 03198 { 03199 if(__rid) 03200 { 03201 ::std::string myId; 03202 __is->readTypeId(myId); 03203 } 03204 __is->startReadSlice(); 03205 __is->read(roomFound); 03206 roomPose.__read(__is); 03207 __is->endReadSlice(); 03208 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 03209 Message::__read(__is, true); 03210 #else 03211 ::HawkMessages::Message::__read(__is, true); 03212 #endif 03213 } 03214 03215 void 03216 HawkMessages::RoomFinderMessage::__write(const ::Ice::OutputStreamPtr&) const 03217 { 03218 Ice::MarshalException ex(__FILE__, __LINE__); 03219 ex.reason = "type HawkMessages::RoomFinderMessage was not generated with stream support"; 03220 throw ex; 03221 } 03222 03223 void 03224 HawkMessages::RoomFinderMessage::__read(const ::Ice::InputStreamPtr&, bool) 03225 { 03226 Ice::MarshalException ex(__FILE__, __LINE__); 03227 ex.reason = "type HawkMessages::RoomFinderMessage was not generated with stream support"; 03228 throw ex; 03229 } 03230 03231 class __F__HawkMessages__RoomFinderMessage : public ::Ice::ObjectFactory 03232 { 03233 public: 03234 03235 virtual ::Ice::ObjectPtr 03236 create(const ::std::string& type) 03237 { 03238 assert(type == ::HawkMessages::RoomFinderMessage::ice_staticId()); 03239 return new ::HawkMessages::RoomFinderMessage; 03240 } 03241 03242 virtual void 03243 destroy() 03244 { 03245 } 03246 }; 03247 03248 static ::Ice::ObjectFactoryPtr __F__HawkMessages__RoomFinderMessage_Ptr = new __F__HawkMessages__RoomFinderMessage; 03249 03250 const ::Ice::ObjectFactoryPtr& 03251 HawkMessages::RoomFinderMessage::ice_factory() 03252 { 03253 return __F__HawkMessages__RoomFinderMessage_Ptr; 03254 } 03255 03256 class __F__HawkMessages__RoomFinderMessage__Init 03257 { 03258 public: 03259 03260 __F__HawkMessages__RoomFinderMessage__Init() 03261 { 03262 ::IceInternal::factoryTable->addObjectFactory(::HawkMessages::RoomFinderMessage::ice_staticId(), ::HawkMessages::RoomFinderMessage::ice_factory()); 03263 } 03264 03265 ~__F__HawkMessages__RoomFinderMessage__Init() 03266 { 03267 ::IceInternal::factoryTable->removeObjectFactory(::HawkMessages::RoomFinderMessage::ice_staticId()); 03268 } 03269 }; 03270 03271 static __F__HawkMessages__RoomFinderMessage__Init __F__HawkMessages__RoomFinderMessage__i; 03272 03273 #ifdef __APPLE__ 03274 extern "C" { void __F__HawkMessages__RoomFinderMessage__initializer() {} } 03275 #endif 03276 03277 void 03278 HawkMessages::__patch__RoomFinderMessagePtr(void* __addr, ::Ice::ObjectPtr& v) 03279 { 03280 ::HawkMessages::RoomFinderMessagePtr* p = static_cast< ::HawkMessages::RoomFinderMessagePtr*>(__addr); 03281 assert(p); 03282 *p = ::HawkMessages::RoomFinderMessagePtr::dynamicCast(v); 03283 if(v && !*p) 03284 { 03285 IceInternal::Ex::throwUOE(::HawkMessages::RoomFinderMessage::ice_staticId(), v->ice_id()); 03286 } 03287 } 03288 03289 bool 03290 HawkMessages::operator==(const ::HawkMessages::RoomFinderMessage& l, const ::HawkMessages::RoomFinderMessage& r) 03291 { 03292 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 03293 } 03294 03295 bool 03296 HawkMessages::operator<(const ::HawkMessages::RoomFinderMessage& l, const ::HawkMessages::RoomFinderMessage& r) 03297 { 03298 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 03299 } 03300 03301 HawkMessages::SensorDataMessage::SensorDataMessage(const ::HawkMessages::Pose& __ice_attemptedMove, ::Ice::Double __ice_motorSpeeds, ::Ice::Double __ice_batterVoltage, bool __ice_validAccel, ::Ice::Double __ice_accelX, ::Ice::Double __ice_accelY, ::Ice::Double __ice_accelZ, bool __ice_validGyro, ::Ice::Double __ice_gyroX, ::Ice::Double __ice_gyroY, ::Ice::Double __ice_gyroZ, bool __ice_validMag, ::Ice::Double __ice_magX, ::Ice::Double __ice_magY, ::Ice::Double __ice_magZ, bool __ice_validAhr, ::Ice::Double __ice_roll, ::Ice::Double __ice_pitch, ::Ice::Double __ice_yaw, ::Ice::Double __ice_heading, ::Ice::Double __ice_angularResolution, const ::HawkMessages::LongSeq& __ice_scannerData, const ::HawkMessages::SonarSeq& __ice_sonarData) : 03302 attemptedMove(__ice_attemptedMove), 03303 motorSpeeds(__ice_motorSpeeds), 03304 batterVoltage(__ice_batterVoltage), 03305 validAccel(__ice_validAccel), 03306 accelX(__ice_accelX), 03307 accelY(__ice_accelY), 03308 accelZ(__ice_accelZ), 03309 validGyro(__ice_validGyro), 03310 gyroX(__ice_gyroX), 03311 gyroY(__ice_gyroY), 03312 gyroZ(__ice_gyroZ), 03313 validMag(__ice_validMag), 03314 magX(__ice_magX), 03315 magY(__ice_magY), 03316 magZ(__ice_magZ), 03317 validAhr(__ice_validAhr), 03318 roll(__ice_roll), 03319 pitch(__ice_pitch), 03320 yaw(__ice_yaw), 03321 heading(__ice_heading), 03322 angularResolution(__ice_angularResolution), 03323 scannerData(__ice_scannerData), 03324 sonarData(__ice_sonarData) 03325 { 03326 } 03327 03328 ::Ice::ObjectPtr 03329 HawkMessages::SensorDataMessage::ice_clone() const 03330 { 03331 ::HawkMessages::SensorDataMessagePtr __p = new ::HawkMessages::SensorDataMessage(*this); 03332 return __p; 03333 } 03334 03335 static const ::std::string __HawkMessages__SensorDataMessage_ids[3] = 03336 { 03337 "::HawkMessages::Message", 03338 "::HawkMessages::SensorDataMessage", 03339 "::Ice::Object" 03340 }; 03341 03342 bool 03343 HawkMessages::SensorDataMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 03344 { 03345 return ::std::binary_search(__HawkMessages__SensorDataMessage_ids, __HawkMessages__SensorDataMessage_ids + 3, _s); 03346 } 03347 03348 ::std::vector< ::std::string> 03349 HawkMessages::SensorDataMessage::ice_ids(const ::Ice::Current&) const 03350 { 03351 return ::std::vector< ::std::string>(&__HawkMessages__SensorDataMessage_ids[0], &__HawkMessages__SensorDataMessage_ids[3]); 03352 } 03353 03354 const ::std::string& 03355 HawkMessages::SensorDataMessage::ice_id(const ::Ice::Current&) const 03356 { 03357 return __HawkMessages__SensorDataMessage_ids[1]; 03358 } 03359 03360 const ::std::string& 03361 HawkMessages::SensorDataMessage::ice_staticId() 03362 { 03363 return __HawkMessages__SensorDataMessage_ids[1]; 03364 } 03365 03366 void 03367 HawkMessages::SensorDataMessage::__write(::IceInternal::BasicStream* __os) const 03368 { 03369 __os->writeTypeId(ice_staticId()); 03370 __os->startWriteSlice(); 03371 attemptedMove.__write(__os); 03372 __os->write(motorSpeeds); 03373 __os->write(batterVoltage); 03374 __os->write(validAccel); 03375 __os->write(accelX); 03376 __os->write(accelY); 03377 __os->write(accelZ); 03378 __os->write(validGyro); 03379 __os->write(gyroX); 03380 __os->write(gyroY); 03381 __os->write(gyroZ); 03382 __os->write(validMag); 03383 __os->write(magX); 03384 __os->write(magY); 03385 __os->write(magZ); 03386 __os->write(validAhr); 03387 __os->write(roll); 03388 __os->write(pitch); 03389 __os->write(yaw); 03390 __os->write(heading); 03391 __os->write(angularResolution); 03392 if(scannerData.size() == 0) 03393 { 03394 __os->writeSize(0); 03395 } 03396 else 03397 { 03398 __os->write(&scannerData[0], &scannerData[0] + scannerData.size()); 03399 } 03400 if(sonarData.size() == 0) 03401 { 03402 __os->writeSize(0); 03403 } 03404 else 03405 { 03406 ::HawkMessages::__writeSonarSeq(__os, &sonarData[0], &sonarData[0] + sonarData.size()); 03407 } 03408 __os->endWriteSlice(); 03409 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 03410 Message::__write(__os); 03411 #else 03412 ::HawkMessages::Message::__write(__os); 03413 #endif 03414 } 03415 03416 void 03417 HawkMessages::SensorDataMessage::__read(::IceInternal::BasicStream* __is, bool __rid) 03418 { 03419 if(__rid) 03420 { 03421 ::std::string myId; 03422 __is->readTypeId(myId); 03423 } 03424 __is->startReadSlice(); 03425 attemptedMove.__read(__is); 03426 __is->read(motorSpeeds); 03427 __is->read(batterVoltage); 03428 __is->read(validAccel); 03429 __is->read(accelX); 03430 __is->read(accelY); 03431 __is->read(accelZ); 03432 __is->read(validGyro); 03433 __is->read(gyroX); 03434 __is->read(gyroY); 03435 __is->read(gyroZ); 03436 __is->read(validMag); 03437 __is->read(magX); 03438 __is->read(magY); 03439 __is->read(magZ); 03440 __is->read(validAhr); 03441 __is->read(roll); 03442 __is->read(pitch); 03443 __is->read(yaw); 03444 __is->read(heading); 03445 __is->read(angularResolution); 03446 __is->read(scannerData); 03447 ::HawkMessages::__readSonarSeq(__is, sonarData); 03448 __is->endReadSlice(); 03449 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 03450 Message::__read(__is, true); 03451 #else 03452 ::HawkMessages::Message::__read(__is, true); 03453 #endif 03454 } 03455 03456 void 03457 HawkMessages::SensorDataMessage::__write(const ::Ice::OutputStreamPtr&) const 03458 { 03459 Ice::MarshalException ex(__FILE__, __LINE__); 03460 ex.reason = "type HawkMessages::SensorDataMessage was not generated with stream support"; 03461 throw ex; 03462 } 03463 03464 void 03465 HawkMessages::SensorDataMessage::__read(const ::Ice::InputStreamPtr&, bool) 03466 { 03467 Ice::MarshalException ex(__FILE__, __LINE__); 03468 ex.reason = "type HawkMessages::SensorDataMessage was not generated with stream support"; 03469 throw ex; 03470 } 03471 03472 class __F__HawkMessages__SensorDataMessage : public ::Ice::ObjectFactory 03473 { 03474 public: 03475 03476 virtual ::Ice::ObjectPtr 03477 create(const ::std::string& type) 03478 { 03479 assert(type == ::HawkMessages::SensorDataMessage::ice_staticId()); 03480 return new ::HawkMessages::SensorDataMessage; 03481 } 03482 03483 virtual void 03484 destroy() 03485 { 03486 } 03487 }; 03488 03489 static ::Ice::ObjectFactoryPtr __F__HawkMessages__SensorDataMessage_Ptr = new __F__HawkMessages__SensorDataMessage; 03490 03491 const ::Ice::ObjectFactoryPtr& 03492 HawkMessages::SensorDataMessage::ice_factory() 03493 { 03494 return __F__HawkMessages__SensorDataMessage_Ptr; 03495 } 03496 03497 class __F__HawkMessages__SensorDataMessage__Init 03498 { 03499 public: 03500 03501 __F__HawkMessages__SensorDataMessage__Init() 03502 { 03503 ::IceInternal::factoryTable->addObjectFactory(::HawkMessages::SensorDataMessage::ice_staticId(), ::HawkMessages::SensorDataMessage::ice_factory()); 03504 } 03505 03506 ~__F__HawkMessages__SensorDataMessage__Init() 03507 { 03508 ::IceInternal::factoryTable->removeObjectFactory(::HawkMessages::SensorDataMessage::ice_staticId()); 03509 } 03510 }; 03511 03512 static __F__HawkMessages__SensorDataMessage__Init __F__HawkMessages__SensorDataMessage__i; 03513 03514 #ifdef __APPLE__ 03515 extern "C" { void __F__HawkMessages__SensorDataMessage__initializer() {} } 03516 #endif 03517 03518 void 03519 HawkMessages::__patch__SensorDataMessagePtr(void* __addr, ::Ice::ObjectPtr& v) 03520 { 03521 ::HawkMessages::SensorDataMessagePtr* p = static_cast< ::HawkMessages::SensorDataMessagePtr*>(__addr); 03522 assert(p); 03523 *p = ::HawkMessages::SensorDataMessagePtr::dynamicCast(v); 03524 if(v && !*p) 03525 { 03526 IceInternal::Ex::throwUOE(::HawkMessages::SensorDataMessage::ice_staticId(), v->ice_id()); 03527 } 03528 } 03529 03530 bool 03531 HawkMessages::operator==(const ::HawkMessages::SensorDataMessage& l, const ::HawkMessages::SensorDataMessage& r) 03532 { 03533 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 03534 } 03535 03536 bool 03537 HawkMessages::operator<(const ::HawkMessages::SensorDataMessage& l, const ::HawkMessages::SensorDataMessage& r) 03538 { 03539 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 03540 } 03541 03542 HawkMessages::SlamDataMessage::SlamDataMessage(const ::HawkMessages::Pose& __ice_hawkPose) : 03543 hawkPose(__ice_hawkPose) 03544 { 03545 } 03546 03547 ::Ice::ObjectPtr 03548 HawkMessages::SlamDataMessage::ice_clone() const 03549 { 03550 ::HawkMessages::SlamDataMessagePtr __p = new ::HawkMessages::SlamDataMessage(*this); 03551 return __p; 03552 } 03553 03554 static const ::std::string __HawkMessages__SlamDataMessage_ids[3] = 03555 { 03556 "::HawkMessages::Message", 03557 "::HawkMessages::SlamDataMessage", 03558 "::Ice::Object" 03559 }; 03560 03561 bool 03562 HawkMessages::SlamDataMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 03563 { 03564 return ::std::binary_search(__HawkMessages__SlamDataMessage_ids, __HawkMessages__SlamDataMessage_ids + 3, _s); 03565 } 03566 03567 ::std::vector< ::std::string> 03568 HawkMessages::SlamDataMessage::ice_ids(const ::Ice::Current&) const 03569 { 03570 return ::std::vector< ::std::string>(&__HawkMessages__SlamDataMessage_ids[0], &__HawkMessages__SlamDataMessage_ids[3]); 03571 } 03572 03573 const ::std::string& 03574 HawkMessages::SlamDataMessage::ice_id(const ::Ice::Current&) const 03575 { 03576 return __HawkMessages__SlamDataMessage_ids[1]; 03577 } 03578 03579 const ::std::string& 03580 HawkMessages::SlamDataMessage::ice_staticId() 03581 { 03582 return __HawkMessages__SlamDataMessage_ids[1]; 03583 } 03584 03585 void 03586 HawkMessages::SlamDataMessage::__write(::IceInternal::BasicStream* __os) const 03587 { 03588 __os->writeTypeId(ice_staticId()); 03589 __os->startWriteSlice(); 03590 hawkPose.__write(__os); 03591 __os->endWriteSlice(); 03592 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 03593 Message::__write(__os); 03594 #else 03595 ::HawkMessages::Message::__write(__os); 03596 #endif 03597 } 03598 03599 void 03600 HawkMessages::SlamDataMessage::__read(::IceInternal::BasicStream* __is, bool __rid) 03601 { 03602 if(__rid) 03603 { 03604 ::std::string myId; 03605 __is->readTypeId(myId); 03606 } 03607 __is->startReadSlice(); 03608 hawkPose.__read(__is); 03609 __is->endReadSlice(); 03610 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 03611 Message::__read(__is, true); 03612 #else 03613 ::HawkMessages::Message::__read(__is, true); 03614 #endif 03615 } 03616 03617 void 03618 HawkMessages::SlamDataMessage::__write(const ::Ice::OutputStreamPtr&) const 03619 { 03620 Ice::MarshalException ex(__FILE__, __LINE__); 03621 ex.reason = "type HawkMessages::SlamDataMessage was not generated with stream support"; 03622 throw ex; 03623 } 03624 03625 void 03626 HawkMessages::SlamDataMessage::__read(const ::Ice::InputStreamPtr&, bool) 03627 { 03628 Ice::MarshalException ex(__FILE__, __LINE__); 03629 ex.reason = "type HawkMessages::SlamDataMessage was not generated with stream support"; 03630 throw ex; 03631 } 03632 03633 class __F__HawkMessages__SlamDataMessage : public ::Ice::ObjectFactory 03634 { 03635 public: 03636 03637 virtual ::Ice::ObjectPtr 03638 create(const ::std::string& type) 03639 { 03640 assert(type == ::HawkMessages::SlamDataMessage::ice_staticId()); 03641 return new ::HawkMessages::SlamDataMessage; 03642 } 03643 03644 virtual void 03645 destroy() 03646 { 03647 } 03648 }; 03649 03650 static ::Ice::ObjectFactoryPtr __F__HawkMessages__SlamDataMessage_Ptr = new __F__HawkMessages__SlamDataMessage; 03651 03652 const ::Ice::ObjectFactoryPtr& 03653 HawkMessages::SlamDataMessage::ice_factory() 03654 { 03655 return __F__HawkMessages__SlamDataMessage_Ptr; 03656 } 03657 03658 class __F__HawkMessages__SlamDataMessage__Init 03659 { 03660 public: 03661 03662 __F__HawkMessages__SlamDataMessage__Init() 03663 { 03664 ::IceInternal::factoryTable->addObjectFactory(::HawkMessages::SlamDataMessage::ice_staticId(), ::HawkMessages::SlamDataMessage::ice_factory()); 03665 } 03666 03667 ~__F__HawkMessages__SlamDataMessage__Init() 03668 { 03669 ::IceInternal::factoryTable->removeObjectFactory(::HawkMessages::SlamDataMessage::ice_staticId()); 03670 } 03671 }; 03672 03673 static __F__HawkMessages__SlamDataMessage__Init __F__HawkMessages__SlamDataMessage__i; 03674 03675 #ifdef __APPLE__ 03676 extern "C" { void __F__HawkMessages__SlamDataMessage__initializer() {} } 03677 #endif 03678 03679 void 03680 HawkMessages::__patch__SlamDataMessagePtr(void* __addr, ::Ice::ObjectPtr& v) 03681 { 03682 ::HawkMessages::SlamDataMessagePtr* p = static_cast< ::HawkMessages::SlamDataMessagePtr*>(__addr); 03683 assert(p); 03684 *p = ::HawkMessages::SlamDataMessagePtr::dynamicCast(v); 03685 if(v && !*p) 03686 { 03687 IceInternal::Ex::throwUOE(::HawkMessages::SlamDataMessage::ice_staticId(), v->ice_id()); 03688 } 03689 } 03690 03691 bool 03692 HawkMessages::operator==(const ::HawkMessages::SlamDataMessage& l, const ::HawkMessages::SlamDataMessage& r) 03693 { 03694 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 03695 } 03696 03697 bool 03698 HawkMessages::operator<(const ::HawkMessages::SlamDataMessage& l, const ::HawkMessages::SlamDataMessage& r) 03699 { 03700 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 03701 }