#include "ErrorCheckLog.h" #include using sword::SWBuf; ErrorCheckLog::ErrorCheckLog(HWND iparent) : SWLog() { parent = iparent; } void ErrorCheckLog::logMessage(const char *message, int level) const { static const char *levels[] = { "Off", "Error", "Warning", "Information", "Information...", "Log", "Log" }; cumulitiveLog.append(message); cumulitiveLog.append("\r\n"); } SWBuf ErrorCheckLog::getCumulitiveLog() { SWBuf retVal = cumulitiveLog; cumulitiveLog = ""; return retVal; }