]> git.lyx.org Git - lyx.git/blobdiff - src/support/DebugStream.h
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / support / DebugStream.h
index d27eda5e1b8223dbba5190dba886503668556696..dd7b7118ca7fef7a5d8996259cb7fae51e888848 100644 (file)
@@ -1,21 +1,17 @@
 // -*- C++ -*-
-
-// Created by Lars Gullik Bjønnes
-// Copyright 1999 Lars Gullik Bjønnes (larsbj@lyx.org)
-// Released into the public domain.
-
-// Implemented and tested on g++ 2.7.2.3
-
-// Primarily developed for use in the LyX Project http://www.lyx.org/
-// but should be adaptable to any project.
+/**
+ * \file DebugStream.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS
+ */
 
 #ifndef DEBUGSTREAM_H
 #define DEBUGSTREAM_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 #include "LOstream.h"
 
 #ifdef TEST_DEBUGSTREAM
@@ -53,12 +49,12 @@ struct Debug {
     INFO
     Always
 
-    If you want to have debug output from time critical code you should 
+    If you want to have debug output from time critical code you should
     use this construct:
     if (debug.debugging(Debug::INFO)) {
-         debug << "...debug output...\n";
+        debug << "...debug output...\n";
     }
-    
+
     To give debug info even if no debug (NONE) is requested:
     debug << "... always output ...\n";
 
@@ -80,7 +76,7 @@ class DebugStream : public std::ostream
 public:
        /// Constructor, sets the debug level to t.
        explicit DebugStream(Debug::type t = Debug::NONE);
-       
+
        /// Constructor, sets the log file to f, and the debug level to t.
        explicit
        DebugStream(char const * f, Debug::type t = Debug::NONE);
@@ -110,7 +106,7 @@ public:
 
        /// Sets the debugstreams' logfile to f.
        void logFile(char const * f);
-       
+
        /// Returns true if t is part of the current debug level.
        bool debugging(Debug::type t = Debug::ANY) const
        {
@@ -118,7 +114,7 @@ public:
                return false;
        }
 
-       
+
        /** Returns the no-op stream if t is not part of the
            current debug level otherwise the real debug stream
            is used.
@@ -128,7 +124,7 @@ public:
                return nullstream;
        }
 
-       
+
        /** This is an operator to give a more convenient use:
            dbgstream[Debug::INFO] << "Info!\n";
        */
@@ -147,5 +143,3 @@ private:
 };
 
 #endif
-
-