10#ifndef _LOG4CPP_CATEGORYSTREAM_HH
11#define _LOG4CPP_CATEGORYSTREAM_HH
16#ifdef LOG4CPP_HAVE_SSTREAM
107#if LOG4CPP_HAS_WCHAR_T != 0
112 if (!(_wbuffer =
new std::wostringstream)) {
124 std::streamsize width(std::streamsize wide );
129 Priority::Value _priority;
132#if LOG4CPP_HAS_WCHAR_T != 0
133 std::wostringstream* _wbuffer;
#define LOG4CPP_EXPORT
Definition Export.hh:26
#define LOG4CPP_NOTHROW
Definition Portability.hh:80
This class enables streaming simple types and objects to a category.
Definition CategoryStream.hh:39
LOG4CPP_EXPORT friend CategoryStream & eol(CategoryStream &os)
eol manipulator
Definition CategoryStream.cpp:65
CategoryStream(Category &category, Priority::Value priority)
Construct a CategoryStream for given Category with given priority.
Definition CategoryStream.cpp:21
std::ostringstream * _buffer
Definition CategoryStream.hh:131
Category & getCategory() const
Returns the destination Category for this stream.
Definition CategoryStream.hh:59
CategoryStream & operator<<(const T &t)
Stream in arbitrary types and objects.
Definition CategoryStream.hh:81
CategoryStream &(* cspf)(CategoryStream &)
Definition CategoryStream.hh:138
Priority::Value getPriority() const LOG4CPP_NOTHROW
Returns the priority for this stream.
Definition CategoryStream.hh:65
CategoryStream & operator<<(const std::string &t)
Definition CategoryStream.hh:96
LOG4CPP_EXPORT friend CategoryStream & left(CategoryStream &os)
left manipulator
Definition CategoryStream.cpp:71
This is the central class in the log4j package.
Definition Category.hh:33
int Value
The type of Priority Values.
Definition Priority.hh:85
@ NOTSET
Definition Priority.hh:79
Definition Portability.hh:60
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16
ostream & operator<<(ostream &os, const width &w)
Definition Manipulator.cpp:10
LOG4CPP_EXPORT CategoryStream & eol(CategoryStream &os)
eol manipulator
Definition CategoryStream.cpp:65
class LOG4CPP_EXPORT Category
Definition CategoryStream.hh:23
LOG4CPP_EXPORT CategoryStream & left(CategoryStream &os)
left manipulator
Definition CategoryStream.cpp:71