|
KiCad PCB EDA Suite
|
Public Types | |
| enum | LOCATION { LOC_HEAD = 0 , LOC_BODY , LOC_TAIL } |
| Location where the message is to be reported. More... | |
Public Member Functions | |
| SIM_CONSOLE_REPORTER () | |
| wxString | TakePendingMessages () |
| REPORTER & | Report (const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override |
| Report a string with a given severity. | |
| virtual REPORTER & | Report (const KI_ERROR &aError) |
| Report a structured KI_ERROR. | |
| REPORTER & | Report (const char *aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) |
| REPORTER & | ReportTail (const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override |
| Places the report at the end of the list, for objects that support report ordering. | |
| REPORTER & | ReportHead (const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override |
| Places the report at the beginning of the list for objects that support ordering. | |
| bool | HasMessage () const override |
| Returns true if any messages were reported. | |
| bool | HasMessageOfSeverity (int aSeverityMask) const override |
| Returns true if the reporter has one or more messages matching the specified severity mask. | |
| EDA_UNITS | GetUnits () const override |
| void | Clear () override |
| void | Finalize () override |
| void | SetNullReporter () |
| REPORTER & | operator<< (const wxString &aText) |
Protected Attributes | |
| REPORTER * | m_reporter |
| std::mutex | m_mutex |
Private Attributes | |
| WX_STRING_REPORTER | m_strRep |
| int | m_reportedSeverityMask |
Definition at line 67 of file simulator_frame.cpp.
|
inherited |
Location where the message is to be reported.
LOC_HEAD messages are printed before all others (typically intro messages) LOC_BODY messages are printed in the middle LOC_TAIL messages are printed after all others (typically status messages)
| Enumerator | |
|---|---|
| LOC_HEAD | |
| LOC_BODY | |
| LOC_TAIL | |
Definition at line 88 of file reporter.h.
|
inline |
Definition at line 70 of file simulator_frame.cpp.
References m_strRep, and SYNC_REPORTER::SYNC_REPORTER().
|
overridevirtualinherited |
Reimplemented from REPORTER.
Definition at line 140 of file reporter.cpp.
References m_mutex, and m_reporter.
Referenced by BOOST_AUTO_TEST_CASE().
|
overridevirtualinherited |
Reimplemented from REPORTER.
Definition at line 148 of file reporter.cpp.
References m_mutex, and m_reporter.
|
overridevirtualinherited |
Reimplemented from REPORTER.
Definition at line 180 of file reporter.cpp.
References m_mutex, and m_reporter.
|
overridevirtualinherited |
Returns true if any messages were reported.
Reimplemented from REPORTER.
Definition at line 164 of file reporter.cpp.
References m_mutex, and m_reporter.
Referenced by BOOST_AUTO_TEST_CASE().
|
overridevirtualinherited |
Returns true if the reporter has one or more messages matching the specified severity mask.
Reimplemented from REPORTER.
Definition at line 172 of file reporter.cpp.
References m_mutex, and m_reporter.
Referenced by BOOST_AUTO_TEST_CASE().
|
inlineinherited |
Definition at line 138 of file reporter.h.
References Report(), and REPORTER().
|
inherited |
Definition at line 79 of file reporter.cpp.
References From_UTF8(), Report(), and REPORTER().
Report a structured KI_ERROR.
The default implementation flattens the error onto Report(const wxString&, SEVERITY). Reporters that want to render the title / description / debug hierarchy separately override this.
Reimplemented in STATUSBAR_WARNING_REPORTER, and WX_HTML_REPORT_BOX.
Definition at line 86 of file reporter.cpp.
References KI_ERROR::AsString(), KI_ERROR::GetSeverity(), Report(), and REPORTER().
|
overridevirtualinherited |
Report a string with a given severity.
| aText | is the string to report. |
| aSeverity | is an indicator ( RPT_UNDEFINED, RPT_INFO, RPT_WARNING, RPT_ERROR, RPT_ACTION ) used to filter and format messages |
Reimplemented from REPORTER.
Definition at line 113 of file reporter.cpp.
References m_mutex, m_reporter, and REPORTER::REPORTER().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
overridevirtualinherited |
Places the report at the beginning of the list for objects that support ordering.
Reimplemented from REPORTER.
Definition at line 131 of file reporter.cpp.
References m_mutex, m_reporter, and REPORTER::REPORTER().
Referenced by BOOST_AUTO_TEST_CASE().
|
overridevirtualinherited |
Places the report at the end of the list, for objects that support report ordering.
Reimplemented from REPORTER.
Definition at line 122 of file reporter.cpp.
References m_mutex, m_reporter, and REPORTER::REPORTER().
Referenced by BOOST_AUTO_TEST_CASE().
|
inherited |
Definition at line 156 of file reporter.cpp.
References NULL_REPORTER::GetInstance(), m_mutex, and m_reporter.
|
inline |
Definition at line 75 of file simulator_frame.cpp.
References SYNC_REPORTER::m_mutex, and m_strRep.
|
mutableprotectedinherited |
Definition at line 210 of file reporter.h.
Referenced by Clear(), Finalize(), GetUnits(), HasMessage(), HasMessageOfSeverity(), Report(), ReportHead(), ReportTail(), SetNullReporter(), and SIM_CONSOLE_REPORTER::TakePendingMessages().
|
privateinherited |
Definition at line 170 of file reporter.h.
Referenced by Clear(), HasMessage(), HasMessageOfSeverity(), Report(), and REPORTER().
|
protectedinherited |
Definition at line 209 of file reporter.h.
Referenced by Clear(), Finalize(), GetUnits(), HasMessage(), HasMessageOfSeverity(), Report(), ReportHead(), ReportTail(), SetNullReporter(), and SYNC_REPORTER().
|
private |
Definition at line 86 of file simulator_frame.cpp.
Referenced by SIM_CONSOLE_REPORTER(), and TakePendingMessages().