#include <CategoryStream.hh>
Collaboration diagram for log4cpp::CategoryStream:
Public Types | |
typedef CategoryStream &(* | cspf )(CategoryStream &) |
enum | Separator { ENDLINE = 0, EOL = 0 } |
Enumeration of special 'Separators'. More... | |
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 throw () |
Returns the priority for this stream. | |
CategoryStream & | operator<< (Separator separator) |
Streams in a Separator. | |
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. | |
template<typename T> | |
CategoryStream & | operator<< (const std::string &t) |
template<typename T> | |
CategoryStream & | operator<< (const std::wstring &t) |
std::streamsize | width (std::streamsize wide) |
Set the width output on CategoryStream. | |
CategoryStream & | operator<< (cspf) |
Friends | |
LOG4CPP_EXPORT CategoryStream & | eol (CategoryStream &os) |
eol manipulator | |
LOG4CPP_EXPORT CategoryStream & | left (CategoryStream &os) |
left manipulator |
Use category.errorStream(), etc. to obtain a CategoryStream class.
|
|
|
Enumeration of special 'Separators'. Currently only contains the 'ENDLINE' separator, which separates two log messages. |
|
Construct a CategoryStream for given Category with given priority.
|
|
Destructor for CategoryStream.
|
|
Flush the contents of the stream buffer to the Category and empties the buffer.
|
|
Returns the destination Category for this stream.
|
|
Returns the priority for this stream.
|
|
|
|
|
|
|
|
Stream in arbitrary types and objects.
|
|
Streams in a Separator. If the separator equals CategoryStream::ENDLINE it sends the contents of the stream buffer to the Category with set priority and empties the buffer.
|
|
Set the width output on CategoryStream.
|
|
eol manipulator
|
|
left manipulator
|