Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgDebugToString Class Reference

#include <SgDebug.h>

List of all members.

Detailed Description

Temporarily redirect IO to a string buffer for lifetime of this object.

Definition at line 63 of file SgDebug.h.

Public Member Functions

 SgDebugToString (bool writeToOldDebugStr)
 ~SgDebugToString ()
std::string GetString () const

Private Attributes

bool m_writeToOldDebugStr
std::ostringstream m_str
std::ostream * m_old

Constructor & Destructor Documentation

SgDebugToString::SgDebugToString ( bool  writeToOldDebugStr  ) 


writeToOldDebugStr Also write the content of the string to the old stream, after it was reset in the desctructor.

Definition at line 100 of file SgDebug.cpp.

References m_old, m_str, and SgSwapDebugStr().

SgDebugToString::~SgDebugToString (  ) 

Definition at line 106 of file SgDebug.cpp.

References GetString(), m_old, m_writeToOldDebugStr, and SgSwapDebugStr().

Member Function Documentation

std::string SgDebugToString::GetString (  )  const

Definition at line 74 of file SgDebug.h.

References m_str.

Referenced by ~SgDebugToString().

Member Data Documentation

std::ostream* SgDebugToString::m_old [private]

Definition at line 81 of file SgDebug.h.

Referenced by SgDebugToString(), and ~SgDebugToString().

std::ostringstream SgDebugToString::m_str [private]

Definition at line 79 of file SgDebug.h.

Referenced by GetString(), and SgDebugToString().

bool SgDebugToString::m_writeToOldDebugStr [private]

Definition at line 77 of file SgDebug.h.

Referenced by ~SgDebugToString().

The documentation for this class was generated from the following files:

17 Jun 2010 Doxygen 1.4.7