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=-1.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,18aea7ce90e03321 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-13 01:42:08 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!205.231.236.10!newspeer.monmouth.com!newsfeed1.swip.net!swipnet!nike.foi.se!mercur.foa.se!not-for-mail From: "Magnus Sparf" Newsgroups: comp.lang.ada Subject: Re: Direct_IO problem -- generic package problem Date: Fri, 13 Jul 2001 10:16:00 +0200 Organization: National Defence Research Establishment, Sweden Message-ID: <9imb6c$2qu$1@mercur.foa.se> References: <3B4DD722.EB6F3AB7@boeing.com> <4Pm37.178065$%i7.116159417@news1.rdc1.sfba.home.com> NNTP-Posting-Host: dhcp-062-126.foi.se X-Trace: mercur.foa.se 995012620 2910 150.227.62.126 (13 Jul 2001 08:23:40 GMT) X-Complaints-To: usenet@foa.se NNTP-Posting-Date: Fri, 13 Jul 2001 08:23:40 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: archiver1.google.com comp.lang.ada:9905 Date: 2001-07-13T10:16:00+02:00 List-Id: skrev i meddelandet news:4Pm37.178065$%i7.116159417@news1.rdc1.sfba.home.com... > >Instantiate Direct_IO with constrained subtypes of Matrix for the types > >of interest. > i.e. > >My own ideas is to create separate databases for all eight databases > >that uses DB (CAR_DB, BOAT_DB, HOUSE_DB...) with specified values for > >MATRIX, but that seems like a lot of work and not very objectoriented. > If you are doing direct IO all the records in a given file need to > be the same size anyway, so it certainly is reasonable to instantiate > Ada.Direct_IO once for each of the eight database files. Did the > old program actually mix different size records in a single file? How > did it know where to look for record N? No, the program created a separate file for each database. The big problem for me with this program is that the part about the database(s) i totally uncommented and there is no documentation what so ever. And the person who originally designed is gone since 13 years ago and probably doesn�t remember anything. > As for OO, if you have a > root Matrix tagged type make it abstract, then each of the eight > children should have its own overide of its input/output routines > using the appropriate instantiation. Sounds like a great concept /Magnus magnus-s@dsv.su.se