28 return (static_cast<int>(vl1) > static_cast<int>(vl2));
44 extern std::string
Format(
const std::string &str,
size_t maxLength);
89 if (EA::SmartLog::verboseLevel >= EA::SmartLog::VerboseLevel::level) \ 91 << std::setfill(' ') << std::setw(EA::SmartLog::maxRoutineNameLength + 3) << std::left \ 92 << std::string("[").append(EA::SmartLog::Format(routineName, EA::SmartLog::maxRoutineNameLength)).append("] ") \ 93 << std::setw(10) << EA::SmartLog::levelNames[static_cast<int>(EA::SmartLog::VerboseLevel::level)] 112 #define CCOUT(level) \ 113 if (EA::SmartLog::verboseLevel >= EA::SmartLog::VerboseLevel::level) \ 114 std::cout << std::setfill(' ') << std::setw(EA::SmartLog::maxRoutineNameLength + 13) << " " 117 #define ENDL std::endl std::string Format(const std::string &str, size_t maxLength)
Format a string so that its length is less or equal to maxLength.
Definition: SmartLog.cpp:22
VerboseLevel verboseLevel
The maximum desired verbosity.
Definition: SmartLog.cpp:19
const char * levelNames[6]
Name of verbosity levels, which will be printed on stdout at each call of COUT.
Definition: SmartLog.cpp:18
IncludeFileExc.h IncludeFileExc class declaration.
Definition: Algorithm.h:21
VerboseLevel
Definition: SmartLog.h:26
int maxRoutineNameLength
The maximum length for the printed routine name.
Definition: SmartLog.cpp:20
void MuteOutput()
Mutes the console output.
Definition: SmartLog.cpp:57
void UnmuteOutput()
Unmutes the console output.
Definition: SmartLog.cpp:74
bool operator>(const VerboseLevel &vl1, const VerboseLevel &vl2)
Definition: SmartLog.h:27