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 for 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

Field Index

Activate redirection (redirectCout): Bool

Send to ML error output (sendCerrToErrorOutput): Bool

Activate redirection (redirectCerr): Bool

Send to VisualStudio console (sendCoutToVCPPConsole): Bool

isThisActive: Bool

Send to VisualStudio console (sendCerrToVCPPConsole): Bool

maxCerrStreamBufSize: Integer

maxCoutStreamBufSize: Integer

Send to default output (sendCoutToDefaultCoutOutput): Bool

Send to default output (sendCerrToDefaultCerrOutput): Bool

Send to ML error output (sendCoutToErrorOutput): Bool

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

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

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

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

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

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

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