|
Mantid
|
Provides a simple binding of a text message with a priority. More...
#include <Message.h>
Public Types | |
| using | Priority = Mantid::Kernel::Logger::Priority |
| Priority matches Mantid Logger priority. More... | |
Public Member Functions | |
| Message () | |
| Default constuctor required by Qt meta-type system. More... | |
| Message (const char *text, Priority priority=Priority::PRIO_NOTICE, const QString &scriptPath="") | |
| Construct a message from a c-style string and a given priority (default=notice) More... | |
| Message (const Message &msg) | |
| Copy constructor. More... | |
| Message (const std::string &text, Priority priority=Priority::PRIO_NOTICE, const QString &scriptPath="") | |
| Construct a message from a std::string with a given priority (default=notice) More... | |
| Message (QString text, Priority priority=Priority::PRIO_NOTICE, const QString &scriptPath="") | |
| Construct a message from a QString with a given priority (default=notice) More... | |
| Message & | operator= (const Message &msg) |
| Copy assignment. More... | |
| Priority | priority () const |
| QString | scriptPath () const |
| void | setScriptPath (const QString &scriptPath) |
| Set the script name. This is useful if a script is renamed. More... | |
| QString | text () const |
Private Attributes | |
| Priority | m_priority |
| QString | m_scriptPath |
| QString | m_text |
Provides a simple binding of a text message with a priority.
| MantidQt::MantidWidgets::Message::Message | ( | ) |
Default constuctor required by Qt meta-type system.
Constructs a blank message with notice priority (here to satisfy Qt meta-type system)
Definition at line 22 of file Message.cpp.
| MantidQt::MantidWidgets::Message::Message | ( | QString | text, |
| Priority | priority = Priority::PRIO_NOTICE, |
||
| const QString & | scriptPath = "" |
||
| ) |
Construct a message from a QString with a given priority (default=notice)
| text | A QString containing the message text |
| priority | An enumeration indicating the priority |
| scriptPath | The path of the script the message originated from. Empty string if no script applicable |
Definition at line 30 of file Message.cpp.
| MantidQt::MantidWidgets::Message::Message | ( | const std::string & | text, |
| Priority | priority = Priority::PRIO_NOTICE, |
||
| const QString & | scriptPath = "" |
||
| ) |
Construct a message from a std::string with a given priority (default=notice)
| text | A std::string containing the message text |
| priority | An enumeration indicating the priority |
| scriptPath | The path of the script the message originated from. Empty string if no script applicable |
Definition at line 39 of file Message.cpp.
| MantidQt::MantidWidgets::Message::Message | ( | const char * | text, |
| Priority | priority = Priority::PRIO_NOTICE, |
||
| const QString & | scriptPath = "" |
||
| ) |
Construct a message from a c-style string and a given priority (default=notice)
| text | A c-style string containing the message text |
| priority | An enumeration indicating the priority |
| scriptPath | The path of the script the message originated from. Empty string if no script applicable |
Definition at line 48 of file Message.cpp.
| MantidQt::MantidWidgets::Message::Message | ( | const Message & | msg | ) |
Copy constructor.
Construct a message from another object.
Definition at line 54 of file Message.cpp.
Copy assignment.
Construct a message from another object through assignment.
Definition at line 60 of file Message.cpp.
References m_priority, m_scriptPath, m_text, priority(), scriptPath(), and text().
|
inline |
Definition at line 54 of file Message.h.
Referenced by MantidQt::MantidWidgets::MessageDisplay::append(), and operator=().
|
inline |
Definition at line 56 of file Message.h.
Referenced by operator=(), and MantidQt::MantidWidgets::MessageDisplay::shouldBeDisplayed().
|
inline |
|
inline |
Definition at line 52 of file Message.h.
Referenced by MantidQt::MantidWidgets::MessageDisplay::append(), operator=(), and MantidQt::MantidWidgets::MessageDisplay::replace().
|
private |
Definition at line 62 of file Message.h.
Referenced by operator=().
|
private |
Definition at line 63 of file Message.h.
Referenced by operator=().
|
private |
Definition at line 61 of file Message.h.
Referenced by operator=().