unit_threaded.io

IO related functions

Members

Classes

WriterThread
class WriterThread

Thread to output to stdout

Functions

enableDebugOutput
void enableDebugOutput(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
forceEscCodes
void forceEscCodes()
Undocumented in source. Be warned that the author may not have intended to support it.
isDebugOutputEnabled
bool isDebugOutputEnabled()
Undocumented in source. Be warned that the author may not have intended to support it.
otherThread
void otherThread(Tid writerTid, Tid testTid)
Undocumented in source. Be warned that the author may not have intended to support it.
resetFakeFiles
void resetFakeFiles()
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(Output output, T args)

Writes the args in a thread-safe manner.

writeRed
void writeRed(Output output, T args)

Writes the args in a thread-safe manner in red (POSIX only). and appends a newline.

writeYellow
void writeYellow(Output output, T args)

Writes the args in a thread-safe manner in yellow (POSIX only). and appends a newline.

writeln
void writeln(Output output, T args)

Writes the args in a thread-safe manner and appends a newline.

writelnGreen
void writelnGreen(Output output, T args)

Writes the args in a thread-safe manner in green (POSIX only). and appends a newline.

writelnRed
void writelnRed(Output output, T args)

Writes the args in a thread-safe manner in red (POSIX only) and appends a newline.

writelnUt
void writelnUt(T args)

Write if debug output was enabled.

Interfaces

Output
interface Output
Undocumented in source.

Manifest constants

_escCodes
enum _escCodes;
Undocumented in source.
nullFileName
enum nullFileName;
Undocumented in source.
nullFileName
enum nullFileName;
Undocumented in source.

Structs

FakeFile
struct FakeFile
Undocumented in source.

Variables

_useEscCodes
bool _useEscCodes;
Undocumented in source.
gBool
bool gBool;
Undocumented in source.
gErr
FakeFile gErr;
Undocumented in source.
gOut
FakeFile gOut;
Undocumented in source.

Meta