|
log4cpp 1.1
|
This class enables streaming simple types and objects to a category. More...
#include <CategoryStream.hh>

Public Types | |
| typedef CategoryStream &(* | cspf) (CategoryStream &) |
Public Member Functions | |
| CategoryStream (Category &category, Priority::Value priority) | |
| Construct a CategoryStream for given Category with given priority. | |
| ~CategoryStream () | |
| Destructor for CategoryStream. | |
| Category & | getCategory () const |
| Returns the destination Category for this stream. | |
| Priority::Value | getPriority () const LOG4CPP_NOTHROW |
| Returns the priority for this stream. | |
| void | flush () |
| Flush the contents of the stream buffer to the Category and empties the buffer. | |
| template<typename T > | |
| CategoryStream & | operator<< (const T &t) |
| Stream in arbitrary types and objects. | |
| CategoryStream & | operator<< (const char *t) |
| template<typename T > | |
| CategoryStream & | operator<< (const std::string &t) |
| std::streamsize | width (std::streamsize wide) |
| Set the width output on CategoryStream. | |
| CategoryStream & | operator<< (cspf) |
Friends | |
| LOG4CPP_EXPORT friend CategoryStream & | eol (CategoryStream &os) |
| eol manipulator | |
| LOG4CPP_EXPORT friend CategoryStream & | left (CategoryStream &os) |
| left manipulator | |
This class enables streaming simple types and objects to a category.
Use category.errorStream(), etc. to obtain a CategoryStream class.
| typedef CategoryStream &(* log4cpp::CategoryStream::cspf) (CategoryStream &) |
| log4cpp::CategoryStream::CategoryStream | ( | Category & | category, |
| Priority::Value | priority | ||
| ) |
Construct a CategoryStream for given Category with given priority.
| category | The category this stream will send log messages to. |
| priority | The priority the log messages will get or Priority::NOTSET to silently discard any streamed in messages. |
| log4cpp::CategoryStream::~CategoryStream | ( | ) |
Destructor for CategoryStream.
| void log4cpp::CategoryStream::flush | ( | ) |
Flush the contents of the stream buffer to the Category and empties the buffer.
|
inline |
|
inline |
Returns the priority for this stream.
| CategoryStream & log4cpp::CategoryStream::operator<< | ( | const char * | t | ) |
|
inline |
|
inline |
Stream in arbitrary types and objects.
| t | The value or object to stream in. |
| CategoryStream & log4cpp::CategoryStream::operator<< | ( | cspf | pf | ) |
| std::streamsize log4cpp::CategoryStream::width | ( | std::streamsize | wide | ) |
Set the width output on CategoryStream.
|
friend |
eol manipulator
|
friend |
left manipulator
| std::ostringstream* log4cpp::CategoryStream::_buffer |