comp.lang.ada
 help / color / mirror / Atom feed
* Usage of Ada.Streams
@ 2000-01-18  0:00 Joerg Ruedenauer
  2000-01-19  0:00 ` David C. Hoos, Sr.
  0 siblings, 1 reply; 5+ messages in thread
From: Joerg Ruedenauer @ 2000-01-18  0:00 UTC (permalink / raw)


Hello there,

I don't quite know how to use Ada.Streams to read Objects using
dispatching.
To be specific, I have a private tagged type, say Data, and want to
read/write Objects derived from that type. Writing works fine like this:
Data_Pointer: PData; -- an access all Data'class
Str: Stream_Access;
...
Data'Class'Write(Str, Data.all);
But I can't find a solution to read the objects equally nice. From the
Ada95 Rationale I gather I should use 'Input and 'Output somehow, but I'm
just missing an example. Could anyone help me?

Joerg
--
"Quoth the raven: Nevermore!" -- E.A.Poe







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

end of thread, other threads:[~2000-01-19  0:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-18  0:00 Usage of Ada.Streams Joerg Ruedenauer
2000-01-19  0:00 ` David C. Hoos, Sr.
2000-01-19  0:00   ` Pascal Obry
2000-01-19  0:00     ` David C. Hoos, Sr.
2000-01-19  0:00       ` Pascal Obry

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