comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: Re: In Plain Text: Tags.Internal_Tag(String'Input(Stream)) ??
Date: Thu, 28 Dec 2000 19:44:46 GMT
Date: 2000-12-28T19:44:46+00:00	[thread overview]
Message-ID: <92g57c$qgp$1@nnrp1.deja.com> (raw)
In-Reply-To: 3A4B86B4.DB440BF5@home.com

In article <3A4B86B4.DB440BF5@home.com>,
  "Warren W. Gay VE3WWG" <ve3wwg@home.com> wrote:
> Ted Dennison wrote:
> > You might have better luck creating your own custom stream type for
> > WAV data.
>
> I am in the process of doing that very thing. However, I am looking
> for ways to more elegantly read in the various chunks (tagged records)
> from the stream. S'Class'Input() comes tantalizingly close.

So you are saying that you have a nice custom stream of unstructured
data, but you don't want to be able to read (or perhaps write) just any
type of data from it in the normal way? Instead it has a strict
structure you have to adhere to, which you don't have control over?

Probably what you should be doing is calling the stream's
Ada.Streams.Read routine directly from your own custom procedure (*not*
from an attribute). Otherwise you'll have to permanentaly specify (in
some cases, changing) how every type you use is read and written to and
from all streams.

Streams are really best for:
  o  hetrogenious data
  o  unstructured data (no record boundries)
  o  data written *and* read from Ada
  o  writer and reader programs use same stream source files
  o  data written and read from code using the same compiler
  o  data written and read from code using the same platform

The less of these bullets you can check off, the more trouble you are
going to have. If you can't check off at least two, you are in big trouble.

--
T.E.D.

http://www.telepath.com/~dennison/Ted/TED.html


Sent via Deja.com
http://www.deja.com/



  reply	other threads:[~2000-12-28 19:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3A4AC329.9C2A311A@home.com>
2000-12-28  6:19 ` Tags.Internal_Tag(String'Input(Stream)) ?? tmoran
2000-12-28 15:06   ` Warren W. Gay VE3WWG
2000-12-28 15:02 ` In Plain Text: " Warren W. Gay VE3WWG
2000-12-28 15:54   ` Ted Dennison
2000-12-28 18:32     ` Warren W. Gay VE3WWG
2000-12-28 19:44       ` Ted Dennison [this message]
2000-12-29  2:20         ` Warren W. Gay VE3WWG
2000-12-29  3:20           ` tmoran
2000-12-29  3:04   ` tmoran
2000-12-29  5:29     ` Ada0x Enhancement? Was: " Warren W. Gay VE3WWG
2000-12-29  7:11       ` tmoran
2000-12-29 14:32         ` Warren W. Gay VE3WWG
2000-12-30  5:55       ` External_Tag: Why? was " tmoran
2000-12-31 22:17         ` Randy Brukardt
2001-01-01 16:50           ` Warren W. Gay VE3WWG
replies disabled

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