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() );
Container for project specific data.
std::shared_ptr< BOARD > board
A progress reporter for use in multi-threaded environments.
CONSOLE_MSG_REPORTER(CONSOLE_LOG *log)
std::atomic_int m_progress
~CONSOLE_PROGRESS_REPORTER()
A pure virtual class used to derive REPORTER objects from.
virtual void SetCurrentProgress(double aProgress) override
Set the progress value to aProgress (0..1)
void Print(const wxString &aMessage)
virtual void SetCurrentProgress(double aProgress)
Set the progress value to aProgress (0..1)
virtual bool HasMessage() const override
Returns true if the reporter client is non-empty.
PROJECT_CONTEXT loadKicadProject(wxString filename, OPT< wxString > rulesFilePath)
virtual REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
int runDRCProto(PROJECT_CONTEXT project, std::shared_ptr< KIGFX::VIEW_OVERLAY > aDebugOverlay=nullptr)
void SetColor(COLOR color)
virtual bool updateUI() override
void PrintProgress(const wxString &aMessage)
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Information pertinent to a Pcbnew printed circuit board.
std::atomic_int m_maxProgress
bool m_lastLineIsProgressBar
std::shared_ptr< NETLIST > netlist
CONSOLE_PROGRESS_REPORTER(CONSOLE_LOG *log)