comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@arcor.de>
Subject: Re: I/O streaming with custom data transport
Date: Wed, 22 Nov 2006 17:11:44 +0100
Date: 2006-11-22T17:02:31+01:00	[thread overview]
Message-ID: <1164211904.20501.5.camel@localhost> (raw)
In-Reply-To: <ek1nao$tiu$1@cernne03.cern.ch>

On Wed, 2006-11-22 at 15:37 +0100, Maciej Sobczak wrote:

> For the moment I assume that in order to do this with text, I have to 
> first format it in some string buffer and then do:
> 
> String'Write(S, Buf);

Have you considered 
 for T'Write use Your_Function...

Also, Ada.Text_IO.Text_Streams is an example of how to use
the attribute functions with text file streams. So you'd have
the formatting in 'Write and the transport mechanics in the
new byte stream type.





  reply	other threads:[~2006-11-22 16:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-21 15:11 I/O streaming with custom data transport Maciej Sobczak
2006-11-21 15:28 ` gautier_niouzes
2006-11-21 17:51 ` Alex R. Mosteo
2006-11-22  9:16   ` Maciej Sobczak
2006-11-22 10:01     ` Alex R. Mosteo
2006-11-22 10:39       ` Maciej Sobczak
2006-11-22 16:06         ` Dmitry A. Kazakov
2006-11-22 16:30         ` Alex R. Mosteo
2006-11-23  5:48         ` Simon Wright
2006-11-22 13:50     ` Robert A Duff
2006-11-22 14:37       ` Maciej Sobczak
2006-11-22 16:11         ` Georg Bauhaus [this message]
2006-11-21 19:02 ` Dmitry A. Kazakov
2006-11-22  9:21   ` Maciej Sobczak
2006-11-22 10:31     ` Dmitry A. Kazakov
replies disabled

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