6#include <QtCore/QString>
121 const QString& source,
123 const QDateTime* timeStampPtr =
NULL);
144 const QString& source,
146 const QDateTime* timeStampPtr =
NULL);
Basic implementation of the istd::IInformationProvider interface for log messages.
virtual QDateTime GetInformationTimeStamp() const override
Get the message timestamp.
CMessage()
Default constructor.
virtual bool Serialize(iser::IArchive &archive) override
Serialize or deserialize the message.
virtual bool CopyFrom(const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
Copy message data from another object.
virtual void SetCategory(istd::IInformationProvider::InformationCategory category)
Set the message category (severity level).
QString m_text
Human-readable message text.
int m_flags
Application-defined flags.
virtual int GetInformationFlags() const override
Get application-defined flags.
virtual QByteArray GetFactoryId() const override
Get the factory identifier for serialization.
virtual int GetInformationId() const override
Get the numeric message identifier.
void SetMessageValues(istd::IInformationProvider::InformationCategory category, int id, const QString &text, const QString &source, int flags=0, const QDateTime *timeStampPtr=NULL)
Set all message properties at once.
virtual istd::TUniqueInterfacePtr< istd::IChangeable > CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const override
Create a deep copy of this message.
istd::IInformationProvider::InformationCategory m_category
Message category (severity level)
static QByteArray GetMessageTypeId()
Get the message type identifier for serialization.
virtual InformationCategory GetInformationCategory() const override
Get the message category (severity level).
virtual void SetSource(const QString &source)
Set the message source.
virtual void SetText(const QString &text)
Set the message text.
CMessage(istd::IInformationProvider::InformationCategory category, int id, const QString &text, const QString &source, int flags=0, const QDateTime *timeStampPtr=NULL)
Construct a message with all properties.
virtual QString GetInformationSource() const override
Get the message source identifier.
QDateTime m_timeStamp
Message creation timestamp.
QString m_source
Message source identifier.
virtual QString GetInformationDescription() const override
Get the human-readable message text.
int m_id
Numeric message identifier.
Represents an input/output persistence archive for object serialization.
Common interface for factorisable model objects.
Common interface for data model objects, which can be changed.
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.
Unique ownership smart pointer for interface types.
This namespace contains implementations for the logging functionality.