![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Immutable application log record carrying a severity level, message text, and a wall-clock timestamp. More...
#include <openswmmvislogmessage.h>
Public Types | |
| enum | LogMessageType { Information , Warning , Error } |
| Severity classification for a log record. More... | |
Public Member Functions | |
| OpenSWMMVisLogMessage (LogMessageType type, QString message, QObject *parent=nullptr) | |
| Constructs a log message and captures the current wall-clock time. | |
| ~OpenSWMMVisLogMessage () | |
| Destructor. | |
| LogMessageType | type () const |
| Returns the severity level of this message. | |
| QString | message () const |
| Returns the human-readable message text. | |
| QDateTime | timestamp () const |
| Returns the wall-clock timestamp when this message was created. | |
Properties | |
| LogMessageType | Type |
| QString | Message |
| QDateTime | Timestamp |
Immutable application log record carrying a severity level, message text, and a wall-clock timestamp.
Instances are created at emission time; the timestamp is set to QDateTime::currentDateTime() in the constructor and is never changed afterwards. The class derives from QObject so it can be used as a Q_PROPERTY value and stored in a QVariant.
| OpenSWMMVisLogMessage::OpenSWMMVisLogMessage | ( | LogMessageType | type, |
| QString | message, | ||
| QObject * | parent = nullptr |
||
| ) |
Constructs a log message and captures the current wall-clock time.
| type | Severity of the message. |
| message | Human-readable description of the event. |
| parent | Optional QObject parent. |
| OpenSWMMVisLogMessage::~OpenSWMMVisLogMessage | ( | ) |
Destructor.
| QString OpenSWMMVisLogMessage::message | ( | ) | const |
Returns the human-readable message text.
| QDateTime OpenSWMMVisLogMessage::timestamp | ( | ) | const |
Returns the wall-clock timestamp when this message was created.
| OpenSWMMVisLogMessage::LogMessageType OpenSWMMVisLogMessage::type | ( | ) | const |
Returns the severity level of this message.
|
read |
|
read |
|
read |