All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Begin and end stream redirection. More...
#include <StreamRedirection.h>
Public Member Functions | |
StreamRedirection (AbstractStream *s) | |
~StreamRedirection () |
Begin and end stream redirection.
Begin and end stream redirection automatically when this object is deleted. This object is dedicated for short term redirections. Begin and end must be in the same thread.
QGpCoreTools::StreamRedirection::StreamRedirection | ( | AbstractStream * | s | ) | [inline] |
Directs all output to stream s.
References QGpCoreTools::App::beginRedirectStream().
{ _stream=s; App::beginRedirectStream(s); }
QGpCoreTools::StreamRedirection::~StreamRedirection | ( | ) | [inline] |
Ends redirection.
References QGpCoreTools::App::endRedirectStream().
{ App::endRedirectStream(_stream); }