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
56 static const type ANY = type(INFO | INIT | KEY | TOOLBAR |
57 PARSER | LYXRC | KBMAP | LATEX |
58 MATHED | FONT | TCLASS | LYXVC |
59 LYXSERVER | ROFF | ACTION | LYXLEX |
62 friend inline void operator|=(Debug::type & d1, Debug::type d2);
64 /** A function to convert symbolic string names on debug levels
65 to their numerical value.
67 static Debug::type value(string const & val);
69 /** Display the tags and descriptions of the current debug level
72 static void showLevel(std::ostream & o, type level);
74 /** show all the possible tags that can be used for debugging */
75 static void showTags(std::ostream & o);
82 void operator|= (Debug::type & d1, Debug::type d2)
84 d1 = static_cast<Debug::type>(d1 | d2);
88 #include "support/DebugStream.h"
92 std::ostream & operator<<(std::ostream & o, Debug::type t);
94 extern DebugStream lyxerr;