QMCPACK
OutputManagerClass Class Reference
+ Collaboration diagram for OutputManagerClass:

Public Member Functions

 OutputManagerClass (Verbosity level=Verbosity::LOW)
 
void setVerbosity (Verbosity level)
 
bool isActive (Verbosity level) const
 
bool isDebugActive () const
 
bool isHighActive () const
 
void pause ()
 Pause the summary and log streams. More...
 
void resume ()
 Resume the summary and log streams. More...
 
void shutOff ()
 Permanently shut off all streams. More...
 

Private Attributes

Verbosity global_verbosity_level
 

Detailed Description

Definition at line 34 of file OutputManager.h.

Constructor & Destructor Documentation

◆ OutputManagerClass()

Definition at line 39 of file OutputManager.h.

References setVerbosity().

39 { setVerbosity(level); }
void setVerbosity(Verbosity level)

Member Function Documentation

◆ isActive()

◆ isDebugActive()

bool isDebugActive ( ) const
inline

Definition at line 45 of file OutputManager.h.

References DEBUG, and isActive().

Referenced by qmcplusplus::applyCuspCorrection(), ParticleSetPool::get(), and qmcplusplus::TEST_CASE().

45 { return isActive(Verbosity::DEBUG); }
bool isActive(Verbosity level) const

◆ isHighActive()

bool isHighActive ( ) const
inline

Definition at line 47 of file OutputManager.h.

References HIGH, and isActive().

Referenced by ParticleSetPool::readSimulationCellXML(), and qmcplusplus::TEST_CASE().

47 { return isActive(Verbosity::HIGH); }
bool isActive(Verbosity level) const

◆ pause()

void pause ( )

◆ resume()

void resume ( )

Resume the summary and log streams.

Definition at line 56 of file OutputManager.cpp.

References infoLog, infoSummary, and InfoStream::resume().

Referenced by QMCCostFunctionBatched::checkConfigurations(), QMCCostFunctionBatched::correlatedSampling(), MCPopulation::createWalkers(), SOECPComponent::initVirtualParticle(), NonLocalECPComponent::initVirtualParticle(), MCPopulation::spawnWalker(), and qmcplusplus::TEST_CASE().

57 {
59  infoLog.resume();
60 }
InfoStream infoSummary
void resume()
Continue output on the stream used before pausing.
Definition: InfoStream.cpp:47
InfoStream infoLog

◆ setVerbosity()

void setVerbosity ( Verbosity  level)

Definition at line 25 of file OutputManager.cpp.

References DEBUG, global_verbosity_level, HIGH, infoDebug, infoLog, infoSummary, isActive(), LOW, InfoStream::pause(), and InfoStream::resume().

Referenced by main(), OutputManagerClass(), and qmcplusplus::TEST_CASE().

26 {
27  global_verbosity_level = level;
29  {
31  infoLog.resume();
32  infoDebug.resume();
33  }
34  else if (isActive(Verbosity::HIGH))
35  {
37  infoLog.resume();
38  infoDebug.pause();
39  }
40  else if (isActive(Verbosity::LOW))
41  {
43  infoLog.pause();
44  infoDebug.pause();
45  }
46 }
InfoStream infoSummary
InfoStream infoDebug
Verbosity global_verbosity_level
Definition: OutputManager.h:36
void resume()
Continue output on the stream used before pausing.
Definition: InfoStream.cpp:47
InfoStream infoLog
bool isActive(Verbosity level) const
void pause()
Stop output (redirect to a null stream)
Definition: InfoStream.cpp:41

◆ shutOff()

void shutOff ( )

Permanently shut off all streams.

Definition at line 62 of file OutputManager.cpp.

References infoDebug, infoError, infoLog, infoSummary, and InfoStream::shutOff().

Referenced by main(), and qmcplusplus::TEST_CASE().

63 {
65  infoLog.shutOff();
68 }
InfoStream infoSummary
InfoStream infoDebug
InfoStream infoLog
void shutOff()
Permanently turn off the stream.
Definition: InfoStream.cpp:53
InfoStream infoError

Member Data Documentation

◆ global_verbosity_level

Verbosity global_verbosity_level
private

Definition at line 36 of file OutputManager.h.

Referenced by isActive(), and setVerbosity().


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