-- Workstation is attempt of A. i. written with Ada.
-- Workstation is Copyright (C) 2023 Manuel De Girardi ; 
--
--   This program is free software; you can redistribute it and/or modify
--   it under the terms of the GNU General Public License as published by
--   the Free Software Foundation; either version 2 of the License, or
--   (at your option) any later version.
--
--   This program is distributed in the hope that it will be useful,
--   but WITHOUT ANY WARRANTY; without even the implied warranty of
--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--   GNU General Public License for more details.
--
--   You should have received a copy of the GNU General Public License
--   along with this program; if not, write to the Free Software
--   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
--
-- Date := "2023-08-14 07:53:20"
-- Version := "4.0.0r"
with Text_Io;
package body Work.Classes.Account_class is
   
   function Fit (Account : in Account_Obj) return Float is
   begin
      return 0.0;
   end Fit;
   
   procedure Mutate(Account : in out Account_Obj) is
   begin
      null;
   end Mutate;
   
   function Mute(Left : in Account_Obj; 
		 Right : in Object_Class'class) return Account_Obj is
      O : Account_Obj;
   begin
      return O;
   end Mute;
           
   procedure Write (O : in Account_Obj;File : in T_Io.File_Type) is
   begin
      null;
   end Write;
   
   procedure Read (O : in out Account_Obj;File : in T_Io.File_Type) is
   begin
      null;
   end Read;
   
   procedure Print (O : in Account_Obj) is
   begin
      Text_Io.Put_Line("Account : " & Float'Image(O.Account.Sum));
   end Print;
   
   procedure Print (O : in Account_Obj; Win : in Window_Record; Index : in out Natural) is
   begin  
      if Index + 1 >= Win.Win.H-2 then return; end if;
      Index := Index + 1;
      Draw_Text(Win, Index, 1, Cyan, To_Wide_String("Account : " & Float'Image(O.Account.Sum)));
   end Print;

end Work.Classes.Account_class ; 
