toast::basic_logbuf< CharT, Traits, Alloc > Class Template Reference
[toast logging library]

#include <toast/logstream.hpp>

List of all members.


Detailed Description

template<typename CharT, typename Traits = std::char_traits<CharT>, typename Alloc = std::allocator<CharT>>
class toast::basic_logbuf< CharT, Traits, Alloc >

logbuf Warning: ignores the Alloc template parameter. Will always allocate internal buffer with new.

Public Types

typedef Alloc allocator_type
typedef CharT char_type
typedef Traits traits_type
typedef traits_type::int_type int_type
typedef traits_type::off_type off_type
typedef traits_type::pos_type pos_type
typedef basic_log_handle< CharT > log_handle_type

Public Member Functions

 basic_logbuf (log::severity s=log::DEFAULT)
 basic_logbuf (log_handle_type const &log, log::severity s=log::DEFAULT)
void log (log_handle_type const &log)
log_handle_type log () const
log::severity severity () const
void severity (log::severity s)
bool check (log::severity s) const

Protected Member Functions

virtual int sync ()
virtual std::streamsize xsputn (char_type const *s, std::streamsize n)
virtual int_type overflow (int_type meta=traits_type::eof())

Friends

template<typename T>
detail::proxy_logstream< CharT,
Traits, Alloc > & 
detail::proxy_logstream (T const &toStream)

The documentation for this class was generated from the following file:

SourceForge.net Logo