From: paulg@loxinfo.co.th (Paul Sjoerdsma)
Subject: Re: Reading objects from a file
Date: 1997/04/15
Date: 1997-04-15T00:00:00+00:00 [thread overview]
Message-ID: <3354759f.8067470@news.loxinfo.co.th> (raw)
In-Reply-To: 335315cd.16603805@news.loxinfo.co.th
paulg@loxinfo.co.th (Paul Sjoerdsma) wrote:
>Hi,
>
>I'm just starting using Ada and I have a, hopefully simple, question.
>
>First I'll explain what I am trying to do:
>
>I am rewriting a simple visualization program, which is used to output
>geological (actually micro-paleontological) data. The program needs to
>read frequence curves, process the data and output files.
>The data structures used will
I posted the previous message while it wasn't finished. Here is the
rest.
The data structures used (for the graphics part) will look something
like:
Graphic_Elem (base class)
-- Line_Elem (child class)
-- Polyline_Elem (child class)
-- Solid_Elem (child class)
etc
The output would go tho=20
Graphic_Port (base class)
Dxf_port (child class)
Ascii_port (child class)
There will also be a class Figure
procedure Add(Figure, Graphic_Elem)
procedure Draw(Figure, Graphic_Port)
What I am looking for are methods for the Figure class
procedure Read
procedure Write
in such a way that invoking Read(Figure) will build the appropriate
structure. So when it encounters a saved Line_Elem in the file it will
invoke the read procedure associated with the Line_Elem.
regards
Paul
next prev parent reply other threads:[~1997-04-15 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-04-15 0:00 Reading objects from a file Paul Sjoerdsma
1997-04-15 0:00 ` Paul Sjoerdsma [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-04-18 0:00 Paul Sjoerdsma
1997-04-19 0:00 ` Michael Paus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox