Claw  1.7.3
Public Member Functions | List of all members
claw::log_stream_concise Class Reference

A log stream that does not output a message that have been recently output. More...

#include <log_stream_concise.hpp>

Inheritance diagram for claw::log_stream_concise:
claw::log_stream claw::pattern::non_copyable

Public Member Functions

 log_stream_concise (log_stream *s, std::size_t max_history_size=25)
 Constructor.
virtual ~log_stream_concise ()
 Destructor.
virtual void write (const std::string &str)
 Write a string in the stream.
virtual void flush ()
 Flush the stream.
- Public Member Functions inherited from claw::log_stream
virtual ~log_stream ()
 Destructor.
- Public Member Functions inherited from claw::pattern::non_copyable
 non_copyable ()
 Default constructor.

Detailed Description

A log stream that does not output a message that have been recently output.

Author
Julien Jorge

Definition at line 61 of file log_stream_concise.hpp.

Constructor & Destructor Documentation

claw::log_stream_concise::log_stream_concise ( log_stream s,
std::size_t  max_history_size = 25 
)
explicit

Constructor.

Parameters
sThe stream in which the messages are finally written. It will be deleted in the destructor.
max_history_sizeThe maximum number of lines in the history.

Definition at line 42 of file log_stream_concise.cpp.

Member Function Documentation

void claw::log_stream_concise::write ( const std::string &  str)
virtual

Write a string in the stream.

Parameters
strThe sring to write.

Implements claw::log_stream.

Definition at line 62 of file log_stream_concise.cpp.


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