7 #include "support/LOstream.h"
8 #include "support/lstrings.h"
10 /** Ideally this should have been a namespace, but since we try to be
11 compilable on older C++ compilators too, we use a struct instead.
12 This is all the different debug levels that we have.
26 TOOLBAR = (1 << 3), // 8
28 PARSER = (1 << 4), // 16
30 LYXRC = (1 << 5), // 32
32 KBMAP = (1 << 6), // 64
34 LATEX = (1 << 7), // 128
36 MATHED = (1 << 8), // 256 // Alejandro, please use this.
38 FONT = (1 << 9), // 512
40 TCLASS = (1 << 10), // 1024
42 LYXVC = (1 << 11), // 2048
44 LYXSERVER = (1 << 12), // 4096
46 ROFF = (1 << 13), // 8192
48 ACTION = (1 << 14), // 16384
53 static const type ANY = type(INFO | INIT | KEY | TOOLBAR |
54 PARSER | LYXRC | KBMAP | LATEX |
55 MATHED | FONT | TCLASS | LYXVC |
56 LYXSERVER | ROFF | ACTION | LYXLEX);
58 friend inline void operator|=(Debug::type & d1, Debug::type d2);
60 /** A function to convert symbolic string names on debug levels
61 to their numerical value.
63 static Debug::type value(string const & val);
65 /** Display the tags and descriptions of the current debug level
68 static void showLevel(ostream & o, type level);
70 /** show all the possible tags that can be used for debugging */
71 static void showTags(ostream & o);
77 inline void operator|= (Debug::type & d1, Debug::type d2)
79 d1 = static_cast<Debug::type>(d1 | d2);
83 #include "support/DebugStream.h"
87 ostream & operator<<(ostream & o, Debug::type t);
89 extern DebugStream lyxerr;