51 printf(
"%s", (
const char *) aMessage.c_str() );
58 void Print(
const wxString& aMessage )
63 printf(
"%s", (
const char *) aMessage.c_str() );
72 std::map<COLOR, wxString> colorMap =
74 {
RED,
"\033[0;31m" },
75 {
GREEN,
"\033[0;32m" },
79 printf(
"%s", (
const char*) colorMap[
color ].c_str() );
Information pertinent to a Pcbnew printed circuit board.
void Print(const wxString &aMessage)
void PrintProgress(const wxString &aMessage)
void SetColor(COLOR color)
bool m_lastLineIsProgressBar
virtual bool HasMessage() const override
Returns true if the reporter client is non-empty.
CONSOLE_MSG_REPORTER(CONSOLE_LOG *log)
virtual REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
virtual void SetCurrentProgress(double aProgress) override
Set the progress value to aProgress (0..1).
CONSOLE_PROGRESS_REPORTER(CONSOLE_LOG *log)
~CONSOLE_PROGRESS_REPORTER()
virtual bool updateUI() override
This implements all the tricky bits for thread safety, but the GUI is left to derived classes.
virtual void SetCurrentProgress(double aProgress) override
Set the progress value to aProgress (0..1).
std::atomic_int m_progress
std::atomic_int m_maxProgress
A pure virtual class used to derive REPORTER objects from.