libtorrent::dht::log Class Reference

#include <logging.hpp>

List of all members.

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>
logoperator<< (T const &x)

Private Attributes

char const * m_id
bool m_enabled
std::ostream & m_stream


Detailed Description

Definition at line 42 of file logging.hpp.


Constructor & Destructor Documentation

libtorrent::dht::log::log ( char const *  id,
std::ostream &  stream 
) [inline]

Definition at line 45 of file logging.hpp.


Member Function Documentation

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]

void libtorrent::dht::log::enable ( bool  e  )  [inline]

Definition at line 62 of file logging.hpp.

References m_enabled.

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().

template<class T>
log& libtorrent::dht::log::operator<< ( T const &  x  )  [inline]

Definition at line 70 of file logging.hpp.

References m_stream.


Member Data Documentation

char const* libtorrent::dht::log::m_id [private]

Definition at line 77 of file logging.hpp.

Referenced by id().

Definition at line 78 of file logging.hpp.

Referenced by enable(), and enabled().

std::ostream& libtorrent::dht::log::m_stream [private]

Definition at line 79 of file logging.hpp.

Referenced by flush(), and operator<<().


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

Generated on Sun May 25 00:21:46 2008 by  doxygen 1.5.6