From: "Magnus Sparf" <magnus-s@dsv.su.se>
Subject: Re: Direct_IO problem -- generic package problem
Date: Fri, 13 Jul 2001 10:16:00 +0200
Date: 2001-07-13T10:16:00+02:00 [thread overview]
Message-ID: <9imb6c$2qu$1@mercur.foa.se> (raw)
In-Reply-To: 4Pm37.178065$%i7.116159417@news1.rdc1.sfba.home.com
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1320 bytes --]
<tmoran@acm.org> 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
prev parent reply other threads:[~2001-07-13 8:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-12 8:42 Direct_IO problem -- generic package problem Magnus Sparf
2001-07-12 9:19 ` nicolas
2001-07-12 11:38 ` David C. Hoos, Sr.
2001-07-12 12:14 ` nicolas
2001-07-12 11:41 ` Magnus Sparf
2001-07-12 12:25 ` nicolas
2001-07-12 11:33 ` David C. Hoos, Sr.
2001-07-12 16:58 ` Jeffrey Carter
2001-07-12 19:23 ` tmoran
2001-07-13 8:16 ` Magnus Sparf [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox