Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CLogger::ScopedReplacement Class Reference

Replaces g_Logger for as long as it's in scope. More...

#include <CLogger.h>

Collaboration diagram for CLogger::ScopedReplacement:

Public Member Functions

 ScopedReplacement (std::ostream &mainLog, std::ostream &interestingLog, const bool useDebugPrintf)
 
 ScopedReplacement (const ScopedReplacement &)=delete
 
ScopedReplacementoperator= (const ScopedReplacement &)=delete
 
 ScopedReplacement (ScopedReplacement &&)=delete
 
ScopedReplacementoperator= (ScopedReplacement &&)=delete
 
 ~ScopedReplacement ()
 

Private Attributes

CLogger m_ThisLogger
 
CLoggerm_OldLogger
 

Detailed Description

Replaces g_Logger for as long as it's in scope.

Constructor & Destructor Documentation

◆ ScopedReplacement() [1/3]

CLogger::ScopedReplacement::ScopedReplacement ( std::ostream &  mainLog,
std::ostream &  interestingLog,
const bool  useDebugPrintf 
)

◆ ScopedReplacement() [2/3]

CLogger::ScopedReplacement::ScopedReplacement ( const ScopedReplacement )
delete

◆ ScopedReplacement() [3/3]

CLogger::ScopedReplacement::ScopedReplacement ( ScopedReplacement &&  )
delete

◆ ~ScopedReplacement()

CLogger::ScopedReplacement::~ScopedReplacement ( )

Member Function Documentation

◆ operator=() [1/2]

ScopedReplacement & CLogger::ScopedReplacement::operator= ( const ScopedReplacement )
delete

◆ operator=() [2/2]

ScopedReplacement & CLogger::ScopedReplacement::operator= ( ScopedReplacement &&  )
delete

Member Data Documentation

◆ m_OldLogger

CLogger* CLogger::ScopedReplacement::m_OldLogger
private

◆ m_ThisLogger

CLogger CLogger::ScopedReplacement::m_ThisLogger
private

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