Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-21-2008
rodolfo.bamberg rodolfo.bamberg is offline
Registered User
 
Name: Rodolfo Bamberg
Organization: RWTH-Aachen
Project: Master Thesis
 
Join Date: Apr 2008
Posts: 7
why cast

I was wondering, why the the following process at client side has to be made (also in CORBA):
1- ObjectPrx reference
2 - narrow to MyInterfacePrx

Why do mappings not provide a direct resolving feature like:
MyInterfacePrx..ic.stringToProxy(....);
Reply With Quote
  #2 (permalink)  
Old 04-21-2008
bernard's Avatar
bernard bernard is online now
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
Hi Rodolfo,

Welcome to our forums!

Usually you pass proxies around as proxies, so there is no need to call stringToProxy or perform any casting.

However, Ice also provides a way to represent a proxy as a printable ASCII string. This is typically used for bootstrap: you manufacture proxies for a few root objects, and get proxies to other objects from them.

This is done through stringToProxy or propertyToProxy on the communicator object. I guess we could have casts that perform also stringToProxy, i.e.:

Code:
MyInterfacePrx obj = MyInterfacePrx.checkedStringToProxy(ic, str);
but this doesn't sound more convenient than:

Code:
MyInterfacePrx obj = MyInterfacePrx.checkedCast(ic.stringToProxy(str));
Cheers,
Bernard
__________________
Bernard Normier
ZeroC, Inc.
Reply With Quote
  #3 (permalink)  
Old 04-21-2008
rodolfo.bamberg rodolfo.bamberg is offline
Registered User
 
Name: Rodolfo Bamberg
Organization: RWTH-Aachen
Project: Master Thesis
 
Join Date: Apr 2008
Posts: 7
Thanks

Regards,
Rodolfo
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
proxy cast mutschaedi Help Center 6 06-13-2006 07:50 AM
Question about the Ptr cast minifat Help Center 1 08-09-2004 10:15 PM
does icestorm publish data in multi-cast way? paul_1971 Help Center 1 04-13-2004 01:37 AM
OpenSSLPluginI.cpp, invalid static cast on FreeBSD rodrigc Patches 0 02-27-2003 01:08 PM


All times are GMT -4. The time now is 09:59 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.