1234567891011121314151617181920212223242526272829303132 |
- /*
- * 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
|