Hosted by
|
with Ada.Unchecked_Deallocation;
package body Writers is
procedure Initialize
(This : access Writer'Class) is
begin
null;
end Initialize;
procedure Initialize
(This : access Writer'Class;
Filename : in String) is
begin
null;
end Initialize;
procedure Finalize
(This : access Writer'Class)
is
begin
null;
end Finalize;
function Current_Output
return Writer_Access
is
Result : Writer_Access := new Writer;
begin
Initialize(Result);
return Result;
end Current_Output;
function Create
(Filename : in String)
return Writer_Access
is
Result : Writer_Access := new Writer;
begin
Initialize(Result, Filename);
return Result;
end Create;
|