YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Logger.hxx
Go to the documentation of this file.
1
#ifndef YAPOG_LOGGER_HXX
2
# define YAPOG_LOGGER_HXX
3
4
namespace
yap
5
{
6
template
<
typename
T>
7
inline
Logger
&
Logger::Log
(
const
T& value)
8
{
9
if
(!
isActive_
)
10
return
*
this
;
11
12
for
(
const
auto
& it :
modes_
)
13
it->GetPrefix (*
oStream_
);
14
15
*
oStream_
<< value;
16
17
for
(
const
auto
& it : modes_)
18
it->GetSuffix (*
oStream_
);
19
20
return
*
this
;
21
}
22
23
template
<
typename
T>
24
inline
Logger
&
Logger::LogLine
(
const
T& value)
25
{
26
if
(!
isActive_
)
27
return
*
this
;
28
29
for
(
const
auto
& it :
modes_
)
30
it->GetPrefix (*
oStream_
);
31
32
*
oStream_
<< value;
33
34
for
(
const
auto
& it : modes_)
35
it->GetSuffix (*
oStream_
);
36
37
*
oStream_
<< std::endl;
38
39
return
*
this
;
40
}
41
}
// namespace yap
42
43
#endif // YAPOG_LOGGER_HXX
YAPOG
include
YAPOG
System
IO
Log
Logger.hxx
Generated on Mon Sep 17 2012 22:24:24 for YAPOG by
1.8.1.1