Manipulator.hh 715 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Manipulator.hh
  3. *
  4. * Copyright 2005, Francis ANDRE. All rights reserved.
  5. *
  6. * See the COPYING file for the terms of usage and distribution.
  7. */
  8. #ifndef _LOG4CPP_MANIPULATOR_HH
  9. #define _LOG4CPP_MANIPULATOR_HH
  10. #include <iostream>
  11. #include <log4cpp/Portability.hh>
  12. LOG4CPP_NS_BEGIN
  13. class LOG4CPP_EXPORT width {
  14. private:
  15. unsigned int size;
  16. public:
  17. inline width(unsigned int i) : size(i) {}
  18. friend LOG4CPP_EXPORT std::ostream& operator<< (std::ostream& os, const width& w);
  19. };
  20. class LOG4CPP_EXPORT tab {
  21. private:
  22. unsigned int size;
  23. public:
  24. inline tab(unsigned int i) : size(i) {}
  25. friend LOG4CPP_EXPORT std::ostream& operator<< (std::ostream& os, const tab& w);
  26. };
  27. LOG4CPP_NS_END
  28. #endif