Re: I/O streaming with custom data transport
- From: "Dmitry A. Kazakov" <mailbox@xxxxxxxxxxxxxxxxx>
- Date: Wed, 22 Nov 2006 17:06:22 +0100
On Wed, 22 Nov 2006 11:39:48 +0100, Maciej Sobczak wrote:
Another issue - what about the text formatting? The standard Put(...)
procedures are quite powerful, is there any way to reuse them (or at
least their logic) with custom streams?
?
Stream-oriented I/O is unformatted per concept of. It is a stream of
elements, not even characters. Formatted I/O is when there are some things
beyond characters, like lines, columns, pages etc.
For formatted buffered I/O use strings. As a block/record/line use String.
You can find an example of string formatting library here:
http://www.dmitry-kazakov.de/ada/strings_edit.htm
For physical I/O, which is a separate issue, you can still use streams,
files, sockets, whatsoever. Just define a primitive operation Write_Line on
the abstract type of the "recipient," which takes String argument. For all
further types of objects use that primitive operation.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
.
- References:
- I/O streaming with custom data transport
- From: Maciej Sobczak
- Re: I/O streaming with custom data transport
- From: Alex R. Mosteo
- Re: I/O streaming with custom data transport
- From: Maciej Sobczak
- Re: I/O streaming with custom data transport
- From: Alex R. Mosteo
- Re: I/O streaming with custom data transport
- From: Maciej Sobczak
- I/O streaming with custom data transport
- Prev by Date: Re: Profiler?
- Next by Date: Re: I/O streaming with custom data transport
- Previous by thread: Re: I/O streaming with custom data transport
- Next by thread: Re: I/O streaming with custom data transport
- Index(es):
Relevant Pages
|