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); \
static void QuietDestroy()
void AddWarning(const std::string &rMessage, const std::string &rFilename, unsigned lineNumber, bool onlyOnce=false)
WarningsContainerType mWarningMessages
std::string PopWarning() const
unsigned GetNumWarnings()
std::deque< std::pair< std::string, std::string > > WarningsContainerType
static void NoisyDestroy()
static Warnings * mpInstance
std::string GetNextWarningMessage()
static Warnings * Instance()
static void PrintWarnings()