RedirectStream

MLModule
genre Inspectors
status stable
author Wolf Spindler
package MeVisLab/Standard
dll MLStreamSupport
definition MLStreamSupport.def
see also CoreControl, MLLogFile
keywords std, cout, cerr, stream, 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/MLStreamSupport/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.

Max Stream Buffer Size (maxCoutStreamBufSize)

name: maxCoutStreamBufSize, type: Integer, default: 128

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

Max Stream Buffer Size (maxCerrStreamBufSize)

name: maxCerrStreamBufSize, type: Integer, default: 128

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

Hidden Fields

isThisActive

name: isThisActive, type: Bool, default: FALSE