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) |
Allows to customize the output target of test results.
|
noexcept |
Default constructor. By default, an OutputTarget will write to the LogManager.
nkDebug::OutputTarget::~OutputTarget | ( | ) |
Destructor.
void nkDebug::OutputTarget::setTargetLogManager | ( | ) |
Sets the output target as the LogManager.
void nkDebug::OutputTarget::setTargetFile | ( | nkMemory::StringView | path | ) |
Sets the output target as a file.
path | The path to the target file. Will be interpreted relative to nkResource's working folder (see nkResources::ResourceManager::setWorkingPath). |
void nkDebug::OutputTarget::write | ( | nkMemory::StringView | s | ) |
Requests to write to the target output.
s | The string to write. |