comp.lang.ada
 help / color / mirror / Atom feed
From: stephane.carrez@gmail.com
Subject: Re: Pipes-and-Filters
Date: Tue, 12 May 2015 13:18:56 -0700 (PDT)
Date: 2015-05-12T13:18:56-07:00	[thread overview]
Message-ID: <f28ce7a0-1736-4f6a-8dd1-2fe587699e9e@googlegroups.com> (raw)
In-Reply-To: <3dd8381f-ba34-4921-a2fe-c6bbf060f6f7@googlegroups.com>

Le dimanche 26 avril 2015 22:18:03 UTC+2, dpt a écrit :
> Hello,
> 
> I want to port a Pipes-and-Filters framework (http://architecture-group-4.googlecode.com/svn-history/trunk/PipeAndFilter/src/edu/cmu/architecture/assignment1/framework/FilterFramework.java) to Ada. 
> 
> It uses PipedInputStream and PipedOutputStream.
> https://docs.oracle.com/javase/7/docs/api/java/io/PipedInputStream.html
> https://docs.oracle.com/javase/7/docs/api/java/io/PipedOutputStream.html
> 
> Does something equivalent exists in Ada? I could not find anything by now.
> 
> Best Regards

You may have a look at Ada Utility Library and the Util.Streams framework.
The framework defines the Output_Stream and Input_Stream interfaces similar
to the Java interfaces.  The Pipe_Stream can be used in place for the
PipedInputStream or PipedOutputStream (it implements both interfaces).
The framework is not as complete as the Java stream framework but you
can still chain Input_Stream/Output_Stream instances together.

The interesting Ada packages for the stream management are these:

https://github.com/stcarrez/ada-util/blob/master/src/util-streams-pipes.ads
https://github.com/stcarrez/ada-util/blob/master/src/util-streams-buffered.ads
https://github.com/stcarrez/ada-util/blob/master/src/util-streams-sockets.ads
https://github.com/stcarrez/ada-util/blob/master/src/util-streams-texts.ads

Stephane


      parent reply	other threads:[~2015-05-12 20:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-26 20:18 Pipes-and-Filters dpt
2015-04-26 22:17 ` Pipes-and-Filters David Botton
2015-04-27  7:18 ` Pipes-and-Filters Dmitry A. Kazakov
2015-04-29 18:05 ` Pipes-and-Filters Jacob Sparre Andersen
2015-05-12 20:18 ` stephane.carrez [this message]
replies disabled

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