From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,335f67c75a2a5d5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-28 11:50:10 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Ted Dennison Newsgroups: comp.lang.ada Subject: Re: In Plain Text: Tags.Internal_Tag(String'Input(Stream)) ?? Date: Thu, 28 Dec 2000 19:44:46 GMT Organization: Deja.com Message-ID: <92g57c$qgp$1@nnrp1.deja.com> References: <3A4AC329.9C2A311A@home.com> <3A4B557F.F167C8E@home.com> <92fnnn$emq$1@nnrp1.deja.com> <3A4B86B4.DB440BF5@home.com> NNTP-Posting-Host: 204.48.27.130 X-Article-Creation-Date: Thu Dec 28 19:44:46 2000 GMT X-Http-User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20001207 X-Http-Proxy: 1.0 x68.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 X-MyDeja-Info: XMYDJUIDtedennison Xref: supernews.google.com comp.lang.ada:3432 Date: 2000-12-28T19:44:46+00:00 List-Id: In article <3A4B86B4.DB440BF5@home.com>, "Warren W. Gay VE3WWG" 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/