00001 // ********************************************************************** 00002 // 00003 // Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved. 00004 // 00005 // This copy of Ice-E is licensed to you under the terms described in the 00006 // ICEE_LICENSE file included in this distribution. 00007 // 00008 // ********************************************************************** 00009 00010 // Ice-E version 1.3.0 00011 // Generated from file `SimpleRobotSimEvents.ice' 00012 00013 #ifndef __SimpleRobotSimEvents_h__ 00014 #define __SimpleRobotSimEvents_h__ 00015 00016 #include <IceE/ProxyF.h> 00017 #include <IceE/ObjectF.h> 00018 #include <IceE/Exception.h> 00019 #include <IceE/ScopedArray.h> 00020 #include <IceE/Proxy.h> 00021 #include <IceE/Object.h> 00022 #ifndef ICEE_PURE_CLIENT 00023 # include <IceE/Incoming.h> 00024 #endif 00025 #include <IceE/Outgoing.h> 00026 #include <IceE/FactoryTable.h> 00027 #include <ImageIce.h> 00028 #include <IceE/UndefSysMacros.h> 00029 00030 #ifndef ICEE_IGNORE_VERSION 00031 # if ICEE_INT_VERSION / 100 != 103 00032 # error IceE version mismatch! 00033 # endif 00034 # if ICEE_INT_VERSION % 100 < 0 00035 # error IceE patch level mismatch! 00036 # endif 00037 #endif 00038 00039 namespace IceProxy 00040 { 00041 00042 namespace RobotSimEvents 00043 { 00044 00045 class EventMessage; 00046 00047 class Events; 00048 00049 class RetinaMessage; 00050 00051 class CameraConfigMessage; 00052 00053 } 00054 00055 } 00056 00057 namespace RobotSimEvents 00058 { 00059 00060 class EventMessage; 00061 bool operator==(const EventMessage&, const EventMessage&); 00062 bool operator<(const EventMessage&, const EventMessage&); 00063 00064 class Events; 00065 bool operator==(const Events&, const Events&); 00066 bool operator<(const Events&, const Events&); 00067 00068 class RetinaMessage; 00069 bool operator==(const RetinaMessage&, const RetinaMessage&); 00070 bool operator<(const RetinaMessage&, const RetinaMessage&); 00071 00072 class CameraConfigMessage; 00073 bool operator==(const CameraConfigMessage&, const CameraConfigMessage&); 00074 bool operator<(const CameraConfigMessage&, const CameraConfigMessage&); 00075 00076 } 00077 00078 namespace IceInternal 00079 { 00080 00081 ::Ice::Object* upCast(::RobotSimEvents::EventMessage*); 00082 ::IceProxy::Ice::Object* upCast(::IceProxy::RobotSimEvents::EventMessage*); 00083 00084 ::Ice::Object* upCast(::RobotSimEvents::Events*); 00085 ::IceProxy::Ice::Object* upCast(::IceProxy::RobotSimEvents::Events*); 00086 00087 ::Ice::Object* upCast(::RobotSimEvents::RetinaMessage*); 00088 ::IceProxy::Ice::Object* upCast(::IceProxy::RobotSimEvents::RetinaMessage*); 00089 00090 ::Ice::Object* upCast(::RobotSimEvents::CameraConfigMessage*); 00091 ::IceProxy::Ice::Object* upCast(::IceProxy::RobotSimEvents::CameraConfigMessage*); 00092 00093 } 00094 00095 namespace RobotSimEvents 00096 { 00097 00098 typedef ::IceInternal::Handle< ::RobotSimEvents::EventMessage> EventMessagePtr; 00099 typedef ::IceInternal::ProxyHandle< ::IceProxy::RobotSimEvents::EventMessage> EventMessagePrx; 00100 00101 void __read(::IceInternal::BasicStream*, EventMessagePrx&); 00102 void __patch__EventMessagePtr(void*, ::Ice::ObjectPtr&); 00103 00104 typedef ::IceInternal::Handle< ::RobotSimEvents::Events> EventsPtr; 00105 typedef ::IceInternal::ProxyHandle< ::IceProxy::RobotSimEvents::Events> EventsPrx; 00106 00107 void __read(::IceInternal::BasicStream*, EventsPrx&); 00108 void __patch__EventsPtr(void*, ::Ice::ObjectPtr&); 00109 00110 typedef ::IceInternal::Handle< ::RobotSimEvents::RetinaMessage> RetinaMessagePtr; 00111 typedef ::IceInternal::ProxyHandle< ::IceProxy::RobotSimEvents::RetinaMessage> RetinaMessagePrx; 00112 00113 void __read(::IceInternal::BasicStream*, RetinaMessagePrx&); 00114 void __patch__RetinaMessagePtr(void*, ::Ice::ObjectPtr&); 00115 00116 typedef ::IceInternal::Handle< ::RobotSimEvents::CameraConfigMessage> CameraConfigMessagePtr; 00117 typedef ::IceInternal::ProxyHandle< ::IceProxy::RobotSimEvents::CameraConfigMessage> CameraConfigMessagePrx; 00118 00119 void __read(::IceInternal::BasicStream*, CameraConfigMessagePrx&); 00120 void __patch__CameraConfigMessagePtr(void*, ::Ice::ObjectPtr&); 00121 00122 } 00123 00124 namespace RobotSimEvents 00125 { 00126 00127 } 00128 00129 namespace RobotSimEvents 00130 { 00131 00132 class EventMessage : virtual public ::Ice::Object 00133 { 00134 public: 00135 00136 typedef EventMessagePrx ProxyType; 00137 typedef EventMessagePtr PointerType; 00138 00139 EventMessage() {} 00140 00141 virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; 00142 virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; 00143 virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; 00144 static const ::std::string& ice_staticId(); 00145 00146 virtual void __write(::IceInternal::BasicStream*) const; 00147 virtual void __read(::IceInternal::BasicStream*, bool); 00148 00149 static const ::Ice::ObjectFactoryPtr& ice_factory(); 00150 00151 protected: 00152 00153 virtual ~EventMessage() {} 00154 }; 00155 00156 class Events : virtual public ::Ice::Object 00157 { 00158 public: 00159 00160 typedef EventsPrx ProxyType; 00161 typedef EventsPtr PointerType; 00162 00163 00164 virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; 00165 virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; 00166 virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; 00167 static const ::std::string& ice_staticId(); 00168 00169 virtual void updateMessage(const ::RobotSimEvents::EventMessagePtr&, const ::Ice::Current& = ::Ice::Current()) = 0; 00170 #ifndef ICEE_PURE_CLIENT 00171 ::Ice::DispatchStatus ___updateMessage(::IceInternal::Incoming&, const ::Ice::Current&); 00172 #endif // ICEE_PURE_CLIENT 00173 00174 #ifndef ICEE_PURE_CLIENT 00175 virtual ::Ice::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&); 00176 #endif // ICEE_PURE_CLIENT 00177 00178 virtual void __write(::IceInternal::BasicStream*) const; 00179 virtual void __read(::IceInternal::BasicStream*, bool); 00180 }; 00181 00182 class RetinaMessage : virtual public ::RobotSimEvents::EventMessage 00183 { 00184 public: 00185 00186 typedef RetinaMessagePrx ProxyType; 00187 typedef RetinaMessagePtr PointerType; 00188 00189 RetinaMessage() {} 00190 RetinaMessage(const ::ImageIceMod::ImageIce&, const ::std::string&); 00191 00192 virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; 00193 virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; 00194 virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; 00195 static const ::std::string& ice_staticId(); 00196 00197 00198 virtual void __write(::IceInternal::BasicStream*) const; 00199 virtual void __read(::IceInternal::BasicStream*, bool); 00200 00201 static const ::Ice::ObjectFactoryPtr& ice_factory(); 00202 00203 protected: 00204 00205 virtual ~RetinaMessage() {} 00206 00207 00208 public: 00209 00210 ::ImageIceMod::ImageIce img; 00211 ::std::string cameraID; 00212 }; 00213 00214 class CameraConfigMessage : virtual public ::RobotSimEvents::EventMessage 00215 { 00216 public: 00217 00218 typedef CameraConfigMessagePrx ProxyType; 00219 typedef CameraConfigMessagePtr PointerType; 00220 00221 CameraConfigMessage() {} 00222 CameraConfigMessage(const ::std::string&, bool); 00223 00224 virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; 00225 virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; 00226 virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; 00227 static const ::std::string& ice_staticId(); 00228 00229 00230 virtual void __write(::IceInternal::BasicStream*) const; 00231 virtual void __read(::IceInternal::BasicStream*, bool); 00232 00233 static const ::Ice::ObjectFactoryPtr& ice_factory(); 00234 00235 protected: 00236 00237 virtual ~CameraConfigMessage() {} 00238 00239 00240 public: 00241 00242 ::std::string cameraID; 00243 bool active; 00244 }; 00245 00246 } 00247 00248 namespace IceProxy 00249 { 00250 00251 namespace RobotSimEvents 00252 { 00253 00254 class EventMessage : virtual public ::IceProxy::Ice::Object 00255 { 00256 public: 00257 00258 ::IceInternal::ProxyHandle<EventMessage> ice_context(const ::Ice::Context& __context) const 00259 { 00260 return dynamic_cast<EventMessage*>(::IceProxy::Ice::Object::ice_context(__context).get()); 00261 } 00262 00263 ::IceInternal::ProxyHandle<EventMessage> ice_secure(bool __secure) const 00264 { 00265 return dynamic_cast<EventMessage*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); 00266 } 00267 00268 #ifdef ICEE_HAS_ROUTER 00269 ::IceInternal::ProxyHandle<EventMessage> ice_router(const ::Ice::RouterPrx& __router) const 00270 { 00271 return dynamic_cast<EventMessage*>(::IceProxy::Ice::Object::ice_router(__router).get()); 00272 } 00273 #endif // ICEE_HAS_ROUTER 00274 00275 #ifdef ICEE_HAS_LOCATOR 00276 ::IceInternal::ProxyHandle<EventMessage> ice_locator(const ::Ice::LocatorPrx& __locator) const 00277 { 00278 return dynamic_cast<EventMessage*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); 00279 } 00280 00281 ::IceInternal::ProxyHandle<EventMessage> ice_adapterId(const std::string& __id) const 00282 { 00283 return dynamic_cast<EventMessage*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); 00284 } 00285 #endif // ICEE_HAS_LOCATOR 00286 00287 ::IceInternal::ProxyHandle<EventMessage> ice_twoway() const 00288 { 00289 return dynamic_cast<EventMessage*>(::IceProxy::Ice::Object::ice_twoway().get()); 00290 } 00291 00292 ::IceInternal::ProxyHandle<EventMessage> ice_oneway() const 00293 { 00294 return dynamic_cast<EventMessage*>(::IceProxy::Ice::Object::ice_oneway().get()); 00295 } 00296 00297 ::IceInternal::ProxyHandle<EventMessage> ice_batchOneway() const 00298 { 00299 return dynamic_cast<EventMessage*>(::IceProxy::Ice::Object::ice_batchOneway().get()); 00300 } 00301 00302 ::IceInternal::ProxyHandle<EventMessage> ice_datagram() const 00303 { 00304 return dynamic_cast<EventMessage*>(::IceProxy::Ice::Object::ice_datagram().get()); 00305 } 00306 00307 ::IceInternal::ProxyHandle<EventMessage> ice_batchDatagram() const 00308 { 00309 return dynamic_cast<EventMessage*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); 00310 } 00311 00312 ::IceInternal::ProxyHandle<EventMessage> ice_timeout(int __timeout) const 00313 { 00314 return dynamic_cast<EventMessage*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); 00315 } 00316 00317 static const ::std::string& ice_staticId(); 00318 00319 private: 00320 00321 virtual ::IceProxy::Ice::Object* __newInstance() const; 00322 }; 00323 00324 class Events : virtual public ::IceProxy::Ice::Object 00325 { 00326 public: 00327 00328 void updateMessage(const ::RobotSimEvents::EventMessagePtr& eMsg) 00329 { 00330 updateMessage(eMsg, 0); 00331 } 00332 void updateMessage(const ::RobotSimEvents::EventMessagePtr& eMsg, const ::Ice::Context& __ctx) 00333 { 00334 updateMessage(eMsg, &__ctx); 00335 } 00336 00337 private: 00338 00339 void updateMessage(const ::RobotSimEvents::EventMessagePtr&, const ::Ice::Context*); 00340 00341 public: 00342 00343 ::IceInternal::ProxyHandle<Events> ice_context(const ::Ice::Context& __context) const 00344 { 00345 return dynamic_cast<Events*>(::IceProxy::Ice::Object::ice_context(__context).get()); 00346 } 00347 00348 ::IceInternal::ProxyHandle<Events> ice_secure(bool __secure) const 00349 { 00350 return dynamic_cast<Events*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); 00351 } 00352 00353 #ifdef ICEE_HAS_ROUTER 00354 ::IceInternal::ProxyHandle<Events> ice_router(const ::Ice::RouterPrx& __router) const 00355 { 00356 return dynamic_cast<Events*>(::IceProxy::Ice::Object::ice_router(__router).get()); 00357 } 00358 #endif // ICEE_HAS_ROUTER 00359 00360 #ifdef ICEE_HAS_LOCATOR 00361 ::IceInternal::ProxyHandle<Events> ice_locator(const ::Ice::LocatorPrx& __locator) const 00362 { 00363 return dynamic_cast<Events*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); 00364 } 00365 00366 ::IceInternal::ProxyHandle<Events> ice_adapterId(const std::string& __id) const 00367 { 00368 return dynamic_cast<Events*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); 00369 } 00370 #endif // ICEE_HAS_LOCATOR 00371 00372 ::IceInternal::ProxyHandle<Events> ice_twoway() const 00373 { 00374 return dynamic_cast<Events*>(::IceProxy::Ice::Object::ice_twoway().get()); 00375 } 00376 00377 ::IceInternal::ProxyHandle<Events> ice_oneway() const 00378 { 00379 return dynamic_cast<Events*>(::IceProxy::Ice::Object::ice_oneway().get()); 00380 } 00381 00382 ::IceInternal::ProxyHandle<Events> ice_batchOneway() const 00383 { 00384 return dynamic_cast<Events*>(::IceProxy::Ice::Object::ice_batchOneway().get()); 00385 } 00386 00387 ::IceInternal::ProxyHandle<Events> ice_datagram() const 00388 { 00389 return dynamic_cast<Events*>(::IceProxy::Ice::Object::ice_datagram().get()); 00390 } 00391 00392 ::IceInternal::ProxyHandle<Events> ice_batchDatagram() const 00393 { 00394 return dynamic_cast<Events*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); 00395 } 00396 00397 ::IceInternal::ProxyHandle<Events> ice_timeout(int __timeout) const 00398 { 00399 return dynamic_cast<Events*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); 00400 } 00401 00402 static const ::std::string& ice_staticId(); 00403 00404 private: 00405 00406 virtual ::IceProxy::Ice::Object* __newInstance() const; 00407 }; 00408 00409 class RetinaMessage : virtual public ::IceProxy::RobotSimEvents::EventMessage 00410 { 00411 public: 00412 00413 ::IceInternal::ProxyHandle<RetinaMessage> ice_context(const ::Ice::Context& __context) const 00414 { 00415 return dynamic_cast<RetinaMessage*>(::IceProxy::Ice::Object::ice_context(__context).get()); 00416 } 00417 00418 ::IceInternal::ProxyHandle<RetinaMessage> ice_secure(bool __secure) const 00419 { 00420 return dynamic_cast<RetinaMessage*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); 00421 } 00422 00423 #ifdef ICEE_HAS_ROUTER 00424 ::IceInternal::ProxyHandle<RetinaMessage> ice_router(const ::Ice::RouterPrx& __router) const 00425 { 00426 return dynamic_cast<RetinaMessage*>(::IceProxy::Ice::Object::ice_router(__router).get()); 00427 } 00428 #endif // ICEE_HAS_ROUTER 00429 00430 #ifdef ICEE_HAS_LOCATOR 00431 ::IceInternal::ProxyHandle<RetinaMessage> ice_locator(const ::Ice::LocatorPrx& __locator) const 00432 { 00433 return dynamic_cast<RetinaMessage*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); 00434 } 00435 00436 ::IceInternal::ProxyHandle<RetinaMessage> ice_adapterId(const std::string& __id) const 00437 { 00438 return dynamic_cast<RetinaMessage*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); 00439 } 00440 #endif // ICEE_HAS_LOCATOR 00441 00442 ::IceInternal::ProxyHandle<RetinaMessage> ice_twoway() const 00443 { 00444 return dynamic_cast<RetinaMessage*>(::IceProxy::Ice::Object::ice_twoway().get()); 00445 } 00446 00447 ::IceInternal::ProxyHandle<RetinaMessage> ice_oneway() const 00448 { 00449 return dynamic_cast<RetinaMessage*>(::IceProxy::Ice::Object::ice_oneway().get()); 00450 } 00451 00452 ::IceInternal::ProxyHandle<RetinaMessage> ice_batchOneway() const 00453 { 00454 return dynamic_cast<RetinaMessage*>(::IceProxy::Ice::Object::ice_batchOneway().get()); 00455 } 00456 00457 ::IceInternal::ProxyHandle<RetinaMessage> ice_datagram() const 00458 { 00459 return dynamic_cast<RetinaMessage*>(::IceProxy::Ice::Object::ice_datagram().get()); 00460 } 00461 00462 ::IceInternal::ProxyHandle<RetinaMessage> ice_batchDatagram() const 00463 { 00464 return dynamic_cast<RetinaMessage*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); 00465 } 00466 00467 ::IceInternal::ProxyHandle<RetinaMessage> ice_timeout(int __timeout) const 00468 { 00469 return dynamic_cast<RetinaMessage*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); 00470 } 00471 00472 static const ::std::string& ice_staticId(); 00473 00474 private: 00475 00476 virtual ::IceProxy::Ice::Object* __newInstance() const; 00477 }; 00478 00479 class CameraConfigMessage : virtual public ::IceProxy::RobotSimEvents::EventMessage 00480 { 00481 public: 00482 00483 ::IceInternal::ProxyHandle<CameraConfigMessage> ice_context(const ::Ice::Context& __context) const 00484 { 00485 return dynamic_cast<CameraConfigMessage*>(::IceProxy::Ice::Object::ice_context(__context).get()); 00486 } 00487 00488 ::IceInternal::ProxyHandle<CameraConfigMessage> ice_secure(bool __secure) const 00489 { 00490 return dynamic_cast<CameraConfigMessage*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); 00491 } 00492 00493 #ifdef ICEE_HAS_ROUTER 00494 ::IceInternal::ProxyHandle<CameraConfigMessage> ice_router(const ::Ice::RouterPrx& __router) const 00495 { 00496 return dynamic_cast<CameraConfigMessage*>(::IceProxy::Ice::Object::ice_router(__router).get()); 00497 } 00498 #endif // ICEE_HAS_ROUTER 00499 00500 #ifdef ICEE_HAS_LOCATOR 00501 ::IceInternal::ProxyHandle<CameraConfigMessage> ice_locator(const ::Ice::LocatorPrx& __locator) const 00502 { 00503 return dynamic_cast<CameraConfigMessage*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); 00504 } 00505 00506 ::IceInternal::ProxyHandle<CameraConfigMessage> ice_adapterId(const std::string& __id) const 00507 { 00508 return dynamic_cast<CameraConfigMessage*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); 00509 } 00510 #endif // ICEE_HAS_LOCATOR 00511 00512 ::IceInternal::ProxyHandle<CameraConfigMessage> ice_twoway() const 00513 { 00514 return dynamic_cast<CameraConfigMessage*>(::IceProxy::Ice::Object::ice_twoway().get()); 00515 } 00516 00517 ::IceInternal::ProxyHandle<CameraConfigMessage> ice_oneway() const 00518 { 00519 return dynamic_cast<CameraConfigMessage*>(::IceProxy::Ice::Object::ice_oneway().get()); 00520 } 00521 00522 ::IceInternal::ProxyHandle<CameraConfigMessage> ice_batchOneway() const 00523 { 00524 return dynamic_cast<CameraConfigMessage*>(::IceProxy::Ice::Object::ice_batchOneway().get()); 00525 } 00526 00527 ::IceInternal::ProxyHandle<CameraConfigMessage> ice_datagram() const 00528 { 00529 return dynamic_cast<CameraConfigMessage*>(::IceProxy::Ice::Object::ice_datagram().get()); 00530 } 00531 00532 ::IceInternal::ProxyHandle<CameraConfigMessage> ice_batchDatagram() const 00533 { 00534 return dynamic_cast<CameraConfigMessage*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); 00535 } 00536 00537 ::IceInternal::ProxyHandle<CameraConfigMessage> ice_timeout(int __timeout) const 00538 { 00539 return dynamic_cast<CameraConfigMessage*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); 00540 } 00541 00542 static const ::std::string& ice_staticId(); 00543 00544 private: 00545 00546 virtual ::IceProxy::Ice::Object* __newInstance() const; 00547 }; 00548 00549 } 00550 00551 } 00552 00553 #endif