Public Member Functions | List of all members
LogWriter Class Reference

A test writer that writes to the specified Balau logger. More...

#include <LogWriter.hpp>

Inheritance diagram for LogWriter:
[legend]
Collaboration diagram for LogWriter:
[legend]

Public Member Functions

std::unique_ptr< TestWriterclone () const override
 Clone the writer instance. More...
 
void writeString (const std::string &str) override
 Write the supplied UTF-8 string to the writer's output stream(s). More...
 
- Public Member Functions inherited from TestWriter
virtual ~TestWriter ()=default
 Destroy a test writer instance. More...
 
template<typename T >
void write (T value)
 Convert the supplied value to a UTF-8 string and write the string to the writer's output stream(s). More...
 

Detailed Description

A test writer that writes to the specified Balau logger.

Member Function Documentation

◆ clone()

std::unique_ptr<TestWriter> clone ( ) const
inlineoverridevirtual

Clone the writer instance.

Returns
a clone of the writer

Implements TestWriter.

◆ writeString()

void writeString ( const std::string &  value)
overridevirtual

Write the supplied UTF-8 string to the writer's output stream(s).

Parameters
valuethe string to write

Implements TestWriter.


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