7 #include "support/lstrings.h"
9 /** Ideally this should have been a namespace, but since we try to be
10 compilable on older C++ compilators too, we use a struct instead.
11 This is all the different debug levels that we have.
25 TOOLBAR = (1 << 3), // 8
27 PARSER = (1 << 4), // 16
29 LYXRC = (1 << 5), // 32
31 KBMAP = (1 << 6), // 64
33 LATEX = (1 << 7), // 128
35 MATHED = (1 << 8), // 256 // Alejandro, please use this.
37 FONT = (1 << 9), // 512
39 TCLASS = (1 << 10), // 1024
41 LYXVC = (1 << 11), // 2048
43 LYXSERVER = (1 << 12), // 4096
45 ROFF = (1 << 13), // 8192
47 ACTION = (1 << 14) // 16384
50 static const type ANY = type(INFO | INIT | KEY | TOOLBAR |
51 PARSER | LYXRC | KBMAP | LATEX |
52 MATHED | FONT | TCLASS | LYXVC |
53 LYXSERVER | ROFF | ACTION);
55 friend inline void operator|=(Debug::type & d1, Debug::type d2);
57 /** A function to convert symbolic string names on debug levels
58 to their numerical value.
60 static Debug::type value(string const & val);
62 /** Display the tags and descriptions of the current debug level
65 static void showLevel(ostream & o, type level);
67 /** show all the possible tags that can be used for debugging */
68 static void showTags(ostream & o);
74 inline void operator|= (Debug::type & d1, Debug::type d2)
76 d1 = static_cast<Debug::type>(d1 | d2);
80 #include "support/DebugStream.h"
84 ostream & operator<<(ostream & o, Debug::type t);
86 extern DebugStream lyxerr;