14 #include <Ice/LocalException.h> 15 #include <Ice/ObjectFactory.h> 16 #include <Ice/BasicStream.h> 17 #include <Ice/Object.h> 18 #include <IceUtil/Iterator.h> 19 #include <IceUtil/ScopedArray.h> 21 #ifndef ICE_IGNORE_VERSION 22 # if ICE_INT_VERSION / 100 != 302 23 # error Ice version mismatch! 25 # if ICE_INT_VERSION % 100 > 50 26 # error Beta header file detected 28 # if ICE_INT_VERSION % 100 < 1 29 # error Ice patch level mismatch! 62 __os->write(::Ice::ObjectPrx(v));
68 ::Ice::ObjectPrx proxy;
76 v = new ::IceProxy::Demo::EchoSample;
84 __os->write(::Ice::ObjectPtr(v));
96 return p->__usesClasses();
108 p.__clearHandleUnsafe();
117 ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase;
120 __delBase = __getDelegate();
122 __del->
echo(msg, __ctx);
125 catch(const ::IceInternal::LocalExceptionWrapper& __ex)
127 __handleExceptionWrapper(__delBase, __ex);
129 catch(const ::Ice::LocalException& __ex)
131 __handleException(__delBase, __ex, __cnt);
139 return ::Demo::EchoSample::ice_staticId();
142 ::IceInternal::Handle< ::IceDelegateM::Ice::Object>
145 return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Demo::EchoSample);
148 ::IceInternal::Handle< ::IceDelegateD::Ice::Object>
151 return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Demo::EchoSample);
157 return static_cast<const ::IceProxy::Ice::Object&
>(l) == static_cast<const ::IceProxy::Ice::Object&>(r);
163 return static_cast<const ::IceProxy::Ice::Object&
>(l) != static_cast<const ::IceProxy::Ice::Object&>(r);
169 return static_cast<const ::IceProxy::Ice::Object&
>(l) < static_cast<const ::IceProxy::Ice::Object&>(r);
175 return l < r || l == r;
181 return !(l < r) && !(l == r);
196 ::IceInternal::BasicStream* __os = __og.os();
199 catch(const ::Ice::LocalException& __ex)
203 bool __ok = __og.invoke();
206 ::IceInternal::BasicStream* __is = __og.is();
211 __is->throwException();
213 catch(const ::Ice::UserException& __ex)
215 throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
219 catch(const ::Ice::LocalException& __ex)
221 throw ::IceInternal::LocalExceptionWrapper(__ex,
false);
228 ::Ice::Current __current;
232 ::IceInternal::Direct __direct(__current);
238 ::Ice::OperationNotExistException __opEx(__FILE__, __LINE__);
239 __opEx.id = __current.id;
240 __opEx.facet = __current.facet;
241 __opEx.operation = __current.operation;
246 __servant->
echo(msg, __current);
248 catch(const ::Ice::LocalException& __ex)
250 throw ::IceInternal::LocalExceptionWrapper(__ex,
false);
266 throw ::Ice::CloneNotImplementedException(__FILE__, __LINE__);
272 "::Demo::EchoSample",
282 ::std::vector< ::std::string>
300 ::IceInternal::DispatchStatus
303 __checkMode(::Ice::Normal, __current.mode);
304 ::IceInternal::BasicStream* __is = __inS.is();
307 echo(msg, __current);
308 return ::IceInternal::DispatchOK;
320 ::IceInternal::DispatchStatus
324 if(r.first == r.second)
326 return ::IceInternal::DispatchOperationNotExist;
333 return ___echo(in, current);
337 return ___ice_id(in, current);
341 return ___ice_ids(in, current);
345 return ___ice_isA(in, current);
349 return ___ice_ping(in, current);
354 return ::IceInternal::DispatchOperationNotExist;
361 __os->startWriteSlice();
362 __os->endWriteSlice();
363 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 376 __is->readTypeId(myId);
378 __is->startReadSlice();
379 __is->endReadSlice();
380 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 390 Ice::MarshalException ex(__FILE__, __LINE__);
391 ex.reason =
"type Demo::EchoSample was not generated with stream support";
398 Ice::MarshalException ex(__FILE__, __LINE__);
399 ex.reason =
"type Demo::EchoSample was not generated with stream support";
408 *p = ::Demo::EchoSamplePtr::dynamicCast(v);
411 ::Ice::UnexpectedObjectException e(__FILE__, __LINE__);
412 e.type = v->ice_id();
421 return static_cast<const ::Ice::Object&
>(l) == static_cast<const ::Ice::Object&>(r);
427 return static_cast<const ::Ice::Object&
>(l) != static_cast<const ::Ice::Object&>(r);
431 Demo::operator<(const ::Demo::EchoSample& l, const ::Demo::EchoSample& r)
433 return static_cast<const ::Ice::Object&
>(l) < static_cast<const ::Ice::Object&>(r);
439 return l < r || l == r;
443 Demo::operator>(const ::Demo::EchoSample& l, const ::Demo::EchoSample& r)
445 return !(l < r) && !(l == r);
virtual void echo(const ::std::string &, const ::Ice::Context *)=0
bool __usesClasses(const EchoSamplePtr &)
bool operator>=(const EchoSample &, const EchoSample &)
virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object > __createDelegateD()
virtual void __write(::IceInternal::BasicStream *) const
::IceInternal::ProxyHandle< ::IceProxy::Demo::EchoSample > EchoSamplePrx
static const ::std::string __Demo__EchoSample__echo_name
bool operator!=(const EchoSample &, const EchoSample &)
void __patch__EchoSamplePtr(void *, ::Ice::ObjectPtr &)
bool operator<(const EchoSample &, const EchoSample &)
static const ::std::string __Demo__EchoSample_ids[2]
bool operator==(const EchoSample &, const EchoSample &)
void echo(const ::std::string &msg)
void __clearHandleUnsafe(EchoSamplePtr &)
void __decRefUnsafe(const EchoSamplePtr &)
void __read(::IceInternal::BasicStream *, EchoSamplePrx &)
void __addObject(const EchoSamplePtr &, ::IceInternal::GCCountMap &)
::IceInternal::DispatchStatus ___echo(::IceInternal::Incoming &, const ::Ice::Current &)
virtual bool ice_isA(const ::std::string &, const ::Ice::Current &=::Ice::Current()) const
virtual void echo(const ::std::string &, const ::Ice::Context *)
bool operator<=(const EchoSample &, const EchoSample &)
virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object > __createDelegateM()
virtual void __read(::IceInternal::BasicStream *, bool)
virtual void echo(const ::std::string &, const ::Ice::Context *)
void incRef(::Demo::EchoSample *)
void __write(::IceInternal::BasicStream *, const EchoSamplePrx &)
virtual ::Ice::ObjectPtr ice_clone() const
void decRef(::Demo::EchoSample *)
bool operator>(const EchoSample &, const EchoSample &)
static const ::std::string & ice_staticId()
::std::string __Demo__EchoSample_all[]
virtual ::std::vector< ::std::string > ice_ids(const ::Ice::Current &=::Ice::Current()) const
virtual ::IceInternal::DispatchStatus __dispatch(::IceInternal::Incoming &, const ::Ice::Current &)
::IceInternal::Handle< ::Demo::EchoSample > EchoSamplePtr
virtual const ::std::string & ice_id(const ::Ice::Current &=::Ice::Current()) const