30 #ifndef VERBOSEMANAGER_H 31 #define VERBOSEMANAGER_H 326 template <
typename T>
511 template <
typename T>
static const std::map< WarningCode, const char * > WarningMessages
Class that allows us to centralize all the reporting messages that should be used to inform the user ...
void report(WarningCode message, std::string *vars=nullptr)
Method to report a Warning. It will be displayed if Level is equal or higher to VerboseLevel::WARNI...
reportWrapper log(VerboseLevel level)
Method to output a message behind two checks: IsDebug and VerboseLevel passed. If IsDebug is false...
1 = Info, warning and error messages
bool IsDebug
Protection variable. This variable should be set to true while in development, and false on Release...
void report(InfoCode message, const char *vars)
Method to report an Info message. It will be displayed if Level is equal or higher to VerboseLevel::...
void report(WarningCode message, const char *vars)
Method to report a Warning. It will be displayed if Level is equal or higher to VerboseLevel::WARNIN...
Internal classes to handle reporting to user in several ways. The reporting system is made so a devel...
VerboseLevel Level
Level of Verbosity. The report system won't output messages that are lower than the current level...
reportWrapper(bool CanReport)
Constructor.
VerboseLevel
VerboseLevel used to report messages.
void PrintCodesAndMessages()
Method to print all Info, Warning and Error codes and their respective message. This method is useful...
static const std::map< InfoCode, const char * > InfoMessages
2 = Error and warning messages
bool CanReport
Variable that specifies if the object is able to output to cout or not.
void report(ErrorCode message, const char *vars)
Method to report an Error. It will be displayed if Level is equal or higher to VerboseLevel::ERROR.
reportWrapper cantReport
Object that will be returned by log if it doesn't allow to output the message.
reporting::reportManager debug
void report(InfoCode message, std::string *vars=nullptr)
Method to report an Info message. It will be displayed if Level is equal or higher to VerboseLevel:...
static const std::map< ErrorCode, const char * > ErrorMessages
void report(ErrorCode message, std::string *vars=nullptr)
Method to report an Error. It will be displayed if Level is equal or higher to VerboseLevel::ERROR...
reportWrapper canReport
Object that will be returned by log if it allows to output the message.
Internal class used by reporting::reportManager This class serves as a proxy for message reporting...