lg::scope_logger Class Reference

#include <log.hpp>

List of all members.

Public Member Functions

 scope_logger (log_domain const &domain, const char *str)
 scope_logger (log_domain const &domain, const std::string &str)
 ~scope_logger ()
void do_indent () const

Private Member Functions

void do_log_entry (log_domain const &domain, const char *str)
void do_log_exit ()

Private Attributes

int ticks_
std::ostream * output_
const char * str_


Detailed Description

Definition at line 71 of file log.hpp.


Constructor & Destructor Documentation

lg::scope_logger::scope_logger ( log_domain const &  domain,
const char *  str 
) [inline]

Definition at line 77 of file log.hpp.

References lg::debug, do_log_entry(), and lg::logger::dont_log().

lg::scope_logger::scope_logger ( log_domain const &  domain,
const std::string &  str 
) [inline]

Definition at line 82 of file log.hpp.

References lg::debug, do_log_entry(), and lg::logger::dont_log().

lg::scope_logger::~scope_logger (  )  [inline]

Definition at line 87 of file log.hpp.

References do_log_exit(), and output_.


Member Function Documentation

void lg::scope_logger::do_indent (  )  const

Definition at line 144 of file log.cpp.

References indent, and output_.

Referenced by do_log_exit().

void lg::scope_logger::do_log_entry ( log_domain const &  domain,
const char *  str 
) [private]

Definition at line 126 of file log.cpp.

References lg::debug, indent, output_, str_, and ticks_.

Referenced by scope_logger().

void lg::scope_logger::do_log_exit (  )  [private]

Definition at line 135 of file log.cpp.

References do_indent(), lg::get_timestamp(), indent, str_, ticks_, and timestamp.

Referenced by ~scope_logger().


Member Data Documentation

int lg::scope_logger::ticks_ [private]

Definition at line 73 of file log.hpp.

Referenced by do_log_entry(), and do_log_exit().

std::ostream* lg::scope_logger::output_ [private]

Definition at line 74 of file log.hpp.

Referenced by do_indent(), do_log_entry(), and ~scope_logger().

const char* lg::scope_logger::str_ [private]

Definition at line 75 of file log.hpp.

Referenced by do_log_entry(), and do_log_exit().


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs