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() );
113 m_log->PrintProgress( wxString::Format(
" | %s : %.02f%%",
139 m_log->Print(
"ERROR | ");
148 m_log->Print( aText +
"\n" );
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 any messages were reported.
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
PROGRESS_REPORTER_BASE(int aNumPhases)
virtual void SetCurrentProgress(double aProgress) override
Set the progress value to aProgress (0..1).
std::atomic_int m_progress
std::atomic_int m_maxProgress