Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
Manipulator.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2002, Log4cpp Project. All rights reserved.
3
*
4
* See the COPYING file for the terms of usage and distribution.
5
*/
6
7
#include <
log4cpp/Manipulator.hh
>
8
using namespace
std
;
9
namespace
log4cpp
{
10
ostream&
operator<<
(ostream& os,
const
width
& w) {
11
if
(os.good()) {
12
os.width(w.
size
);
13
}
14
return
os;
15
}
16
ostream&
operator<<
(ostream& os,
const
tab
& t) {
17
if
(os.good()) {
18
for
(
size_t
no = 0; no < t.
size
; no++) os.put(os.widen(
'\t'
));
19
}
20
return
os;
21
}
22
};
log4cpp::width
Definition:
Manipulator.hh:15
std
Definition:
Portability.hh:44
log4cpp::width::size
unsigned int size
Definition:
Manipulator.hh:17
log4cpp
Definition:
AbortAppender.hh:16
log4cpp::tab
Definition:
Manipulator.hh:22
log4cpp::operator<<
ostream & operator<<(ostream &os, const tab &t)
Definition:
Manipulator.cpp:16
log4cpp::tab::size
unsigned int size
Definition:
Manipulator.hh:24
Manipulator.hh
log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:10:00