From: nimaopatel121@gmail.com
Subject: Re: Ada.Text_IO.File_Type object with user defined Get and Put subprograms.
Date: Wed, 23 Sep 2020 21:10:33 -0700 (PDT) [thread overview]
Message-ID: <4bd08b3a-50d4-4636-8674-6dc7cb4efd85o@googlegroups.com> (raw)
In-Reply-To: <rfva3i$9vk$1@gioia.aioe.org>
On Friday, 31 July 2020 01:51:10 UTC+5:30, Blady wrote:
> Hello,
>
> Given a legacy code calling many Put_Line from Ada.Text_IO which works
> nice in a Terminal, I want to add a mode which sends these outputs to
> another process without changing the legacy code too much.
> And I want to keep the Terminal mode.
>
> Is there a way to create a File_Type object (from Ada.Text_IO) which
> would have user defined Get and Put subprograms instead of the
> predefined ones of the file system?
>
> Thus in my case, I will create a custom File_Type object My_Output with
> the user define Put which will send the lines to the other process and
> then I will call "Set_Output (My_Ouput);" before the legacy code.
>
> Thanks Pascal.
prev parent reply other threads:[~2020-09-24 4:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-30 20:21 Ada.Text_IO.File_Type object with user defined Get and Put subprograms Blady
2020-07-30 21:51 ` J-P. Rosen
2020-07-31 17:06 ` Blady
2020-08-01 5:35 ` J-P. Rosen
2020-08-01 7:42 ` Blady
2020-08-01 13:45 ` J-P. Rosen
2020-07-31 18:19 ` Shark8
2020-08-01 7:46 ` Blady
2020-08-01 17:23 ` Shark8
2020-09-04 10:14 ` liyan white
2020-09-24 4:10 ` nimaopatel121 [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