Removed Logger include from header file.
authorMichael Andres <ma@suse.de>
Mon, 2 Jan 2006 15:04:39 +0000 (15:04 +0000)
committerMichael Andres <ma@suse.de>
Mon, 2 Jan 2006 15:04:39 +0000 (15:04 +0000)
zypp/parser/Spirit.cc
zypp/parser/Spirit.h

index 675a8ec..ceeca81 100644 (file)
@@ -50,6 +50,12 @@ namespace zypp
       std::ostream & error_report_parser::errstream()
       { return ERR; }
 
+      std::ostream & ddump_impl::onStream()
+      { return DBG; }
+
+      std::ostream & mdump_impl::onStream()
+      { return MIL; }
+
       /////////////////////////////////////////////////////////////////
     } // namespace spirit
     ///////////////////////////////////////////////////////////////////
index d8d361f..108a40f 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <boost/spirit/phoenix.hpp>
 
-#include "zypp/base/Logger.h"
 ///////////////////////////////////////////////////////////////////
 namespace boost
 { /////////////////////////////////////////////////////////////////
@@ -170,6 +169,8 @@ namespace zypp
 
       struct ddump_impl
       {
+        static std::ostream & onStream();
+
         template <typename C>
           struct result
           {
@@ -179,13 +180,15 @@ namespace zypp
         template <typename C>
           void operator()( const C & item ) const
           {
-            DBG << item << std::endl;
+            onStream() << item << std::endl;
           }
       };
       const phoenix::function<ddump_impl> ddump = ddump_impl();
 
       struct mdump_impl
       {
+        static std::ostream & onStream();
+
         template <typename C>
           struct result
           {
@@ -195,7 +198,7 @@ namespace zypp
         template <typename C>
           void operator()( const C & item ) const
           {
-            MIL << item << std::endl;
+            onStream() << item << std::endl;
           }
       };
       const phoenix::function<mdump_impl> mdump = mdump_impl();