summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/Proxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/src/IceE/Proxy.cpp')
-rw-r--r--cppe/src/IceE/Proxy.cpp22
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
{