Public Member Functions | Private Member Functions | Private Attributes

lg::scope_logger Class Reference

#include <log.hpp>

Collaboration diagram for lg::scope_logger:
Collaboration graph
[legend]

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 std::string &str)
void do_log_exit ()

Private Attributes

int ticks_
std::ostream * output_
std::string str_

Detailed Description

Definition at line 101 of file log.hpp.


Constructor & Destructor Documentation

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

Definition at line 107 of file log.hpp.

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

Here is the call graph for this function:

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

Definition at line 114 of file log.hpp.

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

Here is the call graph for this function:

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

Definition at line 121 of file log.hpp.

References do_log_exit(), and output_.

Here is the call graph for this function:


Member Function Documentation

void lg::scope_logger::do_indent (  )  const

Definition at line 165 of file log.cpp.

References indent, and output_.

Referenced by do_log_exit().

Here is the caller graph for this function:

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

Definition at line 147 of file log.cpp.

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

Referenced by scope_logger().

Here is the caller graph for this function:

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

Definition at line 156 of file log.cpp.

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

Referenced by ~scope_logger().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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

Definition at line 104 of file log.hpp.

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

std::string lg::scope_logger::str_ [private]

Definition at line 105 of file log.hpp.

Referenced by do_log_entry(), and do_log_exit().

int lg::scope_logger::ticks_ [private]

Definition at line 103 of file log.hpp.

Referenced by do_log_entry(), and do_log_exit().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:24:44 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs