comp.lang.ada
 help / color / mirror / Atom feed
* List of strings as an argument of a RCI function?
@ 2002-05-02 13:40 Tomas Hlavaty
  2002-05-02 16:51 ` Jean-Pierre Rosen
  2002-05-02 17:15 ` Pascal Obry
  0 siblings, 2 replies; 5+ messages in thread
From: Tomas Hlavaty @ 2002-05-02 13:40 UTC (permalink / raw)


I'm trying to define a RCI function with an output argument of my type
List_Of_Strings. But, there is a problem with the unit categorization,
because all useful string packages (as Ada.Strings.Unbounded) has no
categorization. Could anybody suggest me a solution? Should I define my
own string type? Why have string packages no categorization, e.g.
Remote_Types?

Thaks,

Tomas



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: List of strings as an argument of a RCI function?
  2002-05-02 13:40 List of strings as an argument of a RCI function? Tomas Hlavaty
@ 2002-05-02 16:51 ` Jean-Pierre Rosen
  2002-05-02 17:15 ` Pascal Obry
  1 sibling, 0 replies; 5+ messages in thread
From: Jean-Pierre Rosen @ 2002-05-02 16:51 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 739 bytes --]


"Tomas Hlavaty" <hlavaty@labe.felk.cvut.cz> a �crit dans le message news: 3CD141D6.C6E6D8D@labe.felk.cvut.cz...
> I'm trying to define a RCI function with an output argument of my type
> List_Of_Strings. But, there is a problem with the unit categorization,
> because all useful string packages (as Ada.Strings.Unbounded) has no
> categorization. Could anybody suggest me a solution? Should I define my
> own string type? Why have string packages no categorization, e.g.
> Remote_Types?
>
You can use Variable_String, from Adalog's components page:
http://www.adalog.fr/compo2.htm


--
---------------------------------------------------------
           J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: List of strings as an argument of a RCI function?
  2002-05-02 13:40 List of strings as an argument of a RCI function? Tomas Hlavaty
  2002-05-02 16:51 ` Jean-Pierre Rosen
@ 2002-05-02 17:15 ` Pascal Obry
  2002-05-03 11:14   ` Tomas Hlavaty
  1 sibling, 1 reply; 5+ messages in thread
From: Pascal Obry @ 2002-05-02 17:15 UTC (permalink / raw)



Tomas Hlavaty <hlavaty@labe.felk.cvut.cz> writes:

> I'm trying to define a RCI function with an output argument of my type
> List_Of_Strings. But, there is a problem with the unit categorization,
> because all useful string packages (as Ada.Strings.Unbounded) has no
> categorization. Could anybody suggest me a solution? Should I define my
> own string type? 

Yes use an access to string type. Then you'll have to provide you're own
read/write rountine to serialize the list and rebuild it at the other side. I
could dig out a simple distributed list of strings implementation if you want.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: List of strings as an argument of a RCI function?
  2002-05-02 17:15 ` Pascal Obry
@ 2002-05-03 11:14   ` Tomas Hlavaty
  2002-05-03 16:55     ` Pascal Obry
  0 siblings, 1 reply; 5+ messages in thread
From: Tomas Hlavaty @ 2002-05-03 11:14 UTC (permalink / raw)


Pascal Obry wrote:
> 
> Tomas Hlavaty <hlavaty@labe.felk.cvut.cz> writes:
> 
> > I'm trying to define a RCI function with an output argument of my type
> > List_Of_Strings. But, there is a problem with the unit categorization,
> > because all useful string packages (as Ada.Strings.Unbounded) has no
> > categorization. Could anybody suggest me a solution? Should I define my
> > own string type?
> 
> Yes use an access to string type. Then you'll have to provide you're own
> read/write rountine to serialize the list and rebuild it at the other side.

> I could dig out a simple distributed list of strings implementation if you
> want.

Could you? Thanks.

I have my own list implementation and it works except with the access to
(String?) type. There might be the problem.

Tomas



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: List of strings as an argument of a RCI function?
  2002-05-03 11:14   ` Tomas Hlavaty
@ 2002-05-03 16:55     ` Pascal Obry
  0 siblings, 0 replies; 5+ messages in thread
From: Pascal Obry @ 2002-05-03 16:55 UTC (permalink / raw)



Tomas Hlavaty <hlavaty@labe.felk.cvut.cz> writes:

> Could you? Thanks.

I've sent my distribued string list implementation directly to Tomas. If
somebody else want to have a look let me know.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-05-03 16:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-02 13:40 List of strings as an argument of a RCI function? Tomas Hlavaty
2002-05-02 16:51 ` Jean-Pierre Rosen
2002-05-02 17:15 ` Pascal Obry
2002-05-03 11:14   ` Tomas Hlavaty
2002-05-03 16:55     ` Pascal Obry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox