41 #include "Warnings.hpp" 43 #include "LogFile.hpp" 45 #include "FileFinder.hpp" 46 #include "PosixPathFixer.hpp" 47 #include "GetCurrentWorkingDirectory.hpp" 83 std::cout << it->first << it->second << std::endl;
98 void Warnings::AddWarning(
const std::string& rMessage,
const std::string& rFilename,
unsigned lineNumber,
bool onlyOnce)
101 std::stringstream line_number_stream;
102 line_number_stream << lineNumber;
103 std::string context(
"Chaste warning: in file " + posix_filename +
" at line " + line_number_stream.str() +
": ");
104 std::pair<std::string, std::string> item(context, rMessage);
116 LOG(1, context + rMessage);
unsigned GetNumWarnings()
#define EXCEPTION(message)
static Warnings * Instance()
static void QuietDestroy()
static void PrintWarnings()
static std::string ToPosix(const fs::path path)
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)