Scheduler
log.h
Go to the documentation of this file.
1 
10 #ifndef LOG_H
11 #define LOG_H
12 
13 #include <iostream>
14 
15 namespace Utils
16 {
17 
18 class Log
19 {
20 public:
22  template<typename T> void print(T);
23  void print(Log::Color);
24 private:
25  std::ostream& outstream = std::cout;
26 };
27 
28 
29 
30 template<typename T>
31 void Log::print(T data)
32 {
33  outstream << data;
34 }
35 
36 
37 template<typename T>
38 Log& operator<<(Log& log, T data)
39 {
40  log.print(data);
41  return log;
42 }
43 
44 }
45 #endif
46 
void print(T)
Definition: log.h:31
Color
Definition: log.h:21
Log & operator<<(Log &log, T data)
Definition: log.h:38
Definition: log.h:18
Definition: context.h:16