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 };
unsigned int size
Definition: Manipulator.hh:17
ostream & operator<<(ostream &os, const tab &t)
Definition: Manipulator.cpp:16
unsigned int size
Definition: Manipulator.hh:24


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