Public Member Functions | List of all members
TestWriter Class Referenceabstract

Base class of test writers. More...

#include <TestWriter.hpp>

Inheritance diagram for TestWriter:
[legend]

Public Member Functions

virtual ~TestWriter ()=default
 Destroy a test writer instance. More...
 
virtual std::unique_ptr< TestWriterclone () 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...
 

Detailed Description

Base class of test writers.

Constructor & Destructor Documentation

◆ ~TestWriter()

virtual ~TestWriter ( )
virtualdefault

Destroy a test writer instance.

Member Function Documentation

◆ clone()

virtual std::unique_ptr<TestWriter> clone ( ) const
pure virtual

Clone the writer instance.

Returns
a clone of the writer

Implemented in OStreamTestWriter, FileTestWriter, LogWriter, and StdOutTestWriter.

◆ write()

void write ( value)
inline

Convert the supplied value to a UTF-8 string and write the string to the writer's output stream(s).

Parameters
valuethe object to write

◆ writeString()

virtual void writeString ( const std::string &  value)
pure virtual

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

Parameters
valuethe string to write

Implemented in OStreamTestWriter, FileTestWriter, LogWriter, and StdOutTestWriter.


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