From bdfa28ac8be5c3691e7d9c2e6e6f42342deb156f Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Mon, 2 Jan 2006 15:04:39 +0000 Subject: [PATCH] Removed Logger include from header file. --- zypp/parser/Spirit.cc | 6 ++++++ zypp/parser/Spirit.h | 9 ++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/zypp/parser/Spirit.cc b/zypp/parser/Spirit.cc index 675a8ec..ceeca81 100644 --- a/zypp/parser/Spirit.cc +++ b/zypp/parser/Spirit.cc @@ -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 /////////////////////////////////////////////////////////////////// diff --git a/zypp/parser/Spirit.h b/zypp/parser/Spirit.h index d8d361f..108a40f 100644 --- a/zypp/parser/Spirit.h +++ b/zypp/parser/Spirit.h @@ -22,7 +22,6 @@ #include -#include "zypp/base/Logger.h" /////////////////////////////////////////////////////////////////// namespace boost { ///////////////////////////////////////////////////////////////// @@ -170,6 +169,8 @@ namespace zypp struct ddump_impl { + static std::ostream & onStream(); + template struct result { @@ -179,13 +180,15 @@ namespace zypp template void operator()( const C & item ) const { - DBG << item << std::endl; + onStream() << item << std::endl; } }; const phoenix::function ddump = ddump_impl(); struct mdump_impl { + static std::ostream & onStream(); + template struct result { @@ -195,7 +198,7 @@ namespace zypp template void operator()( const C & item ) const { - MIL << item << std::endl; + onStream() << item << std::endl; } }; const phoenix::function mdump = mdump_impl(); -- 2.7.4