Public Member Functions | |
LogFilter (const std::string &path, const std::string &prefix) | |
Constructor. | |
LogFilter (std::ostream &stream, const std::string &prefix) | |
Constructor, stream is managed by client. | |
~LogFilter () | |
Destructor. | |
int | put (int c) |
Output a character. | |
int | get () |
Input a character, always fails. | |
int | sync () |
Flush buffers. | |
void | close () |
This is a noop. | |
void | prefix (const std::string &prefix) |
Set prefix that will be printer at the start of each output line. | |
const std::string & | prefix () const |
std::ios::iostate | state () const |
Private Attributes | |
bool | owner_ |
std::string | buf_ |
std::string | prefix_ |
std::ostream * | stream_ |
bool | lastnl_ |
Definition at line 34 of file logstream.h.
|
Constructor.
|
|
Constructor, stream is managed by client.
|
|
Destructor.
|
|
Output a character.
|
|
Input a character, always fails.
|
|
Flush buffers.
|
|
This is a noop. Definition at line 69 of file logstream.h. |
|
Set prefix that will be printer at the start of each output line. Definition at line 73 of file logstream.h. References prefix_. |
|
References prefix_. |
|
|
|
Definition at line 84 of file logstream.h. |
|
Definition at line 85 of file logstream.h. |
|
Definition at line 86 of file logstream.h. Referenced by prefix(). |
|
Definition at line 87 of file logstream.h. |
|
Definition at line 88 of file logstream.h. |
dvutil-0.13.15 | [30 December, 2004] |