9 #include "support/lstrings.h"
11 /** Ideally this should have been a namespace, but since we try to be
12 compilable on older C++ compilators too, we use a struct instead.
13 This is all the different debug levels that we have.
27 TOOLBAR = (1 << 3), // 8
29 PARSER = (1 << 4), // 16
31 LYXRC = (1 << 5), // 32
33 KBMAP = (1 << 6), // 64
35 LATEX = (1 << 7), // 128
37 MATHED = (1 << 8), // 256 // Alejandro, please use this.
39 FONT = (1 << 9), // 512
41 TCLASS = (1 << 10), // 1024
43 LYXVC = (1 << 11), // 2048
45 LYXSERVER = (1 << 12), // 4096
47 ROFF = (1 << 13), // 8192
49 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(std::ostream & o, type level);
76 /** show all the possible tags that can be used for debugging */
77 static void showTags(std::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 std::ostream & operator<<(std::ostream & o, Debug::type t);
96 extern DebugStream lyxerr;