[Orxonox-commit 1278] r5996 - code/branches/console/src/libraries/util

rgrieder at orxonox.net rgrieder at orxonox.net
Wed Oct 28 10:47:25 CET 2009


Author: rgrieder
Date: 2009-10-28 10:47:25 +0100 (Wed, 28 Oct 2009)
New Revision: 5996

Modified:
   code/branches/console/src/libraries/util/OutputHandler.h
Log:
Changed order of declaration/definition in OutputHandler.

Modified: code/branches/console/src/libraries/util/OutputHandler.h
===================================================================
--- code/branches/console/src/libraries/util/OutputHandler.h	2009-10-28 09:44:26 UTC (rev 5995)
+++ code/branches/console/src/libraries/util/OutputHandler.h	2009-10-28 09:47:25 UTC (rev 5996)
@@ -216,23 +216,6 @@
             static int softDebugLevel_s;           //!< Maximum of all soft debug levels. @note This is only static for faster access
     };
 
-    template<class T>
-    inline OutputHandler& OutputHandler::output(const T& output)
-    {
-        for (std::list<OutputListener*>::const_iterator it = this->listeners_.begin(); it != this->listeners_.end(); ++it)
-        {
-            if (this->outputLevel_ <= (*it)->softDebugLevel_ && (*it)->outputStream_ != NULL)
-            {
-                std::ostream& stream = *((*it)->outputStream_);
-                stream << output;
-                stream.flush();
-                (*it)->outputChanged();
-            }
-        }
-
-        return *this;
-    }
-
     /**
     @brief
         Interface for listening to output.
@@ -262,6 +245,23 @@
         const std::string name_;           //!< Name of the listener, constant and unique!
         int               softDebugLevel_; //!< Current soft debug level that defines what kind of output is written to the stream
     };
+
+    template<class T>
+    inline OutputHandler& OutputHandler::output(const T& output)
+    {
+        for (std::list<OutputListener*>::const_iterator it = this->listeners_.begin(); it != this->listeners_.end(); ++it)
+        {
+            if (this->outputLevel_ <= (*it)->softDebugLevel_ && (*it)->outputStream_ != NULL)
+            {
+                std::ostream& stream = *((*it)->outputStream_);
+                stream << output;
+                stream.flush();
+                (*it)->outputChanged();
+            }
+        }
+
+        return *this;
+    }
 }
 
 #endif /* _OutputHandler_H__ */




More information about the Orxonox-commit mailing list