Base class of test writers. More...
#include <TestWriter.hpp>
Public Member Functions | |
virtual | ~TestWriter ()=default |
Destroy a test writer instance. More... | |
virtual std::unique_ptr< TestWriter > | clone () const =0 |
Clone the 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... | |
virtual void | writeString (const std::string &value)=0 |
Write the supplied UTF-8 string to the writer's output stream(s). More... | |
Base class of test writers.
|
virtualdefault |
Destroy a test writer instance.
|
pure virtual |
Clone the writer instance.
Implemented in OStreamTestWriter, FileTestWriter, LogWriter, and StdOutTestWriter.
|
inline |
Convert the supplied value to a UTF-8 string and write the string to the writer's output stream(s).
value | the object to write |
|
pure virtual |
Write the supplied UTF-8 string to the writer's output stream(s).
value | the string to write |
Implemented in OStreamTestWriter, FileTestWriter, LogWriter, and StdOutTestWriter.