Article View: comp.object.corba
Article #20Re: extensible structs/interoperability
From: Martin v.Loewis
Date: Wed, 28 Jun 2000 00:00
Date: Wed, 28 Jun 2000 00:00
35 lines
1913 bytes
1913 bytes
In article <8jc0ms$nqt$1@slb6.atl.mindspring.net>,
Paula DiTallo <ditallop@sprynet.com> wrote:
>Any suggestions that you have will be very well received!;-}
I believe there are about three ways to define "variable" data, like
hashtables, in IDL:
1. Use sequences:
struct item{
string key, value; // value may need to be of type any
};
typedef sequence<item> hash;
2. Use an interface:
interface Hash{
string get(in string key);
void set(in string key,string value);
};
3. Use a value type:
valuetype item{
public string key;
public ValueBase value;
};
valuetype hash{
private sequence<item> items;
public ValueBase get(in string key);
public void set(in string key, in ValueBase value);
};
They all differ in the amount of data sent during initial retrieval,
the communication involved during access, and the convenience to the
client when accessing them.
Regards,
Martin
Technical Details
Message-ID:
<8jc8pu$6d6$1@news.cs.tu-berlin.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8jc0ms$nqt$1@slb6.atl.mindspring.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 108bbb,222a36e4c2f8e995 X-Google-Attributes: gid108bbb,public X-Google-Thread: f753e,222a36e4c2f8e995 X-Google-Attributes: gidf753e,public X-Google-Thread: 10b07f,222a36e4c2f8e995 X-Google-Attributes: gid10b07f,public From: loewis@cs.tu-berlin.de (Martin v.Loewis) Subject: Re: extensible structs/interoperability Date: 2000/06/28 Message-ID: <8jc8pu$6d6$1@news.cs.tu-berlin.de> X-Deja-AN: 639885253 Content-Transfer-Encoding: 8bit References: <8jc0ms$nqt$1@slb6.atl.mindspring.net> Content-Type: text/plain; charset=ISO-8859-1 X-Complaints-To: news@cs.tu-berlin.de X-Trace: news.cs.tu-berlin.de 962176638 6566 130.149.17.112 (28 Jun 2000 07:17:18 GMT) Organization: Technical University of Berlin, Germany Mime-Version: 1.0 NNTP-Posting-Date: 28 Jun 2000 07:17:18 GMT Newsgroups: comp.object.corba,comp.lang.java.corba,borland.public.jbuilder.corba-rmi