2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2001 The LyX Team.
10 * ====================================================== */
23 /** Ideally this should have been a namespace, but since we try to be
24 compilable on older C++ compilators too, we use a struct instead.
25 This is all the different debug levels that we have.
41 PARSER = (1 << 4), // 16
43 LYXRC = (1 << 5), // 32
45 KBMAP = (1 << 6), // 64
47 LATEX = (1 << 7), // 128
49 MATHED = (1 << 8), // 256 // Alejandro, please use this.
51 FONT = (1 << 9), // 512
53 TCLASS = (1 << 10), // 1024
55 LYXVC = (1 << 11), // 2048
57 LYXSERVER = (1 << 12), // 4096
59 ROFF = (1 << 13), // 8192
61 ACTION = (1 << 14), // 16384
72 // static const type ANY = type(INFO | INIT | KEY | GUI |
73 // PARSER | LYXRC | KBMAP | LATEX |
74 // MATHED | FONT | TCLASS | LYXVC |
75 // LYXSERVER | ROFF | ACTION | LYXLEX |
78 static type const ANY;
80 /** A function to convert symbolic string names on debug levels
81 to their numerical value.
83 static Debug::type value(string const & val);
85 /** Display the tags and descriptions of the current debug level
88 static void showLevel(std::ostream & o, type level);
90 /** show all the possible tags that can be used for debugging */
91 static void showTags(std::ostream & o);
98 void operator|=(Debug::type & d1, Debug::type d2)
100 d1 = static_cast<Debug::type>(d1 | d2);
104 #include "support/DebugStream.h"
108 std::ostream & operator<<(std::ostream & o, Debug::type t);
110 extern DebugStream lyxerr;