#include "TRedirectOutputGuard.h"

TRedirectOutputGuard


class description - source file - inheritance tree (.pdf)

class TRedirectOutputGuard

Inheritance Chart:
TRedirectOutputGuard

    public:
TRedirectOutputGuard(const char* fout, const char* mode = "a") TRedirectOutputGuard(const TRedirectOutputGuard&) virtual ~TRedirectOutputGuard() static TClass* Class() virtual TClass* IsA() const TRedirectOutputGuard& operator=(const TRedirectOutputGuard&) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members




Class Description

                                                                      
 TRedirectOutputGuard                                                 
                                                                      
 This class provides output redirection to a file in a guaranteed     
 exception safe way. Use like this:                                   
 {                                                                    
    TRedirectOutputGuard guard(filelog, mode);                        
    ... // do something                                               
 }                                                                    
 when guard goes out of scope output is automatically redirected to   
 the standard units in the TRedirectOutputGuard destructor.           
 The exception mechanism takes care of calling the dtors              
 of local objects so it is exception safe.                            
 The 'mode' options follow the fopen write modes convention; default  
 is "a".                                                              
                                                                      




Inline Functions


                         void ~TRedirectOutputGuard()
         TRedirectOutputGuard TRedirectOutputGuard(const char* fout, const char* mode = "a")
                      TClass* Class()
                      TClass* IsA() const
                         void ShowMembers(TMemberInspector& insp, char* parent)
                         void Streamer(TBuffer& b)
                         void StreamerNVirtual(TBuffer& b)
         TRedirectOutputGuard TRedirectOutputGuard(const TRedirectOutputGuard&)
        TRedirectOutputGuard& operator=(const TRedirectOutputGuard&)


Author: G. Ganis 10/10/2005
Last update: root/base:$Name: $:$Id: TRedirectOutputGuard.h,v 1.1 2005/10/11 12:39:36 rdm Exp $
Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.