FONTAINE  1.0
Warning.h
Go to the documentation of this file.
1 //
2 // The Fontaine Font Analysis Project
3 //
4 // Copyright (c) 2009 by Edward H. Trager
5 // All Rights Reserved
6 //
7 // Released under the GNU GPL version 2.0 or later.
8 //
9 
10 
12 //
13 // This file was originally part of the MADELINE 2 program
14 // written by Edward H. Trager and Ritu Khanna
15 // Copyright (c) 2005 by the
16 // Regents of the University of Michigan.
17 // All Rights Reserved.
18 // Released under the GNU General Public License v. 2.0 or later.
19 //
21 //
22 // 2005.03.14.ET
23 //
24 
25 //
26 // Warning.h
27 //
28 
29 #ifndef WARNING_INCLUDED
30 #define WARNING_INCLUDED
31 
32 #include "Message.h"
33 
34 //#include <iostream>
35 //#include <libintl.h>
36 //#include <stdarg.h>
37 //#include "BufferSizes.h"
38 
39 class Warning : public Message{
40 
41 private:
42 
43  static bool _suppressWarnings;
44  static const char *_warningSalutation;
45 public:
46 
47  Warning(const char *const methodName, const char *format,...);
48  static void suppressWarnings(bool suppressWarnings);
49  void print(void);
50 
51 };
52 
53 #endif
54 
Message::_truncated
bool _truncated
Definition: Message.h:58
Warning::_suppressWarnings
static bool _suppressWarnings
Definition: Warning.h:43
Message::_message
char _message[GENERAL_STRING_BUFFER_SIZE]
Definition: Message.h:57
Warning::_warningSalutation
static const char * _warningSalutation
Definition: Warning.h:44
Message::_methodName
const char * _methodName
Definition: Message.h:56
Warning::suppressWarnings
static void suppressWarnings(bool suppressWarnings)
Definition: Warning.cpp:61
Warning::Warning
Warning(const char *const methodName, const char *format,...)
Definition: Warning.cpp:38
Warning.h
Debug::DEBUG
static bool DEBUG
Definition: Debug.h:13
Warning
Definition: Warning.h:39
Warning::print
void print(void)
Definition: Warning.cpp:70
Message::_salutation
const char * _salutation
Definition: Message.h:55
Message
Definition: Message.h:42
GENERAL_STRING_BUFFER_SIZE
@ GENERAL_STRING_BUFFER_SIZE
Definition: BufferSizes.h:32
Debug.h
Message.h