00001 #ifndef IOF_OUT_MANIPS_HPP_
00002 #define IOF_OUT_MANIPS_HPP_
00003
00004
00018 #include <ostream>
00019
00020
00021 namespace iof
00022 {
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 namespace iof_private_manips
00035 {
00036 enum HideEol {eol};
00037 enum HideFlush {flush};
00038 };
00040 static const iof_private_manips::HideEol eol = iof_private_manips::eol;
00042 static const iof_private_manips::HideFlush flush = iof_private_manips::flush;
00043
00044
00045 inline std::ostream&
00046 operator<<(std::ostream& out, iof_private_manips::HideEol)
00047 {
00048 return out << std::endl;
00049 }
00050
00051 inline std::ostream&
00052 operator<<(std::ostream& out, iof_private_manips::HideFlush)
00053 {
00054 return out.flush();
00055 }
00056
00057
00058 }
00059
00060
00061 #endif // IOF_OUT_MANIPS_HPP_