summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Proxy.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-08-25 01:37:09 +0000
committerMarc Laukien <marc@zeroc.com>2001-08-25 01:37:09 +0000
commita60f5311d60553dea75bffa5d3b38ec6b6eeee35 (patch)
treea4bbaa39b50f85a15b59b1a802a21a2c08a3d487 /cpp/src/Ice/Proxy.cpp
parentThreadPool fixes; Win fixes (diff)
downloadice-a60f5311d60553dea75bffa5d3b38ec6b6eeee35.tar.bz2
ice-a60f5311d60553dea75bffa5d3b38ec6b6eeee35.tar.xz
ice-a60f5311d60553dea75bffa5d3b38ec6b6eeee35.zip
fixes
Diffstat (limited to 'cpp/src/Ice/Proxy.cpp')
-rw-r--r--cpp/src/Ice/Proxy.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp
index e818d04df6a..3b3ae6acaa5 100644
--- a/cpp/src/Ice/Proxy.cpp
+++ b/cpp/src/Ice/Proxy.cpp
@@ -151,6 +151,27 @@ IceProxy::Ice::Object::operator<(const Object& r) const
return _reference->identity < r._reference->identity;
}
+std::string
+IceProxy::Ice::Object::_getIdentity() const
+{
+ return _reference->identity;
+}
+
+::Ice::ObjectPrx
+IceProxy::Ice::Object::_newIdentity(const std::string& newIdentity) const
+{
+ if (newIdentity == _reference->identity)
+ {
+ return ObjectPrx(const_cast< ::IceProxy::Ice::Object*>(this));
+ }
+ else
+ {
+ ObjectPrx proxy(new ::IceProxy::Ice::Object());
+ proxy->setup(_reference->changeIdentity(newIdentity));
+ return proxy;
+ }
+}
+
ObjectPrx
IceProxy::Ice::Object::_twoway() const
{