36 #ifndef _WARNINGS_HPP_ 37 #define _WARNINGS_HPP_ 100 void AddWarning(
const std::string& rMessage,
const std::string& rFilename,
unsigned lineNumber,
bool onlyOnce=
false);
126 #define WARNING(message) \ 128 std::stringstream msg_stream; \ 129 msg_stream << message; \ 130 Warnings::Instance()->AddWarning(msg_stream.str(), __FILE__, __LINE__); \ 150 #define WARN_ONCE_ONLY(message) \ 152 std::stringstream msg_stream; \ 153 msg_stream << message; \ 154 Warnings::Instance()->AddWarning(msg_stream.str(), __FILE__, __LINE__, true); \ 156 #endif // _WARNINGS_HPP_ unsigned GetNumWarnings()
std::string PopWarning() const
static Warnings * Instance()
static void QuietDestroy()
static void PrintWarnings()
std::deque< std::pair< std::string, std::string > > WarningsContainerType
std::string GetNextWarningMessage()
static Warnings * mpInstance
WarningsContainerType mWarningMessages
static void NoisyDestroy()
void AddWarning(const std::string &rMessage, const std::string &rFilename, unsigned lineNumber, bool onlyOnce=false)