6 #ifndef __XSTREAM_DATER_H
7 #define __XSTREAM_DATER_H
53 std::streamsize
xsputn(
const char *
buffer, std::streamsize n);
dater(std::streambuf *sb, const std::string &format="[%c] ", char separator='\n', bool write_first=true)
construct using another streambuf
void write_date()
writes the current date to the streambuf
int sync()
tries to write as much data as possible (overloaded from streambuf)
std::streamsize xsputn(const char *buffer, std::streamsize n)
write an entire buffer (overloaded from streambuf)
int overflow(int c)
write a character that surpasses buffer end (overloaded from streambuf)
filter that add a time stamp on the begining of each line
POSIX helper objects and functions.