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
55 static const type ANY = type(INFO | INIT | KEY | TOOLBAR |
56 PARSER | LYXRC | KBMAP | LATEX |
57 MATHED | FONT | TCLASS | LYXVC |
58 LYXSERVER | ROFF | ACTION | LYXLEX |
61 friend inline void operator|=(Debug::type & d1, Debug::type d2);
63 /** A function to convert symbolic string names on debug levels
64 to their numerical value.
66 static Debug::type value(string const & val);
68 /** Display the tags and descriptions of the current debug level
71 static void showLevel(ostream & o, type level);
73 /** show all the possible tags that can be used for debugging */
74 static void showTags(ostream & o);
81 void operator|= (Debug::type & d1, Debug::type d2)
83 d1 = static_cast<Debug::type>(d1 | d2);
87 #include "support/DebugStream.h"
91 ostream & operator<<(ostream & o, Debug::type t);
93 extern DebugStream lyxerr;