~ubuntu-branches/debian/stretch/adabrowse/stretch

« back to all changes in this revision

Viewing changes to ad-messages.ads

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Brenta
  • Date: 2004-02-14 13:22:40 UTC
  • Revision ID: james.westby@ubuntu.com-20040214132240-cqumhiq1677pkvzo
Tags: upstream-4.0.2
ImportĀ upstreamĀ versionĀ 4.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-------------------------------------------------------------------------------
 
2
--
 
3
--  This file is part of AdaBrowse.
 
4
--
 
5
-- <STRONG>Copyright (c) 2002 by Thomas Wolf.</STRONG>
 
6
-- <BLOCKQUOTE>
 
7
--    AdaBrowse is free software; you can redistribute it and/or modify it
 
8
--    under the terms of the  GNU General Public License as published by the
 
9
--    Free Software  Foundation; either version 2, or (at your option) any
 
10
--    later version. AdaBrowse is distributed in the hope that it will be
 
11
--    useful, but <EM>without any warranty</EM>; without even the implied
 
12
--    warranty of <EM>merchantability or fitness for a particular purpose.</EM>
 
13
--    See the GNU General Public License for  more details. You should have
 
14
--    received a copy of the GNU General Public License with this distribution,
 
15
--    see file "<A HREF="GPL.txt">GPL.txt</A>". If not, write to the Free
 
16
--    Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 
17
--    USA.
 
18
-- </BLOCKQUOTE>
 
19
--
 
20
-- <DL><DT><STRONG>
 
21
-- Author:</STRONG><DD>
 
22
--   Thomas Wolf  (TW)
 
23
--   <ADDRESS><A HREF="mailto:twolf@acm.org">twolf@acm.org</A></ADDRESS></DL>
 
24
--
 
25
-- <DL><DT><STRONG>
 
26
-- Purpose:</STRONG><DD>
 
27
--   Output of warning and error messages.</DL>
 
28
--
 
29
-- <!--
 
30
-- Revision History
 
31
--
 
32
--   19-MAR-2002   TW  First release.
 
33
--   18-JUN-2002   TW  Added 'Debug'.
 
34
-- -->
 
35
-------------------------------------------------------------------------------
 
36
 
 
37
pragma License (GPL);
 
38
 
 
39
package AD.Messages is
 
40
 
 
41
   pragma Elaborate_Body;
 
42
 
 
43
   type Verbosity is
 
44
     (Only_Errors, Errors_And_Warnings, All_Messages, Including_Debug);
 
45
 
 
46
   procedure Set_Mode
 
47
     (To : in Verbosity);
 
48
 
 
49
   function Get_Mode
 
50
     return Verbosity;
 
51
 
 
52
   procedure Info
 
53
     (Msg : in String);
 
54
 
 
55
   procedure Warn
 
56
     (Msg : in String);
 
57
 
 
58
   procedure Error
 
59
     (Msg : in String);
 
60
 
 
61
   procedure Debug
 
62
     (Msg : in String);
 
63
 
 
64
   procedure Help_Text;
 
65
 
 
66
   type Error_Reporter is abstract tagged null record;
 
67
 
 
68
   procedure Report_Error
 
69
     (Self : in out Error_Reporter;
 
70
      Msg  : in     String)
 
71
     is abstract;
 
72
 
 
73
end AD.Messages;