Scheduler
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
utils
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
:
21
enum
Color
{
normal
,
red
,
blue
,
green
,
lightBlue
};
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
Utils::Log::red
Definition:
log.h:21
Utils::Log::print
void print(T)
Definition:
log.h:31
Utils::Log::normal
Definition:
log.h:21
Utils::Log::Color
Color
Definition:
log.h:21
Utils::Log::lightBlue
Definition:
log.h:21
Utils::operator<<
Log & operator<<(Log &log, T data)
Definition:
log.h:38
Utils::Log
Definition:
log.h:18
Utils::Log::green
Definition:
log.h:21
Utils::Log::blue
Definition:
log.h:21
Utils
Definition:
context.h:16
Generated on Sun Nov 26 2017 17:01:36 for Scheduler by
1.8.11