Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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>

Public Member Functions

 TestLogger ()
 
 ~TestLogger ()
 
std::wstring 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.

Definition at line 120 of file CLogger.h.

Constructor & Destructor Documentation

TestLogger::TestLogger ( )

Definition at line 389 of file CLogger.cpp.

TestLogger::~TestLogger ( )

Definition at line 395 of file CLogger.cpp.

Member Function Documentation

std::wstring TestLogger::GetOutput ( )

Definition at line 401 of file CLogger.cpp.

TestLogger::NONCOPYABLE ( TestLogger  )
private

Member Data Documentation

CLogger* TestLogger::m_OldLogger
private

Definition at line 128 of file CLogger.h.

std::stringstream TestLogger::m_Stream
private

Definition at line 129 of file CLogger.h.


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