API Documentation
Public Member Functions | List of all members
nkDebug::OutputTarget Class Referencefinal

Allows to customize the output target of test results. More...

Public Member Functions

 OutputTarget () noexcept
 
 ~OutputTarget ()
 
void setTargetLogManager ()
 
void setTargetFile (nkMemory::StringView path)
 
void write (nkMemory::StringView s)
 

Detailed Description

Allows to customize the output target of test results.

Constructor & Destructor Documentation

◆ OutputTarget()

nkDebug::OutputTarget::OutputTarget ( )
noexcept

Default constructor. By default, an OutputTarget will write to the LogManager.

◆ ~OutputTarget()

nkDebug::OutputTarget::~OutputTarget ( )

Destructor.

Member Function Documentation

◆ setTargetLogManager()

void nkDebug::OutputTarget::setTargetLogManager ( )

Sets the output target as the LogManager.

◆ setTargetFile()

void nkDebug::OutputTarget::setTargetFile ( nkMemory::StringView  path)

Sets the output target as a file.

Parameters
pathThe path to the target file. Will be interpreted relative to nkResource's working folder (see nkResources::ResourceManager::setWorkingPath).

◆ write()

void nkDebug::OutputTarget::write ( nkMemory::StringView  s)

Requests to write to the target output.

Parameters
sThe string to write.

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