RedirectStream

MLModule
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLControl
definition MLControl.def
keywords std, cout, cerr, error, output, console, debug, redirection

Purpose

The module RedirectStream installs stream redirections of std::cout and std::cerr to the ML ErrorOutput class, to the Visual-C++ Debug-Output window (if available) or to standard console outputs of std::cout/cerr.

Windows

Default Panel

../../../Modules/ML/MLControl/mhelp/Images/Screenshots/RedirectStream._default.png

Parameter Fields

Visible Fields

Activate redirection (redirectCout)

name: redirectCout, type: Bool, default: FALSE, deprecated name: RedirectCout

If checked, std::cout messages can be redirected by this module.

Activate redirection (redirectCerr)

name: redirectCerr, type: Bool, default: FALSE, deprecated name: RedirectCerr

If checked, std::cerr messages can be redirected by this module.

Send to ML error output (sendCoutToErrorOutput)

name: sendCoutToErrorOutput, type: Bool, default: FALSE, deprecated name: sentCoutToErrorOutput,SentCoutToErrorOutput

If checked, std::cout messages are sent to the ML Error handler.

Send to ML error output (sendCerrToErrorOutput)

name: sendCerrToErrorOutput, type: Bool, default: FALSE, deprecated name: sentCerrToErrorOutput,SentCerrToErrorOutput

If checked, std::cerr messages are send to the ML Error handler.

Send to VisualStudio console (sendCoutToVCPPConsole)

name: sendCoutToVCPPConsole, type: Bool, default: FALSE, deprecated name: sentCoutToVCPPConsole,SentCoutToVCPPConsole

If checked, std::cout messages are sent to the Visual C++ Debug console.

Send to VisualStudio console (sendCerrToVCPPConsole)

name: sendCerrToVCPPConsole, type: Bool, default: FALSE, deprecated name: sentCerrToVCPPConsole,SentCerrToVCPPConsole

If checked, std::cerr messages are sent to the Visual C++ Debug console.

Send to default output (sendCoutToDefaultCoutOutput)

name: sendCoutToDefaultCoutOutput, type: Bool, default: FALSE, deprecated name: sentCoutToDefaultCoutOutput,SentCoutToDefaultCoutOutput

If checked, std::cout messages are sent to the default output.

Send to default output (sendCerrToDefaultCerrOutput)

name: sendCerrToDefaultCerrOutput, type: Bool, default: FALSE, deprecated name: sentCerrToDefaultCerrOutput,SentCerrToDefaultCerrOutput

If checked, std::cerr messages are sent to the default output.

Hidden Fields

maxCoutStreamBufSize

name: maxCoutStreamBufSize, type: Integer, default: 128

Sets a hint for size of data in stream buffer which leads to flush on next output.

maxCerrStreamBufSize

name: maxCerrStreamBufSize, type: Integer, default: 128

Sets a hint for size of data in stream buffer which leads to flush on next output.

isThisActive

name: isThisActive, type: Bool, persistent: no