diff options
author | Benoit Foucher <benoit@zeroc.com> | 2007-05-02 14:23:10 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2007-05-02 14:23:10 +0000 |
commit | fe95fb2662c99f5aa6763930be2dba9430aed6af (patch) | |
tree | b4eff6ca265c3df4a83710d1563a89da9a44d7bb /cppe/src/IceE/Proxy.cpp | |
parent | Modified emulator version (diff) | |
download | ice-fe95fb2662c99f5aa6763930be2dba9430aed6af.tar.bz2 ice-fe95fb2662c99f5aa6763930be2dba9430aed6af.tar.xz ice-fe95fb2662c99f5aa6763930be2dba9430aed6af.zip |
Added ice_getAdapterId/ice_adapterId.
Diffstat (limited to 'cppe/src/IceE/Proxy.cpp')
-rw-r--r-- | cppe/src/IceE/Proxy.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cppe/src/IceE/Proxy.cpp b/cppe/src/IceE/Proxy.cpp index 18e4ae676bc..357d43dd63a 100644 --- a/cppe/src/IceE/Proxy.cpp +++ b/cppe/src/IceE/Proxy.cpp @@ -487,6 +487,28 @@ IceProxy::Ice::Object::ice_router(const RouterPrx& router) const #ifdef ICEE_HAS_LOCATOR +string +IceProxy::Ice::Object::ice_getAdapterId() const +{ + return _reference->getAdapterId(); +} + +ObjectPrx +IceProxy::Ice::Object::ice_adapterId(const string& adapterId) const +{ + ReferencePtr ref = _reference->changeAdapterId(adapterId); + if(ref == _reference) + { + return ObjectPrx(const_cast< ::IceProxy::Ice::Object*>(this)); + } + else + { + ObjectPrx proxy(new ::IceProxy::Ice::Object()); + proxy->setup(ref); + return proxy; + } +} + LocatorPrx IceProxy::Ice::Object::ice_getLocator() const { |