std::ostream & error_report_parser::errstream()
{ return ERR; }
+ std::ostream & ddump_impl::onStream()
+ { return DBG; }
+
+ std::ostream & mdump_impl::onStream()
+ { return MIL; }
+
/////////////////////////////////////////////////////////////////
} // namespace spirit
///////////////////////////////////////////////////////////////////
#include <boost/spirit/phoenix.hpp>
-#include "zypp/base/Logger.h"
///////////////////////////////////////////////////////////////////
namespace boost
{ /////////////////////////////////////////////////////////////////
struct ddump_impl
{
+ static std::ostream & onStream();
+
template <typename C>
struct result
{
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
{
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();