The Battle for Wesnoth  1.15.9+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)
 

Private Attributes

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

Detailed Description

Definition at line 121 of file log.hpp.

Constructor & Destructor Documentation

◆ log_in_progress()

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

Definition at line 237 of file log.cpp.

Member Function Documentation

◆ enable_timestamp()

void lg::log_in_progress::enable_timestamp ( )

Definition at line 260 of file log.cpp.

References timestamp_.

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

◆ operator|()

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

◆ set_indent()

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

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

References prefix_.

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

Member Data Documentation

◆ indent_

int lg::log_in_progress::indent_ = 0
private

Definition at line 123 of file log.hpp.

Referenced by set_indent().

◆ prefix_

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

Definition at line 125 of file log.hpp.

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

◆ stream_

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

Definition at line 122 of file log.hpp.

Referenced by operator|().

◆ timestamp_

bool lg::log_in_progress::timestamp_ = false
private

Definition at line 124 of file log.hpp.

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


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