53 printf(
"%s", (
const char *) aMessage.c_str() );
60 void Print(
const wxString& aMessage )
65 printf(
"%s", (
const char *) aMessage.c_str() );
74 std::map<COLOR, wxString> colorMap =
76 {
RED,
"\033[0;31m" },
77 {
GREEN,
"\033[0;32m" },
81 printf(
"%s", (
const char*) colorMap[
color ].c_str() );
115 m_log->PrintProgress( wxString::Format(
" | %s : %.02f%%",
141 m_log->Print(
"ERROR | ");
150 m_log->Print( aText +
"\n" );
175 std::shared_ptr<KIGFX::VIEW_OVERLAY> aDebugOverlay =
nullptr );
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
This implements all the tricky bits for thread safety, but the GUI is left to derived classes.
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
Container for project specific data.
A pure virtual class used to derive REPORTER objects from.
PROJECT_CONTEXT loadKicadProject(const wxString &filename, std::optional< wxString > rulesFilePath)
int runDRCProto(PROJECT_CONTEXT project, std::shared_ptr< KIGFX::VIEW_OVERLAY > aDebugOverlay=nullptr)
std::shared_ptr< BOARD > board
std::shared_ptr< NETLIST > netlist