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