summaryrefslogtreecommitdiff
path: root/rb/src/IceRuby/Communicator.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-11-24 17:29:58 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-11-24 17:29:58 +0000
commit1126cea5189d035934f98822078f2ae23d9739ec (patch)
tree759430bdf201db72abddcd9bb83bed6fb034a6d2 /rb/src/IceRuby/Communicator.cpp
parentCode cleanup (diff)
downloadice-1126cea5189d035934f98822078f2ae23d9739ec.tar.bz2
ice-1126cea5189d035934f98822078f2ae23d9739ec.tar.xz
ice-1126cea5189d035934f98822078f2ae23d9739ec.zip
Added propertyToProxy
Diffstat (limited to 'rb/src/IceRuby/Communicator.cpp')
-rw-r--r--rb/src/IceRuby/Communicator.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/rb/src/IceRuby/Communicator.cpp b/rb/src/IceRuby/Communicator.cpp
index cca120db13c..e967deb5152 100644
--- a/rb/src/IceRuby/Communicator.cpp
+++ b/rb/src/IceRuby/Communicator.cpp
@@ -274,6 +274,21 @@ IceRuby_Communicator_proxyToString(VALUE self, VALUE proxy)
extern "C"
VALUE
+IceRuby_Communicator_propertyToProxy(VALUE self, VALUE str)
+{
+ ICE_RUBY_TRY
+ {
+ Ice::CommunicatorPtr p = getCommunicator(self);
+ string s = getString(str);
+ Ice::ObjectPrx proxy = p->propertyToProxy(s);
+ return createProxy(proxy);
+ }
+ ICE_RUBY_CATCH
+ return Qnil;
+}
+
+extern "C"
+VALUE
IceRuby_Communicator_stringToIdentity(VALUE self, VALUE str)
{
ICE_RUBY_TRY
@@ -515,6 +530,7 @@ IceRuby::initCommunicator(VALUE iceModule)
rb_define_method(_communicatorClass, "shutdown", CAST_METHOD(IceRuby_Communicator_shutdown), 0);
rb_define_method(_communicatorClass, "stringToProxy", CAST_METHOD(IceRuby_Communicator_stringToProxy), 1);
rb_define_method(_communicatorClass, "proxyToString", CAST_METHOD(IceRuby_Communicator_proxyToString), 1);
+ rb_define_method(_communicatorClass, "propertyToProxy", CAST_METHOD(IceRuby_Communicator_propertyToProxy), 1);
rb_define_method(_communicatorClass, "stringToIdentity", CAST_METHOD(IceRuby_Communicator_stringToIdentity), 1);
rb_define_method(_communicatorClass, "identityToString", CAST_METHOD(IceRuby_Communicator_identityToString), 1);
rb_define_method(_communicatorClass, "addObjectFactory", CAST_METHOD(IceRuby_Communicator_addObjectFactory), 2);