#include <logging.hpp>
Public Member Functions | |
| log (char const *id, std::ostream &stream) | |
| char const * | id () const |
| bool | enabled () const |
| void | enable (bool e) |
| void | flush () |
| template<class T> | |
| log & | operator<< (T const &x) |
Private Attributes | |
| char const * | m_id |
| bool | m_enabled |
| std::ostream & | m_stream |
Definition at line 42 of file logging.hpp.
| libtorrent::dht::log::log | ( | char const * | id, | |
| std::ostream & | stream | |||
| ) | [inline] |
Definition at line 45 of file logging.hpp.
| char const* libtorrent::dht::log::id | ( | ) | const [inline] |
Definition at line 52 of file logging.hpp.
References m_id.
Referenced by libtorrent::dht::log_event::log_event().
| bool libtorrent::dht::log::enabled | ( | ) | const [inline] |
Definition at line 57 of file logging.hpp.
References m_enabled.
Referenced by libtorrent::dht::log_event::log_event(), libtorrent::dht::log_event::operator bool(), and libtorrent::dht::log_event::~log_event().
| void libtorrent::dht::log::enable | ( | bool | e | ) | [inline] |
| void libtorrent::dht::log::flush | ( | ) | [inline] |
Definition at line 67 of file logging.hpp.
References m_stream.
Referenced by libtorrent::dht::log_event::~log_event().
| log& libtorrent::dht::log::operator<< | ( | T const & | x | ) | [inline] |
char const* libtorrent::dht::log::m_id [private] |
bool libtorrent::dht::log::m_enabled [private] |
std::ostream& libtorrent::dht::log::m_stream [private] |
1.5.6