|
artdaq_mfextensions
v1_05_06
|
Qt wrapper around MessageFacility message More...
#include <mfextensions/Receivers/qt_mf_msg.hh>
Public Member Functions | |
| qt_mf_msg (const std::string &hostname, const std::string &category, const std::string &application, pid_t pid, timeval time) | |
| Construct a qt_mf_msg More... | |
| qt_mf_msg () | |
| Default message constructor. | |
| qt_mf_msg (const qt_mf_msg &)=default | |
| Default copy constructor. | |
| qt_mf_msg (qt_mf_msg &&)=default | |
| Default Move Constructor. | |
| qt_mf_msg & | operator= (qt_mf_msg const &)=default |
| Default Copy Assignment Operator. | |
| qt_mf_msg & | operator= (qt_mf_msg &&)=default |
| Default Move Assignment Operator. | |
| virtual | ~qt_mf_msg ()=default |
| Default Destructor. | |
| QString const & | text (bool mode) const |
| Get the text of the message More... | |
| QColor const & | color () const |
| Get the severity-based color of the message More... | |
| sev_code_t | sev () const |
| Get the severity of the message More... | |
| QString const & | host () const |
| Get the host from which the message came More... | |
| QString const & | cat () const |
| Get the category of the message More... | |
| QString const & | app () const |
| Get the application of the message More... | |
| timeval | time () const |
| Get the message timestamp More... | |
| size_t | seq () const |
| Get the sequence number of the message More... | |
| void | setSeverity (mf::ELseverityLevel sev) |
| Set the Severity of the message (MF levels) More... | |
| void | setSeverityLevel (sev_code_t sev) |
| Set the severity code of the message (Viewer levels) More... | |
| void | setMessage (const std::string &prefix, int iteration, const std::string &msg) |
| Set the message More... | |
| void | setHostAddr (std::string const &hostaddr) |
| Set the hostaddr field More... | |
| void | setFileName (std::string const &file) |
| Set the file name field More... | |
| void | setLineNumber (std::string const &line) |
| Set the line number field More... | |
| void | setModule (std::string const &module) |
| Set the module name More... | |
| void | setEventID (std::string const &eventID) |
| Set the Event ID of the message More... | |
| void | updateText () |
| Parse fields and create HTML string representing message More... | |
Qt wrapper around MessageFacility message
Definition at line 37 of file qt_mf_msg.hh.
| qt_mf_msg::qt_mf_msg | ( | const std::string & | hostname, |
| const std::string & | category, | ||
| const std::string & | application, | ||
| pid_t | pid, | ||
| timeval | time | ||
| ) |
Construct a qt_mf_msg
| hostname | Hostname of the message source |
| category | Category of the message |
| application | Application of the message |
| pid | PID of the message |
| time | Timestamp of the message |
Definition at line 10 of file qt_mf_msg.cc.
|
inline |
Get the application of the message
Definition at line 91 of file qt_mf_msg.hh.
|
inline |
|
inline |
Get the severity-based color of the message
Definition at line 71 of file qt_mf_msg.hh.
|
inline |
Get the host from which the message came
Definition at line 81 of file qt_mf_msg.hh.
|
inline |
Get the sequence number of the message
Definition at line 101 of file qt_mf_msg.hh.
|
inline |
Set the Event ID of the message
| eventID | Event ID to set |
Definition at line 144 of file qt_mf_msg.hh.
|
inline |
Set the file name field
| file | File generating message |
Definition at line 129 of file qt_mf_msg.hh.
|
inline |
Set the hostaddr field
| hostaddr | Host address of message source |
Definition at line 124 of file qt_mf_msg.hh.
|
inline |
Set the line number field
| line | Line number in file |
Definition at line 134 of file qt_mf_msg.hh.
| void qt_mf_msg::setMessage | ( | const std::string & | prefix, |
| int | iteration, | ||
| const std::string & | msg | ||
| ) |
Set the message
| prefix | Message prefix |
| iteration | Message iteration (run/event no) |
| msg | Message text |
Definition at line 55 of file qt_mf_msg.cc.
|
inline |
Set the module name
| module | Module generating message |
Definition at line 139 of file qt_mf_msg.hh.
| void qt_mf_msg::setSeverity | ( | mf::ELseverityLevel | sev | ) |
Set the Severity of the message (MF levels)
| sev | Severity level of the message |
Definition at line 24 of file qt_mf_msg.cc.
|
inline |
Set the severity code of the message (Viewer levels)
| sev | Severity code of the message |
Definition at line 112 of file qt_mf_msg.hh.
|
inline |
|
inline |
Get the text of the message
| mode | Whether to return the short-form text |
Definition at line 66 of file qt_mf_msg.hh.
|
inline |
Get the message timestamp
Definition at line 96 of file qt_mf_msg.hh.
| void qt_mf_msg::updateText | ( | ) |
Parse fields and create HTML string representing message
Definition at line 62 of file qt_mf_msg.cc.