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 `Gumbot.ice' 00012 00013 #ifndef __src_Robots_Gumbot_GumbotService__Gumbot_ice_H__ 00014 #define __src_Robots_Gumbot_GumbotService__Gumbot_ice_H__ 00015 00016 #include <Ice/LocalObjectF.h> 00017 #include <Ice/ProxyF.h> 00018 #include <Ice/ObjectF.h> 00019 #include <Ice/Exception.h> 00020 #include <Ice/LocalObject.h> 00021 #include <Ice/Proxy.h> 00022 #include <Ice/Object.h> 00023 #include <Ice/Outgoing.h> 00024 #include <Ice/Incoming.h> 00025 #include <Ice/Direct.h> 00026 #include <Ice/StreamF.h> 00027 #include <Ice/ImageIce.ice.H> 00028 #include <Ice/UndefSysMacros.h> 00029 00030 #ifndef ICE_IGNORE_VERSION 00031 # if ICE_INT_VERSION / 100 != 303 00032 # error Ice version mismatch! 00033 # endif 00034 # if ICE_INT_VERSION % 100 > 50 00035 # error Beta header file detected 00036 # endif 00037 # if ICE_INT_VERSION % 100 < 1 00038 # error Ice patch level mismatch! 00039 # endif 00040 #endif 00041 00042 namespace IceProxy 00043 { 00044 00045 namespace Robots 00046 { 00047 00048 class Gumbot; 00049 00050 } 00051 00052 } 00053 00054 namespace Robots 00055 { 00056 00057 class Gumbot; 00058 bool operator==(const Gumbot&, const Gumbot&); 00059 bool operator<(const Gumbot&, const Gumbot&); 00060 00061 } 00062 00063 namespace IceInternal 00064 { 00065 00066 ::Ice::Object* upCast(::Robots::Gumbot*); 00067 ::IceProxy::Ice::Object* upCast(::IceProxy::Robots::Gumbot*); 00068 00069 } 00070 00071 namespace Robots 00072 { 00073 00074 typedef ::IceInternal::Handle< ::Robots::Gumbot> GumbotPtr; 00075 typedef ::IceInternal::ProxyHandle< ::IceProxy::Robots::Gumbot> GumbotPrx; 00076 00077 void __read(::IceInternal::BasicStream*, GumbotPrx&); 00078 void __patch__GumbotPtr(void*, ::Ice::ObjectPtr&); 00079 00080 } 00081 00082 namespace Robots 00083 { 00084 00085 enum GumbotModes 00086 { 00087 SafeMode, 00088 FullMode, 00089 SpotMode, 00090 CoverMode, 00091 CoverAndDockMode 00092 }; 00093 00094 void __write(::IceInternal::BasicStream*, GumbotModes); 00095 void __read(::IceInternal::BasicStream*, GumbotModes&); 00096 00097 } 00098 00099 namespace IceProxy 00100 { 00101 00102 namespace Robots 00103 { 00104 00105 class Gumbot : virtual public ::IceProxy::Ice::Object 00106 { 00107 public: 00108 00109 ::Ice::Float getSpeed() 00110 { 00111 return getSpeed(0); 00112 } 00113 ::Ice::Float getSpeed(const ::Ice::Context& __ctx) 00114 { 00115 return getSpeed(&__ctx); 00116 } 00117 00118 private: 00119 00120 ::Ice::Float getSpeed(const ::Ice::Context*); 00121 00122 public: 00123 00124 ::Ice::Short setSpeed(::Ice::Float speed) 00125 { 00126 return setSpeed(speed, 0); 00127 } 00128 ::Ice::Short setSpeed(::Ice::Float speed, const ::Ice::Context& __ctx) 00129 { 00130 return setSpeed(speed, &__ctx); 00131 } 00132 00133 private: 00134 00135 ::Ice::Short setSpeed(::Ice::Float, const ::Ice::Context*); 00136 00137 public: 00138 00139 ::Ice::Float getSteering() 00140 { 00141 return getSteering(0); 00142 } 00143 ::Ice::Float getSteering(const ::Ice::Context& __ctx) 00144 { 00145 return getSteering(&__ctx); 00146 } 00147 00148 private: 00149 00150 ::Ice::Float getSteering(const ::Ice::Context*); 00151 00152 public: 00153 00154 ::Ice::Short setSteering(::Ice::Float steeringPos) 00155 { 00156 return setSteering(steeringPos, 0); 00157 } 00158 ::Ice::Short setSteering(::Ice::Float steeringPos, const ::Ice::Context& __ctx) 00159 { 00160 return setSteering(steeringPos, &__ctx); 00161 } 00162 00163 private: 00164 00165 ::Ice::Short setSteering(::Ice::Float, const ::Ice::Context*); 00166 00167 public: 00168 00169 ::ImageIceMod::ImageIce getImageSensor(::Ice::Short i) 00170 { 00171 return getImageSensor(i, 0); 00172 } 00173 ::ImageIceMod::ImageIce getImageSensor(::Ice::Short i, const ::Ice::Context& __ctx) 00174 { 00175 return getImageSensor(i, &__ctx); 00176 } 00177 00178 private: 00179 00180 ::ImageIceMod::ImageIce getImageSensor(::Ice::Short, const ::Ice::Context*); 00181 00182 public: 00183 00184 ::ImageIceMod::DimsIce getImageSensorDims(::Ice::Short i) 00185 { 00186 return getImageSensorDims(i, 0); 00187 } 00188 ::ImageIceMod::DimsIce getImageSensorDims(::Ice::Short i, const ::Ice::Context& __ctx) 00189 { 00190 return getImageSensorDims(i, &__ctx); 00191 } 00192 00193 private: 00194 00195 ::ImageIceMod::DimsIce getImageSensorDims(::Ice::Short, const ::Ice::Context*); 00196 00197 public: 00198 00199 ::Ice::Short getSensorValue(::Ice::Short i) 00200 { 00201 return getSensorValue(i, 0); 00202 } 00203 ::Ice::Short getSensorValue(::Ice::Short i, const ::Ice::Context& __ctx) 00204 { 00205 return getSensorValue(i, &__ctx); 00206 } 00207 00208 private: 00209 00210 ::Ice::Short getSensorValue(::Ice::Short, const ::Ice::Context*); 00211 00212 public: 00213 00214 void motorsOff(::Ice::Short i) 00215 { 00216 motorsOff(i, 0); 00217 } 00218 void motorsOff(::Ice::Short i, const ::Ice::Context& __ctx) 00219 { 00220 motorsOff(i, &__ctx); 00221 } 00222 00223 private: 00224 00225 void motorsOff(::Ice::Short, const ::Ice::Context*); 00226 00227 public: 00228 00229 void setMotor(::Ice::Short i, ::Ice::Float val) 00230 { 00231 setMotor(i, val, 0); 00232 } 00233 void setMotor(::Ice::Short i, ::Ice::Float val, const ::Ice::Context& __ctx) 00234 { 00235 setMotor(i, val, &__ctx); 00236 } 00237 00238 private: 00239 00240 void setMotor(::Ice::Short, ::Ice::Float, const ::Ice::Context*); 00241 00242 public: 00243 00244 ::Ice::Short sendRawCmd(const ::std::string& data) 00245 { 00246 return sendRawCmd(data, 0); 00247 } 00248 ::Ice::Short sendRawCmd(const ::std::string& data, const ::Ice::Context& __ctx) 00249 { 00250 return sendRawCmd(data, &__ctx); 00251 } 00252 00253 private: 00254 00255 ::Ice::Short sendRawCmd(const ::std::string&, const ::Ice::Context*); 00256 00257 public: 00258 00259 void playSong(::Ice::Short song) 00260 { 00261 playSong(song, 0); 00262 } 00263 void playSong(::Ice::Short song, const ::Ice::Context& __ctx) 00264 { 00265 playSong(song, &__ctx); 00266 } 00267 00268 private: 00269 00270 void playSong(::Ice::Short, const ::Ice::Context*); 00271 00272 public: 00273 00274 void sendStart() 00275 { 00276 sendStart(0); 00277 } 00278 void sendStart(const ::Ice::Context& __ctx) 00279 { 00280 sendStart(&__ctx); 00281 } 00282 00283 private: 00284 00285 void sendStart(const ::Ice::Context*); 00286 00287 public: 00288 00289 void setMode(::Robots::GumbotModes mode) 00290 { 00291 setMode(mode, 0); 00292 } 00293 void setMode(::Robots::GumbotModes mode, const ::Ice::Context& __ctx) 00294 { 00295 setMode(mode, &__ctx); 00296 } 00297 00298 private: 00299 00300 void setMode(::Robots::GumbotModes, const ::Ice::Context*); 00301 00302 public: 00303 00304 void setDemo(::Ice::Short demo) 00305 { 00306 setDemo(demo, 0); 00307 } 00308 void setDemo(::Ice::Short demo, const ::Ice::Context& __ctx) 00309 { 00310 setDemo(demo, &__ctx); 00311 } 00312 00313 private: 00314 00315 void setDemo(::Ice::Short, const ::Ice::Context*); 00316 00317 public: 00318 00319 void setLED(::Ice::Short led, ::Ice::Short color, ::Ice::Short intensity) 00320 { 00321 setLED(led, color, intensity, 0); 00322 } 00323 void setLED(::Ice::Short led, ::Ice::Short color, ::Ice::Short intensity, const ::Ice::Context& __ctx) 00324 { 00325 setLED(led, color, intensity, &__ctx); 00326 } 00327 00328 private: 00329 00330 void setLED(::Ice::Short, ::Ice::Short, ::Ice::Short, const ::Ice::Context*); 00331 00332 public: 00333 00334 void shutdown() 00335 { 00336 shutdown(0); 00337 } 00338 void shutdown(const ::Ice::Context& __ctx) 00339 { 00340 shutdown(&__ctx); 00341 } 00342 00343 private: 00344 00345 void shutdown(const ::Ice::Context*); 00346 00347 public: 00348 00349 ::IceInternal::ProxyHandle<Gumbot> ice_context(const ::Ice::Context& __context) const 00350 { 00351 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00352 typedef ::IceProxy::Ice::Object _Base; 00353 return dynamic_cast<Gumbot*>(_Base::ice_context(__context).get()); 00354 #else 00355 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_context(__context).get()); 00356 #endif 00357 } 00358 00359 ::IceInternal::ProxyHandle<Gumbot> ice_adapterId(const std::string& __id) const 00360 { 00361 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00362 typedef ::IceProxy::Ice::Object _Base; 00363 return dynamic_cast<Gumbot*>(_Base::ice_adapterId(__id).get()); 00364 #else 00365 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); 00366 #endif 00367 } 00368 00369 ::IceInternal::ProxyHandle<Gumbot> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const 00370 { 00371 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00372 typedef ::IceProxy::Ice::Object _Base; 00373 return dynamic_cast<Gumbot*>(_Base::ice_endpoints(__endpoints).get()); 00374 #else 00375 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); 00376 #endif 00377 } 00378 00379 ::IceInternal::ProxyHandle<Gumbot> ice_locatorCacheTimeout(int __timeout) const 00380 { 00381 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00382 typedef ::IceProxy::Ice::Object _Base; 00383 return dynamic_cast<Gumbot*>(_Base::ice_locatorCacheTimeout(__timeout).get()); 00384 #else 00385 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); 00386 #endif 00387 } 00388 00389 ::IceInternal::ProxyHandle<Gumbot> ice_connectionCached(bool __cached) const 00390 { 00391 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00392 typedef ::IceProxy::Ice::Object _Base; 00393 return dynamic_cast<Gumbot*>(_Base::ice_connectionCached(__cached).get()); 00394 #else 00395 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); 00396 #endif 00397 } 00398 00399 ::IceInternal::ProxyHandle<Gumbot> ice_endpointSelection(::Ice::EndpointSelectionType __est) const 00400 { 00401 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00402 typedef ::IceProxy::Ice::Object _Base; 00403 return dynamic_cast<Gumbot*>(_Base::ice_endpointSelection(__est).get()); 00404 #else 00405 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); 00406 #endif 00407 } 00408 00409 ::IceInternal::ProxyHandle<Gumbot> ice_secure(bool __secure) const 00410 { 00411 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00412 typedef ::IceProxy::Ice::Object _Base; 00413 return dynamic_cast<Gumbot*>(_Base::ice_secure(__secure).get()); 00414 #else 00415 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); 00416 #endif 00417 } 00418 00419 ::IceInternal::ProxyHandle<Gumbot> ice_preferSecure(bool __preferSecure) const 00420 { 00421 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00422 typedef ::IceProxy::Ice::Object _Base; 00423 return dynamic_cast<Gumbot*>(_Base::ice_preferSecure(__preferSecure).get()); 00424 #else 00425 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); 00426 #endif 00427 } 00428 00429 ::IceInternal::ProxyHandle<Gumbot> ice_router(const ::Ice::RouterPrx& __router) const 00430 { 00431 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00432 typedef ::IceProxy::Ice::Object _Base; 00433 return dynamic_cast<Gumbot*>(_Base::ice_router(__router).get()); 00434 #else 00435 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_router(__router).get()); 00436 #endif 00437 } 00438 00439 ::IceInternal::ProxyHandle<Gumbot> ice_locator(const ::Ice::LocatorPrx& __locator) const 00440 { 00441 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00442 typedef ::IceProxy::Ice::Object _Base; 00443 return dynamic_cast<Gumbot*>(_Base::ice_locator(__locator).get()); 00444 #else 00445 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); 00446 #endif 00447 } 00448 00449 ::IceInternal::ProxyHandle<Gumbot> ice_collocationOptimized(bool __co) const 00450 { 00451 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00452 typedef ::IceProxy::Ice::Object _Base; 00453 return dynamic_cast<Gumbot*>(_Base::ice_collocationOptimized(__co).get()); 00454 #else 00455 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); 00456 #endif 00457 } 00458 00459 ::IceInternal::ProxyHandle<Gumbot> ice_twoway() const 00460 { 00461 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00462 typedef ::IceProxy::Ice::Object _Base; 00463 return dynamic_cast<Gumbot*>(_Base::ice_twoway().get()); 00464 #else 00465 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_twoway().get()); 00466 #endif 00467 } 00468 00469 ::IceInternal::ProxyHandle<Gumbot> ice_oneway() const 00470 { 00471 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00472 typedef ::IceProxy::Ice::Object _Base; 00473 return dynamic_cast<Gumbot*>(_Base::ice_oneway().get()); 00474 #else 00475 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_oneway().get()); 00476 #endif 00477 } 00478 00479 ::IceInternal::ProxyHandle<Gumbot> ice_batchOneway() const 00480 { 00481 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00482 typedef ::IceProxy::Ice::Object _Base; 00483 return dynamic_cast<Gumbot*>(_Base::ice_batchOneway().get()); 00484 #else 00485 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_batchOneway().get()); 00486 #endif 00487 } 00488 00489 ::IceInternal::ProxyHandle<Gumbot> ice_datagram() const 00490 { 00491 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00492 typedef ::IceProxy::Ice::Object _Base; 00493 return dynamic_cast<Gumbot*>(_Base::ice_datagram().get()); 00494 #else 00495 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_datagram().get()); 00496 #endif 00497 } 00498 00499 ::IceInternal::ProxyHandle<Gumbot> ice_batchDatagram() const 00500 { 00501 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00502 typedef ::IceProxy::Ice::Object _Base; 00503 return dynamic_cast<Gumbot*>(_Base::ice_batchDatagram().get()); 00504 #else 00505 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); 00506 #endif 00507 } 00508 00509 ::IceInternal::ProxyHandle<Gumbot> ice_compress(bool __compress) const 00510 { 00511 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00512 typedef ::IceProxy::Ice::Object _Base; 00513 return dynamic_cast<Gumbot*>(_Base::ice_compress(__compress).get()); 00514 #else 00515 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); 00516 #endif 00517 } 00518 00519 ::IceInternal::ProxyHandle<Gumbot> ice_timeout(int __timeout) const 00520 { 00521 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00522 typedef ::IceProxy::Ice::Object _Base; 00523 return dynamic_cast<Gumbot*>(_Base::ice_timeout(__timeout).get()); 00524 #else 00525 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); 00526 #endif 00527 } 00528 00529 ::IceInternal::ProxyHandle<Gumbot> ice_connectionId(const std::string& __id) const 00530 { 00531 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00532 typedef ::IceProxy::Ice::Object _Base; 00533 return dynamic_cast<Gumbot*>(_Base::ice_connectionId(__id).get()); 00534 #else 00535 return dynamic_cast<Gumbot*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); 00536 #endif 00537 } 00538 00539 static const ::std::string& ice_staticId(); 00540 00541 private: 00542 00543 virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); 00544 virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); 00545 virtual ::IceProxy::Ice::Object* __newInstance() const; 00546 }; 00547 00548 } 00549 00550 } 00551 00552 namespace IceDelegate 00553 { 00554 00555 namespace Robots 00556 { 00557 00558 class Gumbot : virtual public ::IceDelegate::Ice::Object 00559 { 00560 public: 00561 00562 virtual ::Ice::Float getSpeed(const ::Ice::Context*) = 0; 00563 00564 virtual ::Ice::Short setSpeed(::Ice::Float, const ::Ice::Context*) = 0; 00565 00566 virtual ::Ice::Float getSteering(const ::Ice::Context*) = 0; 00567 00568 virtual ::Ice::Short setSteering(::Ice::Float, const ::Ice::Context*) = 0; 00569 00570 virtual ::ImageIceMod::ImageIce getImageSensor(::Ice::Short, const ::Ice::Context*) = 0; 00571 00572 virtual ::ImageIceMod::DimsIce getImageSensorDims(::Ice::Short, const ::Ice::Context*) = 0; 00573 00574 virtual ::Ice::Short getSensorValue(::Ice::Short, const ::Ice::Context*) = 0; 00575 00576 virtual void motorsOff(::Ice::Short, const ::Ice::Context*) = 0; 00577 00578 virtual void setMotor(::Ice::Short, ::Ice::Float, const ::Ice::Context*) = 0; 00579 00580 virtual ::Ice::Short sendRawCmd(const ::std::string&, const ::Ice::Context*) = 0; 00581 00582 virtual void playSong(::Ice::Short, const ::Ice::Context*) = 0; 00583 00584 virtual void sendStart(const ::Ice::Context*) = 0; 00585 00586 virtual void setMode(::Robots::GumbotModes, const ::Ice::Context*) = 0; 00587 00588 virtual void setDemo(::Ice::Short, const ::Ice::Context*) = 0; 00589 00590 virtual void setLED(::Ice::Short, ::Ice::Short, ::Ice::Short, const ::Ice::Context*) = 0; 00591 00592 virtual void shutdown(const ::Ice::Context*) = 0; 00593 }; 00594 00595 } 00596 00597 } 00598 00599 namespace IceDelegateM 00600 { 00601 00602 namespace Robots 00603 { 00604 00605 class Gumbot : virtual public ::IceDelegate::Robots::Gumbot, 00606 virtual public ::IceDelegateM::Ice::Object 00607 { 00608 public: 00609 00610 virtual ::Ice::Float getSpeed(const ::Ice::Context*); 00611 00612 virtual ::Ice::Short setSpeed(::Ice::Float, const ::Ice::Context*); 00613 00614 virtual ::Ice::Float getSteering(const ::Ice::Context*); 00615 00616 virtual ::Ice::Short setSteering(::Ice::Float, const ::Ice::Context*); 00617 00618 virtual ::ImageIceMod::ImageIce getImageSensor(::Ice::Short, const ::Ice::Context*); 00619 00620 virtual ::ImageIceMod::DimsIce getImageSensorDims(::Ice::Short, const ::Ice::Context*); 00621 00622 virtual ::Ice::Short getSensorValue(::Ice::Short, const ::Ice::Context*); 00623 00624 virtual void motorsOff(::Ice::Short, const ::Ice::Context*); 00625 00626 virtual void setMotor(::Ice::Short, ::Ice::Float, const ::Ice::Context*); 00627 00628 virtual ::Ice::Short sendRawCmd(const ::std::string&, const ::Ice::Context*); 00629 00630 virtual void playSong(::Ice::Short, const ::Ice::Context*); 00631 00632 virtual void sendStart(const ::Ice::Context*); 00633 00634 virtual void setMode(::Robots::GumbotModes, const ::Ice::Context*); 00635 00636 virtual void setDemo(::Ice::Short, const ::Ice::Context*); 00637 00638 virtual void setLED(::Ice::Short, ::Ice::Short, ::Ice::Short, const ::Ice::Context*); 00639 00640 virtual void shutdown(const ::Ice::Context*); 00641 }; 00642 00643 } 00644 00645 } 00646 00647 namespace IceDelegateD 00648 { 00649 00650 namespace Robots 00651 { 00652 00653 class Gumbot : virtual public ::IceDelegate::Robots::Gumbot, 00654 virtual public ::IceDelegateD::Ice::Object 00655 { 00656 public: 00657 00658 virtual ::Ice::Float getSpeed(const ::Ice::Context*); 00659 00660 virtual ::Ice::Short setSpeed(::Ice::Float, const ::Ice::Context*); 00661 00662 virtual ::Ice::Float getSteering(const ::Ice::Context*); 00663 00664 virtual ::Ice::Short setSteering(::Ice::Float, const ::Ice::Context*); 00665 00666 virtual ::ImageIceMod::ImageIce getImageSensor(::Ice::Short, const ::Ice::Context*); 00667 00668 virtual ::ImageIceMod::DimsIce getImageSensorDims(::Ice::Short, const ::Ice::Context*); 00669 00670 virtual ::Ice::Short getSensorValue(::Ice::Short, const ::Ice::Context*); 00671 00672 virtual void motorsOff(::Ice::Short, const ::Ice::Context*); 00673 00674 virtual void setMotor(::Ice::Short, ::Ice::Float, const ::Ice::Context*); 00675 00676 virtual ::Ice::Short sendRawCmd(const ::std::string&, const ::Ice::Context*); 00677 00678 virtual void playSong(::Ice::Short, const ::Ice::Context*); 00679 00680 virtual void sendStart(const ::Ice::Context*); 00681 00682 virtual void setMode(::Robots::GumbotModes, const ::Ice::Context*); 00683 00684 virtual void setDemo(::Ice::Short, const ::Ice::Context*); 00685 00686 virtual void setLED(::Ice::Short, ::Ice::Short, ::Ice::Short, const ::Ice::Context*); 00687 00688 virtual void shutdown(const ::Ice::Context*); 00689 }; 00690 00691 } 00692 00693 } 00694 00695 namespace Robots 00696 { 00697 00698 class Gumbot : virtual public ::Ice::Object 00699 { 00700 public: 00701 00702 typedef GumbotPrx ProxyType; 00703 typedef GumbotPtr PointerType; 00704 00705 virtual ::Ice::ObjectPtr ice_clone() const; 00706 00707 virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; 00708 virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; 00709 virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; 00710 static const ::std::string& ice_staticId(); 00711 00712 virtual ::Ice::Float getSpeed(const ::Ice::Current& = ::Ice::Current()) = 0; 00713 ::Ice::DispatchStatus ___getSpeed(::IceInternal::Incoming&, const ::Ice::Current&); 00714 00715 virtual ::Ice::Short setSpeed(::Ice::Float, const ::Ice::Current& = ::Ice::Current()) = 0; 00716 ::Ice::DispatchStatus ___setSpeed(::IceInternal::Incoming&, const ::Ice::Current&); 00717 00718 virtual ::Ice::Float getSteering(const ::Ice::Current& = ::Ice::Current()) = 0; 00719 ::Ice::DispatchStatus ___getSteering(::IceInternal::Incoming&, const ::Ice::Current&); 00720 00721 virtual ::Ice::Short setSteering(::Ice::Float, const ::Ice::Current& = ::Ice::Current()) = 0; 00722 ::Ice::DispatchStatus ___setSteering(::IceInternal::Incoming&, const ::Ice::Current&); 00723 00724 virtual ::ImageIceMod::ImageIce getImageSensor(::Ice::Short, const ::Ice::Current& = ::Ice::Current()) = 0; 00725 ::Ice::DispatchStatus ___getImageSensor(::IceInternal::Incoming&, const ::Ice::Current&); 00726 00727 virtual ::ImageIceMod::DimsIce getImageSensorDims(::Ice::Short, const ::Ice::Current& = ::Ice::Current()) = 0; 00728 ::Ice::DispatchStatus ___getImageSensorDims(::IceInternal::Incoming&, const ::Ice::Current&); 00729 00730 virtual ::Ice::Short getSensorValue(::Ice::Short, const ::Ice::Current& = ::Ice::Current()) = 0; 00731 ::Ice::DispatchStatus ___getSensorValue(::IceInternal::Incoming&, const ::Ice::Current&); 00732 00733 virtual void motorsOff(::Ice::Short, const ::Ice::Current& = ::Ice::Current()) = 0; 00734 ::Ice::DispatchStatus ___motorsOff(::IceInternal::Incoming&, const ::Ice::Current&); 00735 00736 virtual void setMotor(::Ice::Short, ::Ice::Float, const ::Ice::Current& = ::Ice::Current()) = 0; 00737 ::Ice::DispatchStatus ___setMotor(::IceInternal::Incoming&, const ::Ice::Current&); 00738 00739 virtual ::Ice::Short sendRawCmd(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) = 0; 00740 ::Ice::DispatchStatus ___sendRawCmd(::IceInternal::Incoming&, const ::Ice::Current&); 00741 00742 virtual void playSong(::Ice::Short, const ::Ice::Current& = ::Ice::Current()) = 0; 00743 ::Ice::DispatchStatus ___playSong(::IceInternal::Incoming&, const ::Ice::Current&); 00744 00745 virtual void sendStart(const ::Ice::Current& = ::Ice::Current()) = 0; 00746 ::Ice::DispatchStatus ___sendStart(::IceInternal::Incoming&, const ::Ice::Current&); 00747 00748 virtual void setMode(::Robots::GumbotModes, const ::Ice::Current& = ::Ice::Current()) = 0; 00749 ::Ice::DispatchStatus ___setMode(::IceInternal::Incoming&, const ::Ice::Current&); 00750 00751 virtual void setDemo(::Ice::Short, const ::Ice::Current& = ::Ice::Current()) = 0; 00752 ::Ice::DispatchStatus ___setDemo(::IceInternal::Incoming&, const ::Ice::Current&); 00753 00754 virtual void setLED(::Ice::Short, ::Ice::Short, ::Ice::Short, const ::Ice::Current& = ::Ice::Current()) = 0; 00755 ::Ice::DispatchStatus ___setLED(::IceInternal::Incoming&, const ::Ice::Current&); 00756 00757 virtual void shutdown(const ::Ice::Current& = ::Ice::Current()) = 0; 00758 ::Ice::DispatchStatus ___shutdown(::IceInternal::Incoming&, const ::Ice::Current&); 00759 00760 virtual ::Ice::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&); 00761 00762 virtual void __write(::IceInternal::BasicStream*) const; 00763 virtual void __read(::IceInternal::BasicStream*, bool); 00764 virtual void __write(const ::Ice::OutputStreamPtr&) const; 00765 virtual void __read(const ::Ice::InputStreamPtr&, bool); 00766 }; 00767 00768 } 00769 00770 #endif