[31m-- main is main file of main project written with Ada.[m
[31m-- Main is Copyright (C) 2025 Manuel De Girardi ; [m
[31m--[m
[31m--   This program is free software; you can redistribute it and/or modify[m
[31m--   it under the terms of the GNU General Public License as published by[m
[31m--   the Free Software Foundation; either version 2 of the License, or[m
[31m--   (at your option) any later version.[m
[31m--[m
[31m--   This program is distributed in the hope that it will be useful,[m
[31m--   but WITHOUT ANY WARRANTY; without even the implied warranty of[m
[31m--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the[m
[31m--   GNU General Public License for more details.[m
[31m--[m
[31m--   You should have received a copy of the GNU General Public License[m
[31m--   along with this program; if not, write to the Free Software[m
[31m--   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA[m
[31m--[m
[31m-- Date := "2025-06-11 16:46:44"[m
[31m-- Version := "0.0.0r"[m
[01;34mwith[m M[31m.[mStrings[31m;[m
[01;34muse[m M[31m.[mStrings[31m;[m
[01;34mwith[m Gnat[31m.[mOs_Lib[31m;[m
[01;34muse[m Gnat[31m.[mOs_Lib[31m;[m
[01;34mpackage[m M[31m.[mWopr [01;34mis[m
   
   [01;34mtype[m User_Record [01;34mis[m
      [01;34mrecord[m
	 Logname [31m:[m String_Access[31m;[m
      [01;34mend[m [01;34mrecord[m[31m;[m
   
   
   
   
   
   
   
   
   [01;34mtype[m T_LertCon [01;34mis[m [31m([mDEFCON_1[31m,[m
                      DEFCON_2[31m,[m
                      DEFCON_3[31m,[m
                      DEFCON_4[31m,[m
                      DEFCON_5[31m,[m
                      AD_EMERGENCY[31m,[m
                      D_EMERGENCY[31m,[m
                      NO_EMERGENCY[31m);[m
   [01;34msubtype[m T_Defcon [01;34mis[m T_LertCon [01;34mrange[m DEFCON_1[31m..[mDEFCON_5[31m;[m
   [01;34msubtype[m T_EmergCon [01;34mis[m T_LertCon [01;34mrange[m AD_EMERGENCY[31m..[mNO_EMERGENCY[31m;[m

   
   [01;34mtype[m Nation_Enum [01;34mis[m [31m([mNone[31m,[m UN[31m,[m EST[31m);[m
   
   [01;34mtype[m LANG_Enum [01;34mis[m [31m([mNone[31m,[m EU[31m);[m
   
   [01;34mtype[m Message_Type [01;34mis[m
      [01;34mrecord[m
	 Nation [31m:[m Nation_Enum [31m:=[m None[31m;[m
	 LANG   [31m:[m LANG_Enum [31m:=[m None[31m;[m
	 Valid  [31m:[m [32mBoolean[m [31m:=[m False[31m;[m
      [01;34mend[m [01;34mrecord[m[31m;[m
   
   
   [01;34mtask[m Message_Box [01;34mis[m
      [01;34mentry[m Initialize[31m;[m
      [01;34mentry[m [01;30mReceive[m[31m([mFrom [31m:[m [01;34min[m User_Record[31m;[mDest [31m:[m [01;34min[m User_Record[31m;[mMsg [31m:[m [01;34min[m [32mWide_String[m[31m);[m
      [01;34mentry[m [01;30mGet[m[31m([mUser [31m:[m [01;34min[m User_Record[31m;[mBox [31m:[m [01;34min[m [01;34mout[m Wide_String_Set[31m);[m
      [01;34mentry[m Halt[31m;[m
   [01;34mend[m Message_Box[31m;[m
   
   
   [01;34mprocedure[m [01;30mIs_Valid[m [31m([mMessage [31m:[m [01;34mout[m Message_Type[31m;[m
		      Content [31m:[m [01;34min[m [32mWide_String[m[31m);[m
   
   [01;34mprotected[m WOPR [01;34mis[m
      [01;34mentry[m [01;30mSet_Alert[m [31m([mAlert [31m:[m [01;34min[m T_EmergCon[31m);[m
      [01;34mentry[m [01;30mRaise_DefCon[m [31m([mDefCon [31m:[m [01;34min[m T_DefCon[31m);[m
      [01;34mentry[m [01;30mGet_Message[m [31m([mLine [31m:[m [01;34min[m [32mWide_String[m[31m;[mMsg [31m:[m [01;34mout[m Message_Type[31m);[m
   [01;34mprivate[m
      Message [31m:[m Message_Type [31m:=[m [31m([mUN[31m,[m EU[31m,[m False[31m);[m
      Status  [31m:[m T_Lertcon [31m:=[m DefCon_5[31m;[m
   [01;34mend[m WOPR[31m;[m
   
[01;34mend[m M[31m.[mWopr [31m;[m 
