From: tmoran@acm.org
Subject: Re: Direct_IO problem -- generic package problem
Date: Thu, 12 Jul 2001 19:23:44 GMT
Date: 2001-07-12T19:23:44+00:00 [thread overview]
Message-ID: <4Pm37.178065$%i7.116159417@news1.rdc1.sfba.home.com> (raw)
In-Reply-To: 3B4DD722.EB6F3AB7@boeing.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? 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.
next prev parent reply other threads:[~2001-07-12 19:23 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 [this message]
2001-07-13 8:16 ` Magnus Sparf
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox