41#include "Warnings.hpp"
44#include "FileFinder.hpp"
45#include "PosixPathFixer.hpp"
46#include "GetCurrentWorkingDirectory.hpp"
82 std::cout << it->first << it->second << std::endl;
97void Warnings::AddWarning(
const std::string& rMessage,
const std::string& rFilename,
unsigned lineNumber,
bool onlyOnce)
100 std::stringstream line_number_stream;
101 line_number_stream << lineNumber;
102 std::string context(
"Chaste warning: in file " + posix_filename +
" at line " + line_number_stream.str() +
": ");
103 std::pair<std::string, std::string> item(context, rMessage);
115 LOG(1, context + rMessage);
#define EXCEPTION(message)
static std::string ToPosix(const fs::path path)
static void QuietDestroy()
void AddWarning(const std::string &rMessage, const std::string &rFilename, unsigned lineNumber, bool onlyOnce=false)
WarningsContainerType mWarningMessages
unsigned GetNumWarnings()
static void NoisyDestroy()
static Warnings * mpInstance
std::string GetNextWarningMessage()
static Warnings * Instance()
static void PrintWarnings()