CASM  1.1.0
A Clusters Approach to Statistical Mechanics
CASM::ScopedStringStreamLogging Class Reference

#include <Log.hh>

Detailed Description

For the life of ScopedStringStreamLogging CASM::log() and CASM::err_log() provide references to OStringStreamLog. The string values can be obtained from ScopedStringStreamLogging::ss() and ScopedStringStreamLogging::err_ss(). The references are reverted upon destruction.

Definition at line 503 of file Log.hh.

Public Member Functions

 ScopedStringStreamLogging (int _verbosity=Log::standard, bool _show_clock=false)
 Construct scoped StringStreamLog. More...
 
 ~ScopedStringStreamLogging ()
 
std::ostringstream & ss ()
 
const std::ostringstream & ss () const
 
std::ostringstream & err_ss ()
 
const std::ostringstream & err_ss () const
 

Private Attributes

std::unique_ptr< ScopedLoggingm_logging
 
OStringStreamLog m_ss_log
 
OStringStreamLog m_ss_err_log
 

Constructor & Destructor Documentation

◆ ScopedStringStreamLogging()

CASM::ScopedStringStreamLogging::ScopedStringStreamLogging ( int  _verbosity = Log::standard,
bool  _show_clock = false 
)
inline

Construct scoped StringStreamLog.

Definition at line 506 of file Log.hh.

◆ ~ScopedStringStreamLogging()

CASM::ScopedStringStreamLogging::~ScopedStringStreamLogging ( )
inline

Definition at line 513 of file Log.hh.

Member Function Documentation

◆ err_ss() [1/2]

std::ostringstream& CASM::ScopedStringStreamLogging::err_ss ( )
inline

Definition at line 519 of file Log.hh.

◆ err_ss() [2/2]

const std::ostringstream& CASM::ScopedStringStreamLogging::err_ss ( ) const
inline

Definition at line 521 of file Log.hh.

◆ ss() [1/2]

std::ostringstream& CASM::ScopedStringStreamLogging::ss ( )
inline

Definition at line 515 of file Log.hh.

◆ ss() [2/2]

const std::ostringstream& CASM::ScopedStringStreamLogging::ss ( ) const
inline

Definition at line 517 of file Log.hh.

Member Data Documentation

◆ m_logging

std::unique_ptr<ScopedLogging> CASM::ScopedStringStreamLogging::m_logging
private

Definition at line 524 of file Log.hh.

◆ m_ss_err_log

OStringStreamLog CASM::ScopedStringStreamLogging::m_ss_err_log
private

Definition at line 526 of file Log.hh.

◆ m_ss_log

OStringStreamLog CASM::ScopedStringStreamLogging::m_ss_log
private

Definition at line 525 of file Log.hh.


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