Log.hpp
1 #ifndef DM_LOG_HPP_INCLUDED
2 #define DM_LOG_HPP_INCLUDED
3 
4 #ifdef _MSC_VER
5  #pragma once
6 #endif
7 
8 #include "DM/config.hpp"
9 #include "DM/AutoLink.hpp" //enable autolink
10 
11 //boost
12 #include <boost/function/function2.hpp>
13 
14 DM_NAMESPACE_BEGIN
15 
16 namespace Log {
17 #ifdef _MSC_VER
18  enum Type {
19 #else
20  enum Type : char {
21 #endif
22  error=1,
23  warning,
24  info,
25  verbose,
26  debug
27  };
28 }
29 
30 //log funtion for IO classes to comunicate information to ouside
31 typedef boost::function<void(Log::Type, const char*)> LogFn;
32 
33 DM_NAMESPACE_END
34 
35 #endif //DM_LOG_HPP_INCLUDED