33 #ifndef __H__UG__COMMON__LOG_IMPL__
34 #define __H__UG__COMMON__LOG_IMPL__
77 return i > 0 ? (
unsigned int) log10 ((
double) i) + 1 : 1;
81 ConvertNumber (uint64_t size,
unsigned int width,
unsigned int numDisplayedDigits)
88 ss << std::setprecision(numDisplayedDigits)
94 ss << std::setprecision(numDisplayedDigits)
100 ss << std::setprecision(numDisplayedDigits)
106 ss << std::setprecision(numDisplayedDigits)
112 ss << std::setprecision(numDisplayedDigits)
118 ss << std::setprecision(numDisplayedDigits)
134 std::stringstream ss;
139 ss << std::setprecision(numDisplayedDigits)
145 ss << std::setprecision(numDisplayedDigits)
151 ss << std::setprecision(numDisplayedDigits)
157 ss << std::setprecision(numDisplayedDigits)
163 ss << std::setprecision(numDisplayedDigits)
169 ss << std::setprecision(numDisplayedDigits)
int get_output_process()
returns the rank of the current output-process or -1 if all procs perform output.
Definition: log_impl.h:63
std::ostream & error_logger()
returns the error output stream
Definition: log_impl.h:57
std::ostream & logger()
returns the normal output stream
Definition: log_impl.h:51
static LogAssistant & instance()
returns a reference to the single instance of LogAssistant
Definition: log.cpp:112
std::stringstream m_errStream
Definition: log.h:219
int m_outputProc
Definition: log.h:224
std::ostream & debug_logger()
returns the debug output stream
Definition: log_impl.h:45
const uint64 UNIT_PETA_SI
Definition: log.h:74
const uint64 UNIT_KILO_SI
Definition: log.h:70
LogAssistant & GetLogAssistant()
Definition: log_impl.h:69
const uint64 UNIT_PETA
Definition: log.h:66
const uint64 UNIT_GIGA_SI
Definition: log.h:72
std::string ConvertNumberSI(uint64_t size, unsigned int width, unsigned int numDisplayedDigits)
returns number 'size' in a more human readable format (using SI prefixes)
Definition: log_impl.h:132
const uint64 UNIT_TERA
Definition: log.h:65
const uint64 UNIT_GIGA
Definition: log.h:64
const uint64 UNIT_EXA_SI
Definition: log.h:75
const uint64 UNIT_MEGA
Definition: log.h:63
const uint64 UNIT_KILO
Definition: log.h:62
const uint64 UNIT_EXA
Definition: log.h:67
const uint64 UNIT_TERA_SI
Definition: log.h:73
const uint64 UNIT_MEGA_SI
Definition: log.h:71
std::string ConvertNumber(uint64_t size, unsigned int width, unsigned int numDisplayedDigits)
returns number 'size' in a more human readable format (using IEC binary prefixes)
Definition: log_impl.h:81
unsigned int GetNumberOfDigits(uint64_t i)
Definition: log_impl.h:75