NAIA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Functions | Variables
NAIA::Logging Namespace Reference

Functions

void MuteOutput ()
 
void UnmuteOutput ()
 
FILE * muteOut (fopen("/dev/null","w"))
 
std::ofstream fout ("/dev/null")
 

Variables

FILE * stdoutSave = nullptr
 
FILE * stderrSave = nullptr
 
std::streambuf * cout_sbuf = nullptr
 
std::streambuf * cerr_sbuf = nullptr
 
bool isMuted = false
 

Function Documentation

std::ofstream NAIA::Logging::fout ( "/dev/null"  )

Referenced by MuteOutput().

FILE* NAIA::Logging::muteOut ( fopen("/dev/null","w")  )

Referenced by MuteOutput().

void NAIA::Logging::MuteOutput ( )

Definition at line 22 of file Logging.cpp.

References cerr_sbuf, cout_sbuf, fout(), isMuted, muteOut(), stderrSave, and stdoutSave.

Referenced by main(), and NAIA::NtpSelector::UProcessCut().

void NAIA::Logging::UnmuteOutput ( )

Definition at line 36 of file Logging.cpp.

References cerr_sbuf, cout_sbuf, isMuted, stderrSave, and stdoutSave.

Referenced by main(), and NAIA::NtpSelector::UProcessCut().

Variable Documentation

std::streambuf* NAIA::Logging::cerr_sbuf = nullptr

Definition at line 18 of file Logging.cpp.

Referenced by MuteOutput(), and UnmuteOutput().

std::streambuf* NAIA::Logging::cout_sbuf = nullptr

Definition at line 17 of file Logging.cpp.

Referenced by MuteOutput(), and UnmuteOutput().

bool NAIA::Logging::isMuted = false

Definition at line 20 of file Logging.cpp.

Referenced by MuteOutput(), and UnmuteOutput().

FILE* NAIA::Logging::stderrSave = nullptr

Definition at line 16 of file Logging.cpp.

Referenced by MuteOutput(), and UnmuteOutput().

FILE* NAIA::Logging::stdoutSave = nullptr

Definition at line 15 of file Logging.cpp.

Referenced by MuteOutput(), and UnmuteOutput().