Pyrogenesis  trunk
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TestLogger Class Reference

Helper class for unit tests - captures all log output while it is in scope, and returns it as a single string. More...

#include <CLogger.h>

Collaboration diagram for TestLogger:
Collaboration graph
[legend]

Public Member Functions

 TestLogger ()
 
 ~TestLogger ()
 
std::string GetOutput ()
 

Private Member Functions

 NONCOPYABLE (TestLogger)
 

Private Attributes

CLoggerm_OldLogger
 
std::stringstream m_Stream
 

Detailed Description

Helper class for unit tests - captures all log output while it is in scope, and returns it as a single string.

Constructor & Destructor Documentation

◆ TestLogger()

TestLogger::TestLogger ( )

◆ ~TestLogger()

TestLogger::~TestLogger ( )

Member Function Documentation

◆ GetOutput()

std::string TestLogger::GetOutput ( )

◆ NONCOPYABLE()

TestLogger::NONCOPYABLE ( TestLogger  )
private

Member Data Documentation

◆ m_OldLogger

CLogger* TestLogger::m_OldLogger
private

◆ m_Stream

std::stringstream TestLogger::m_Stream
private

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