]> git.lyx.org Git - lyx.git/blobdiff - src/support/debug.h
CMake: fix merged build, seems GCC could not handle the namespaces correctly
[lyx.git] / src / support / debug.h
index ecabb506c1f4a7231e6cd5e4736752bdae0a8f2c..26bfd25ab80605252320f8fc70955dd2cc8769ed 100644 (file)
@@ -20,7 +20,6 @@
 #define LYXDEBUG_H
 
 #include "support/strfwd.h"
-#include <vector>
 
 namespace std {
 
@@ -108,13 +107,20 @@ namespace Debug {
                ANY = 0xffffffff
        };
 
-       const std::vector<Type> levels();
+
+       // Return number of levels
+       int levelCount();
 
        /** A function to convert symbolic string names on debug levels
            to their numerical value.
        */
        Type value(std::string const & val);
 
+       /** A function to convert index of level to their numerical value.
+       */
+       Type value(int val);
+
        /// Return description of level
        std::string const description(Type val);
 
@@ -158,7 +164,7 @@ public:
        /// Sets stream
        std::ostream & stream() { return *stream_; }
        /// Sets the debug level to t.
-       void level(Debug::Type t) { dt = t; }
+       void setLevel(Debug::Type t) { dt = t; }
        /// Returns the current debug level.
        Debug::Type level() const { return dt; }
        /// Returns stream