The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
lg::scope_logger Class Reference

#include <log.hpp>

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

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

Detailed Description

Definition at line 146 of file log.hpp.

Constructor & Destructor Documentation

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

Definition at line 152 of file log.hpp.

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

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

Definition at line 157 of file log.hpp.

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

lg::scope_logger::~scope_logger ( )
inline

Definition at line 162 of file log.hpp.

References do_log_exit().

Member Function Documentation

void lg::scope_logger::do_indent ( ) const

Definition at line 256 of file log.cpp.

References i, indent, and output_.

Referenced by do_log_exit().

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

Definition at line 238 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 247 of file log.cpp.

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

Referenced by ~scope_logger().

Member Data Documentation

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

Definition at line 149 of file log.hpp.

Referenced by do_indent(), and do_log_entry().

std::string lg::scope_logger::str_
private

Definition at line 150 of file log.hpp.

Referenced by do_log_entry(), and do_log_exit().

ptime lg::scope_logger::ticks_
private

Definition at line 148 of file log.hpp.

Referenced by do_log_entry(), and do_log_exit().


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