removed some useless spaces; not very important, I know :)
[senf.git] / Utils / Logger / Target.cti
index 2312dc6..8718906 100644 (file)
@@ -1,8 +1,8 @@
 // $Id$
 //
-// Copyright (C) 2007 
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer NETwork research (NET)
+// Copyright (C) 2007
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
 //     Stefan Bund <g0dil@berlios.de>
 //
 // This program is free software; you can redistribute it and/or modify
@@ -23,7 +23,7 @@
 /** \file
     \brief Target inline template implementation */
 
-//#include "Target.ih"
+#include "Target.ih"
 
 // Custom includes
 #include "Levels.hh"
@@ -36,6 +36,8 @@
 
 // senf::log::Target::route
 
+#ifndef DOXYGEN
+
 template <class Stream>
 prefix_ void senf::log::Target::route(action_t action, int index)
 {
@@ -130,15 +132,23 @@ unroute(action_t action,
     unroute(&Stream::instance(), &AreaClass::SENFLogArea::instance(), Level::value, action);
 }
 
+#endif 
+
 ///////////////////////////////////////////////////////////////////////////
-// namespace senf::log members
+// namespace senf::log::detail members
 
 template <class Stream, class Area, class Level>
-prefix_ void senf::log::write(std::string msg)
+prefix_ void senf::log::detail::write(std::string msg)
 {
     TargetRegistry::instance().write(Stream::instance(), Area::instance(), Level::value, msg);
 }
 
+template <class Source>
+prefix_ void senf::log::timeSource()
+{
+    timeSource(std::auto_ptr<Source>(new Source()));
+}
+
 ///////////////////////////////cti.e///////////////////////////////////////
 #undef prefix_