All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
QGpCoreTools::StreamRedirection Class Reference

Begin and end stream redirection. More...

#include <StreamRedirection.h>

List of all members.

Public Member Functions

 StreamRedirection (AbstractStream *s)
 ~StreamRedirection ()

Detailed Description

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.


Constructor & Destructor Documentation

Directs all output to stream s.

References QGpCoreTools::App::beginRedirectStream().

                                          {
      _stream=s;
      App::beginRedirectStream(s);
    }

Ends redirection.

References QGpCoreTools::App::endRedirectStream().

                         {
      App::endRedirectStream(_stream);
    }

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines