30 static constexpr std::streambuf::char_type clearChar =
'\x12';
77 int overflow(
int c )
override;
82 std::streamsize xsputn(
const char* s, std::streamsize count)
override;
Special std::streambuf class for capturing lines.
Definition LineBuffer.h:15
void setNewLineHandler(const handler_type &event)
When a new line is added this event is triggered.
LineBuffer(unsigned max_lines)
Constructor settings the maximum lines the buffer can hold.
std::string getLine(unsigned line) const
Returns requested line in the buffer.
int totalLineCount() const
Returns the total lines passed through the fifo buffer.
TClosure< void, LineBuffer *, const std::string * > handler_type
Closure handler type to handle buffer changes. When the std:string line argument is a nullptr the buf...
Definition LineBuffer.h:61
const handler_type & newLineHandler()
Returns the new line handler.
void setMaxLines(unsigned max_lines)
Sets the maximum lines the stream can hold. Flushes all lines first.
~LineBuffer() override
Overridden virtual destructor.
Encapsulates the std::function() template.
Definition TClosure.h:14
Fifo template for classes and structure pointers.
Definition TFifoClass.h:14
#define _MISC_CLASS
Definition misc/global.h:40
Definition Application.h:10