The Battle for Wesnoth  1.17.12+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 142 of file log.hpp.

Constructor & Destructor Documentation

◆ log_in_progress()

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

Definition at line 351 of file log.cpp.

Member Function Documentation

◆ enable_timestamp()

void lg::log_in_progress::enable_timestamp ( )

Definition at line 377 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 385 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 373 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 381 of file log.cpp.

References prefix_.

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

Member Data Documentation

◆ auto_newline_

bool lg::log_in_progress::auto_newline_ = true

Definition at line 147 of file log.hpp.

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

◆ indent_

int lg::log_in_progress::indent_ = 0

Definition at line 144 of file log.hpp.

Referenced by set_indent().

◆ prefix_

std::string lg::log_in_progress::prefix_

Definition at line 146 of file log.hpp.

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

◆ stream_

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

Definition at line 143 of file log.hpp.

Referenced by operator|().

◆ timestamp_

bool lg::log_in_progress::timestamp_ = false

Definition at line 145 of file log.hpp.

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

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