Temporarily redirect IO to file for lifetime of this object. More...
#include <SgDebug.h>
Public Member Functions | |
SgDebugToNewFile (const char *filename) | |
SgDebugToNewFile () | |
void | SetFile (const char *filename) |
~SgDebugToNewFile () | |
Private Attributes | |
std::ostream * | m_old |
Temporarily redirect IO to file for lifetime of this object.
Definition at line 41 of file SgDebug.h.
SgDebugToNewFile::SgDebugToNewFile | ( | const char * | filename | ) | [explicit] |
Definition at line 72 of file SgDebug.cpp.
SgDebugToNewFile::SgDebugToNewFile | ( | ) | [explicit] |
Definition at line 77 of file SgDebug.cpp.
SgDebugToNewFile::~SgDebugToNewFile | ( | ) |
Definition at line 87 of file SgDebug.cpp.
References m_old, and SgSwapDebugStr().
void SgDebugToNewFile::SetFile | ( | const char * | filename | ) |
Definition at line 82 of file SgDebug.cpp.
References m_old, and SgSwapDebugStr().
std::ostream* SgDebugToNewFile::m_old [private] |
Definition at line 53 of file SgDebug.h.
Referenced by SetFile(), and ~SgDebugToNewFile().