log4cpp: Manipulator.hh Source File

- Main Page
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# Manipulator.hh

Go to the documentation of this file.

    00001 /*
    00002  * Manipulator.hh
    00003  *
    00004  * Copyright 2005, Francis ANDRE. All rights reserved.
    00005  *
    00006  * See the COPYING file for the terms of usage and distribution.
    00007  */
    00008
    00009 #ifndef _LOG4CPP_MANIPULATOR_HH
    00010 #define _LOG4CPP_MANIPULATOR_HH
    00011
    00012 #include <iostream>
    00013 #include <log4cpp/Portability.hh>
    00014 namespace log4cpp {
    00015         class LOG4CPP_EXPORT width {
    00016         private:
    00017                 unsigned int size;
    00018         public:
    00019 inline  width(unsigned int i) : size(i) {}
    00020 friend LOG4CPP_EXPORT std::ostream& operator<< (std::ostream& os, const width& w);
    00021         };
    00022 class LOG4CPP_EXPORT tab {
    00023         private:
    00024                 unsigned int size;
    00025         public:
    00026 inline  tab(unsigned int i) : size(i) {}
    00027 friend LOG4CPP_EXPORT std::ostream& operator<< (std::ostream& os, const tab& w);
    00028         };
    00029 }
    00030 #endif