From: Michael Andres Date: Mon, 2 Jan 2006 15:04:39 +0000 (+0000) Subject: Removed Logger include from header file. X-Git-Tag: BASE-SuSE-SLE-10-SP2-Branch~3527 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bdfa28ac8be5c3691e7d9c2e6e6f42342deb156f;p=platform%2Fupstream%2Flibzypp.git Removed Logger include from header file. --- 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();