Re: Data table text I/O package?
- From: Jacob Sparre Andersen <sparre@xxxxxx>
- Date: 15 Jun 2005 17:02:37 +0200
Preben Randhol wrote:
> Jacob Sparre Andersen <sparre@xxxxxx> wrote on 15/06/2005 (13:38) :
> > The important part is to have the checking of the headers and the
> > generation of Put_Line and Get_Line procedures automated based on
> > a record type (and not too much more). Since I need records (for
> > type checking) and not just simple arrays, I can't manage with a
> > generic package, but have to put some code generation into the
> > system (or can I play some tricks with streams?).
>
> So the header might be:
>
> Integer Float Text
Not quite. The headers would be field names, not just types. I.e.:
Gene ID p-value Expression-level Description Human cromosome
GE29031 0.04539 245.45 Cyclin-B1 17
> and the data could be:
>
> 1 0.9 Start point
> 2 0.3 Minimum
> 3 6.0 End point
>
> and then you want to check the data and validate that they are of
> the correct type as indicated by the header? To generate the header
> you want that the package finds out which type a certain data type
> is and output this type in the header?
Sort of. Except that I would use the names of the fields in the
record and not just the types of the fields.
One of my problems is that I have different kinds of files (in terms
of meaning of the numbers) where the types for all practical purposes
are the same.
But it seems like it might be more efficient to code a library like
that by hand for each case, even though it means that I miss the
automated checking (my main reason for using Ada).
Jacob (who should remember not to want the impossible every day)
--
»If you're going to have crime,
it might as well be organized crime.« -- Lord Vetinari
.
- Follow-Ups:
- Re: Data table text I/O package?
- From: Randy Brukardt
- Re: Data table text I/O package?
- From: Preben Randhol
- Re: Data table text I/O package?
- References:
- Data table text I/O package?
- From: Jacob Sparre Andersen
- Re: Data table text I/O package?
- From: Preben Randhol
- Re: Data table text I/O package?
- From: Jacob Sparre Andersen
- Re: Data table text I/O package?
- From: Preben Randhol
- Data table text I/O package?
- Prev by Date: Re: Universal type in Ada
- Next by Date: Interrupt handler seems not to be called in GNAT 3.15p
- Previous by thread: Re: Data table text I/O package?
- Next by thread: Re: Data table text I/O package?
- Index(es):
Relevant Pages
|