The Battle for Wesnoth  1.19.7+dev
Public Member Functions | Private Attributes | List of all members
lg::log_in_progress Class Reference

#include <log.hpp>

Public Member Functions

 log_in_progress (std::ostream &stream)
 
void operator| (formatter &&message)
 
void set_indent (int level)
 
void enable_timestamp ()
 
void set_prefix (const std::string &prefix)
 
void set_auto_newline (bool enabled)
 

Private Attributes

std::ostream & stream_
 
int indent_ = 0
 
bool timestamp_ = false
 
std::string prefix_
 
bool auto_newline_ = true
 

Detailed Description

Definition at line 192 of file log.hpp.

Constructor & Destructor Documentation

◆ log_in_progress()

lg::log_in_progress::log_in_progress ( std::ostream &  stream)

Definition at line 460 of file log.cpp.

Member Function Documentation

◆ enable_timestamp()

void lg::log_in_progress::enable_timestamp ( )

Definition at line 489 of file log.cpp.

References timestamp_.

Referenced by lg::logger::operator()().

◆ operator|()

void lg::log_in_progress::operator| ( formatter &&  message)

◆ set_auto_newline()

void lg::log_in_progress::set_auto_newline ( bool  enabled)

Definition at line 497 of file log.cpp.

References auto_newline_.

Referenced by lg::logger::operator()().

◆ set_indent()

void lg::log_in_progress::set_indent ( int  level)

Definition at line 485 of file log.cpp.

References indent_, and game_config::images::level.

Referenced by lg::logger::operator()().

◆ set_prefix()

void lg::log_in_progress::set_prefix ( const std::string &  prefix)

Definition at line 493 of file log.cpp.

References prefix_.

Referenced by lg::logger::operator()().

Member Data Documentation

◆ auto_newline_

bool lg::log_in_progress::auto_newline_ = true
private

Definition at line 197 of file log.hpp.

Referenced by operator|(), and set_auto_newline().

◆ indent_

int lg::log_in_progress::indent_ = 0
private

Definition at line 194 of file log.hpp.

Referenced by set_indent().

◆ prefix_

std::string lg::log_in_progress::prefix_
private

Definition at line 196 of file log.hpp.

Referenced by operator|(), and set_prefix().

◆ stream_

std::ostream& lg::log_in_progress::stream_
private

Definition at line 193 of file log.hpp.

Referenced by operator|().

◆ timestamp_

bool lg::log_in_progress::timestamp_ = false
private

Definition at line 195 of file log.hpp.

Referenced by enable_timestamp(), and operator|().


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