summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ProxyFactory.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-10-26 14:55:24 -0230
committerDwayne Boone <dwayne@zeroc.com>2009-10-26 14:55:24 -0230
commit20899304e74276a6d9c12ae9f713901e6ebfc840 (patch)
tree5970a5ff612c59e4bc3147908756ec742a1d09aa /cpp/src/Ice/ProxyFactory.cpp
parentFixed Windows link error (diff)
downloadice-20899304e74276a6d9c12ae9f713901e6ebfc840.tar.bz2
ice-20899304e74276a6d9c12ae9f713901e6ebfc840.tar.xz
ice-20899304e74276a6d9c12ae9f713901e6ebfc840.zip
Bug 3137 - add proxyToProperty
Diffstat (limited to 'cpp/src/Ice/ProxyFactory.cpp')
-rw-r--r--cpp/src/Ice/ProxyFactory.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/cpp/src/Ice/ProxyFactory.cpp b/cpp/src/Ice/ProxyFactory.cpp
index f139c87222d..37ffe383e64 100644
--- a/cpp/src/Ice/ProxyFactory.cpp
+++ b/cpp/src/Ice/ProxyFactory.cpp
@@ -55,6 +55,19 @@ IceInternal::ProxyFactory::propertyToProxy(const string& prefix) const
return referenceToProxy(ref);
}
+PropertyDict
+IceInternal::ProxyFactory::proxyToProperty(const ObjectPrx& proxy, const string& prefix) const
+{
+ if(proxy)
+ {
+ return proxy->__reference()->toProperty(prefix);
+ }
+ else
+ {
+ return PropertyDict();
+ }
+}
+
ObjectPrx
IceInternal::ProxyFactory::streamToProxy(BasicStream* s) const
{