32 lines
715 B
C++
32 lines
715 B
C++
/*
|
|
* Manipulator.hh
|
|
*
|
|
* Copyright 2005, Francis ANDRE. All rights reserved.
|
|
*
|
|
* See the COPYING file for the terms of usage and distribution.
|
|
*/
|
|
|
|
#ifndef _LOG4CPP_MANIPULATOR_HH
|
|
#define _LOG4CPP_MANIPULATOR_HH
|
|
|
|
#include <iostream>
|
|
#include <log4cpp/Portability.hh>
|
|
LOG4CPP_NS_BEGIN
|
|
class LOG4CPP_EXPORT width {
|
|
private:
|
|
unsigned int size;
|
|
public:
|
|
inline width(unsigned int i) : size(i) {}
|
|
friend LOG4CPP_EXPORT std::ostream& operator<< (std::ostream& os, const width& w);
|
|
};
|
|
class LOG4CPP_EXPORT tab {
|
|
private:
|
|
unsigned int size;
|
|
public:
|
|
inline tab(unsigned int i) : size(i) {}
|
|
friend LOG4CPP_EXPORT std::ostream& operator<< (std::ostream& os, const tab& w);
|
|
};
|
|
LOG4CPP_NS_END
|
|
|
|
#endif
|