#include <log.hh>

Public Member Functions | |
| basic_levelbuf (unsigned level, Super *other, const unsigned &minlevel=current_log_level) | |
| Super * | get_streambuf () |
| void | set_streambuf (Super *other) |
| virtual void | increase_level (unsigned i=1) |
| virtual void | decrease_level (unsigned i=1) |
| virtual void | reset_level () |
Protected Member Functions | |
| virtual void | imbue (const std::locale &l) |
| virtual int_type | overflow (int_type c=traits_type::eof()) |
| virtual std::basic_streambuf < char_type, traits_type > * | setbuf (char_type *s, std::streamsize n) |
| virtual int | sync () |
Private Types | |
| typedef std::basic_streambuf < C, T > | Super |
| typedef Super::char_type | char_type |
| typedef Super::traits_type | traits_type |
| typedef Super::int_type | int_type |
| typedef Super::pos_type | pos_type |
| typedef Super::off_type | off_type |
Private Attributes | |
| Super * | other_ |
| unsigned | level_ |
| unsigned | baselevel_ |
| const unsigned & | minlevel_ |
typedef std::basic_streambuf<C, T> olsr::utl::basic_levelbuf< C, T >::Super [private] |
typedef Super::char_type olsr::utl::basic_levelbuf< C, T >::char_type [private] |
typedef Super::traits_type olsr::utl::basic_levelbuf< C, T >::traits_type [private] |
typedef Super::int_type olsr::utl::basic_levelbuf< C, T >::int_type [private] |
typedef Super::pos_type olsr::utl::basic_levelbuf< C, T >::pos_type [private] |
typedef Super::off_type olsr::utl::basic_levelbuf< C, T >::off_type [private] |
| olsr::utl::basic_levelbuf< C, T >::basic_levelbuf | ( | unsigned | level, | |
| Super * | other, | |||
| const unsigned & | minlevel = current_log_level | |||
| ) | [inline] |
| Super* olsr::utl::basic_levelbuf< C, T >::get_streambuf | ( | ) | [inline] |
References olsr::utl::basic_levelbuf< C, T >::other_.
| void olsr::utl::basic_levelbuf< C, T >::set_streambuf | ( | Super * | other | ) | [inline] |
References olsr::utl::basic_levelbuf< C, T >::other_.
| virtual void olsr::utl::basic_levelbuf< C, T >::increase_level | ( | unsigned | i = 1 |
) | [inline, virtual] |
| virtual void olsr::utl::basic_levelbuf< C, T >::decrease_level | ( | unsigned | i = 1 |
) | [inline, virtual] |
| virtual void olsr::utl::basic_levelbuf< C, T >::reset_level | ( | ) | [inline, virtual] |
Implements olsr::utl::LevelableBuf.
References olsr::utl::basic_levelbuf< C, T >::baselevel_, and olsr::utl::basic_levelbuf< C, T >::level_.
| virtual void olsr::utl::basic_levelbuf< C, T >::imbue | ( | const std::locale & | l | ) | [inline, protected, virtual] |
References olsr::utl::basic_levelbuf< C, T >::other_.
| basic_levelbuf< C, T >::int_type olsr::utl::basic_levelbuf< C, T >::overflow | ( | int_type | c = traits_type::eof() |
) | [inline, protected, virtual] |
| virtual std::basic_streambuf<char_type, traits_type>* olsr::utl::basic_levelbuf< C, T >::setbuf | ( | char_type * | s, | |
| std::streamsize | n | |||
| ) | [inline, protected, virtual] |
References olsr::utl::basic_levelbuf< C, T >::other_.
| virtual int olsr::utl::basic_levelbuf< C, T >::sync | ( | ) | [inline, protected, virtual] |
Super* olsr::utl::basic_levelbuf< C, T >::other_ [private] |
Referenced by olsr::utl::basic_levelbuf< C, T >::get_streambuf(), olsr::utl::basic_levelbuf< C, T >::imbue(), olsr::utl::basic_levelbuf< C, T >::overflow(), olsr::utl::basic_levelbuf< C, T >::set_streambuf(), olsr::utl::basic_levelbuf< C, T >::setbuf(), and olsr::utl::basic_levelbuf< C, T >::sync().
unsigned olsr::utl::basic_levelbuf< C, T >::level_ [private] |
unsigned olsr::utl::basic_levelbuf< C, T >::baselevel_ [private] |
Referenced by olsr::utl::basic_levelbuf< C, T >::reset_level().
const unsigned& olsr::utl::basic_levelbuf< C, T >::minlevel_ [private] |
1.5.6