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 `SeaBeeMessages.ice' 00012 00013 #include <SeaBeeMessages.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 ::Ice::Object* IceInternal::upCast(::SeaBeeSimEvents::CameraConfigMessage* p) { return p; } 00033 ::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::SeaBeeSimEvents::CameraConfigMessage* p) { return p; } 00034 00035 void 00036 SeaBeeSimEvents::__read(::IceInternal::BasicStream* __is, ::SeaBeeSimEvents::CameraConfigMessagePrx& v) 00037 { 00038 ::Ice::ObjectPrx proxy; 00039 __is->read(proxy); 00040 if(!proxy) 00041 { 00042 v = 0; 00043 } 00044 else 00045 { 00046 v = new ::IceProxy::SeaBeeSimEvents::CameraConfigMessage; 00047 v->__copyFrom(proxy); 00048 } 00049 } 00050 00051 const ::std::string& 00052 IceProxy::SeaBeeSimEvents::CameraConfigMessage::ice_staticId() 00053 { 00054 return ::SeaBeeSimEvents::CameraConfigMessage::ice_staticId(); 00055 } 00056 00057 ::IceInternal::Handle< ::IceDelegateM::Ice::Object> 00058 IceProxy::SeaBeeSimEvents::CameraConfigMessage::__createDelegateM() 00059 { 00060 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::SeaBeeSimEvents::CameraConfigMessage); 00061 } 00062 00063 ::IceInternal::Handle< ::IceDelegateD::Ice::Object> 00064 IceProxy::SeaBeeSimEvents::CameraConfigMessage::__createDelegateD() 00065 { 00066 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::SeaBeeSimEvents::CameraConfigMessage); 00067 } 00068 00069 ::IceProxy::Ice::Object* 00070 IceProxy::SeaBeeSimEvents::CameraConfigMessage::__newInstance() const 00071 { 00072 return new CameraConfigMessage; 00073 } 00074 00075 SeaBeeSimEvents::CameraConfigMessage::CameraConfigMessage(::Ice::Int __ice_cameraID, bool __ice_active) : 00076 cameraID(__ice_cameraID), 00077 active(__ice_active) 00078 { 00079 } 00080 00081 ::Ice::ObjectPtr 00082 SeaBeeSimEvents::CameraConfigMessage::ice_clone() const 00083 { 00084 ::SeaBeeSimEvents::CameraConfigMessagePtr __p = new ::SeaBeeSimEvents::CameraConfigMessage(*this); 00085 return __p; 00086 } 00087 00088 static const ::std::string __SeaBeeSimEvents__CameraConfigMessage_ids[3] = 00089 { 00090 "::Ice::Object", 00091 "::RobotSimEvents::EventMessage", 00092 "::SeaBeeSimEvents::CameraConfigMessage" 00093 }; 00094 00095 bool 00096 SeaBeeSimEvents::CameraConfigMessage::ice_isA(const ::std::string& _s, const ::Ice::Current&) const 00097 { 00098 return ::std::binary_search(__SeaBeeSimEvents__CameraConfigMessage_ids, __SeaBeeSimEvents__CameraConfigMessage_ids + 3, _s); 00099 } 00100 00101 ::std::vector< ::std::string> 00102 SeaBeeSimEvents::CameraConfigMessage::ice_ids(const ::Ice::Current&) const 00103 { 00104 return ::std::vector< ::std::string>(&__SeaBeeSimEvents__CameraConfigMessage_ids[0], &__SeaBeeSimEvents__CameraConfigMessage_ids[3]); 00105 } 00106 00107 const ::std::string& 00108 SeaBeeSimEvents::CameraConfigMessage::ice_id(const ::Ice::Current&) const 00109 { 00110 return __SeaBeeSimEvents__CameraConfigMessage_ids[2]; 00111 } 00112 00113 const ::std::string& 00114 SeaBeeSimEvents::CameraConfigMessage::ice_staticId() 00115 { 00116 return __SeaBeeSimEvents__CameraConfigMessage_ids[2]; 00117 } 00118 00119 void 00120 SeaBeeSimEvents::CameraConfigMessage::__write(::IceInternal::BasicStream* __os) const 00121 { 00122 __os->writeTypeId(ice_staticId()); 00123 __os->startWriteSlice(); 00124 __os->write(cameraID); 00125 __os->write(active); 00126 __os->endWriteSlice(); 00127 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00128 EventMessage::__write(__os); 00129 #else 00130 ::RobotSimEvents::EventMessage::__write(__os); 00131 #endif 00132 } 00133 00134 void 00135 SeaBeeSimEvents::CameraConfigMessage::__read(::IceInternal::BasicStream* __is, bool __rid) 00136 { 00137 if(__rid) 00138 { 00139 ::std::string myId; 00140 __is->readTypeId(myId); 00141 } 00142 __is->startReadSlice(); 00143 __is->read(cameraID); 00144 __is->read(active); 00145 __is->endReadSlice(); 00146 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00147 EventMessage::__read(__is, true); 00148 #else 00149 ::RobotSimEvents::EventMessage::__read(__is, true); 00150 #endif 00151 } 00152 00153 void 00154 SeaBeeSimEvents::CameraConfigMessage::__write(const ::Ice::OutputStreamPtr&) const 00155 { 00156 Ice::MarshalException ex(__FILE__, __LINE__); 00157 ex.reason = "type SeaBeeSimEvents::CameraConfigMessage was not generated with stream support"; 00158 throw ex; 00159 } 00160 00161 void 00162 SeaBeeSimEvents::CameraConfigMessage::__read(const ::Ice::InputStreamPtr&, bool) 00163 { 00164 Ice::MarshalException ex(__FILE__, __LINE__); 00165 ex.reason = "type SeaBeeSimEvents::CameraConfigMessage was not generated with stream support"; 00166 throw ex; 00167 } 00168 00169 class __F__SeaBeeSimEvents__CameraConfigMessage : public ::Ice::ObjectFactory 00170 { 00171 public: 00172 00173 virtual ::Ice::ObjectPtr 00174 create(const ::std::string& type) 00175 { 00176 assert(type == ::SeaBeeSimEvents::CameraConfigMessage::ice_staticId()); 00177 return new ::SeaBeeSimEvents::CameraConfigMessage; 00178 } 00179 00180 virtual void 00181 destroy() 00182 { 00183 } 00184 }; 00185 00186 static ::Ice::ObjectFactoryPtr __F__SeaBeeSimEvents__CameraConfigMessage_Ptr = new __F__SeaBeeSimEvents__CameraConfigMessage; 00187 00188 const ::Ice::ObjectFactoryPtr& 00189 SeaBeeSimEvents::CameraConfigMessage::ice_factory() 00190 { 00191 return __F__SeaBeeSimEvents__CameraConfigMessage_Ptr; 00192 } 00193 00194 class __F__SeaBeeSimEvents__CameraConfigMessage__Init 00195 { 00196 public: 00197 00198 __F__SeaBeeSimEvents__CameraConfigMessage__Init() 00199 { 00200 ::IceInternal::factoryTable->addObjectFactory(::SeaBeeSimEvents::CameraConfigMessage::ice_staticId(), ::SeaBeeSimEvents::CameraConfigMessage::ice_factory()); 00201 } 00202 00203 ~__F__SeaBeeSimEvents__CameraConfigMessage__Init() 00204 { 00205 ::IceInternal::factoryTable->removeObjectFactory(::SeaBeeSimEvents::CameraConfigMessage::ice_staticId()); 00206 } 00207 }; 00208 00209 static __F__SeaBeeSimEvents__CameraConfigMessage__Init __F__SeaBeeSimEvents__CameraConfigMessage__i; 00210 00211 #ifdef __APPLE__ 00212 extern "C" { void __F__SeaBeeSimEvents__CameraConfigMessage__initializer() {} } 00213 #endif 00214 00215 void 00216 SeaBeeSimEvents::__patch__CameraConfigMessagePtr(void* __addr, ::Ice::ObjectPtr& v) 00217 { 00218 ::SeaBeeSimEvents::CameraConfigMessagePtr* p = static_cast< ::SeaBeeSimEvents::CameraConfigMessagePtr*>(__addr); 00219 assert(p); 00220 *p = ::SeaBeeSimEvents::CameraConfigMessagePtr::dynamicCast(v); 00221 if(v && !*p) 00222 { 00223 IceInternal::Ex::throwUOE(::SeaBeeSimEvents::CameraConfigMessage::ice_staticId(), v->ice_id()); 00224 } 00225 } 00226 00227 bool 00228 SeaBeeSimEvents::operator==(const ::SeaBeeSimEvents::CameraConfigMessage& l, const ::SeaBeeSimEvents::CameraConfigMessage& r) 00229 { 00230 return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); 00231 } 00232 00233 bool 00234 SeaBeeSimEvents::operator<(const ::SeaBeeSimEvents::CameraConfigMessage& l, const ::SeaBeeSimEvents::CameraConfigMessage& r) 00235 { 00236 return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); 00237 }