The Battle for Wesnoth  1.17.0-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 127 of file log.hpp.

Constructor & Destructor Documentation

◆ log_in_progress()

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

Definition at line 234 of file log.cpp.

Member Function Documentation

◆ enable_timestamp()

void lg::log_in_progress::enable_timestamp ( )

Definition at line 257 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 253 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 261 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 129 of file log.hpp.

Referenced by set_indent().

◆ prefix_

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

Definition at line 131 of file log.hpp.

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

◆ stream_

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

Definition at line 128 of file log.hpp.

Referenced by operator|().

◆ timestamp_

bool lg::log_in_progress::timestamp_ = false
private

Definition at line 130 of file log.hpp.

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


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