22 #ifndef _OPENRAWPP_DEBUG_H_
23 #define _OPENRAWPP_DEBUG_H_
29 #include <boost/bind.hpp>
31 #include <libopenraw/debug.h>
41 Trace(debug_level level)
45 Trace & operator<<(
int i);
46 Trace & operator<<(
const char * s);
47 Trace & operator<<(
void *);
48 Trace & operator<<(
const std::string & s);
51 Trace & operator<<(const std::vector<T> & v);
53 static void setDebugLevel(debug_level lvl);
55 static void print(
int i);
56 static int debugLevel;
62 Trace & Trace::operator<<(const std::vector<T> & v)
64 if (m_level <= debugLevel) {
65 std::for_each(v.begin(), v.end(), boost::bind(&print, _1));