Fix documentation build under maverick (doxygen 1.7.1)
[senf.git] / senf / Scheduler / EventManager.cc
index ec4d1be..ddd4e23 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 //
-// Copyright (C) 2008 
+// Copyright (C) 2008
 // Fraunhofer Institute for Open Communication Systems (FOKUS)
 // Competence Center NETwork research (NET), St. Augustin, GERMANY
 //     Stefan Bund <g0dil@berlios.de>
 // Custom includes
 #include <boost/format.hpp>
 #include <senf/Utils/membind.hh>
-#include <senf/Utils/Console/Console.hh>
+#include <senf/Utils/Console/ScopedDirectory.hh>
+#include <senf/Utils/Console/ParsedCommand.hh>
+#include <senf/Utils/Console/Sysdir.hh>
 #include "FIFORunner.hh"
 
 //#include "EventManager.mpp"
 #define prefix_
-///////////////////////////////cc.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 
 prefix_ senf::scheduler::detail::EventManager::EventManager()
 {
 #ifndef SENF_DISABLE_CONSOLE
-    consoleDir_().add("events", senf::membind(&EventManager::listEvents, this))
+    consoleDir_().add("events", senf::console::factory::Command(
+                          senf::membind(&EventManager::listEvents, this))
         .doc("List all scheduler events sorted by priority\n"
              "\n"
              "Columns:\n"
@@ -55,7 +58,8 @@ prefix_ senf::scheduler::detail::EventManager::EventManager()
              "              R  runnable\n"
              "              W  waiting\n"
              "              -  event disabled\n"
-             "    INFO    further event specific information");
+             "    INFO    further event specific information")
+        );
 
     senf::console::sysdir().add("scheduler", consoleDir_());
 #endif
@@ -71,9 +75,9 @@ prefix_ void senf::scheduler::detail::EventManager::listEvents(std::ostream & os
         FIFORunner::iterator i (FIFORunner::instance().begin());
         FIFORunner::iterator const i_end (FIFORunner::instance().end());
         for (; i != i_end; ++i)
-            os << fmt 
+            os << fmt
                 % i->type()
-                % i->name() 
+                % i->name()
                 % reinterpret_cast<unsigned long>(&(*i))
                 % i->runCount()
                 % (i->runnable() ? "R" : "W")
@@ -86,7 +90,7 @@ prefix_ void senf::scheduler::detail::EventManager::listEvents(std::ostream & os
             if (! i->enabled())
                 os << fmt
                     % i->type()
-                    % i->name() 
+                    % i->name()
                     % reinterpret_cast<unsigned long>(&(*i))
                     % i->runCount()
                     % "-"
@@ -94,7 +98,7 @@ prefix_ void senf::scheduler::detail::EventManager::listEvents(std::ostream & os
     }
 }
 
-///////////////////////////////cc.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 #undef prefix_
 //#include "EventManager.mpp"