|
swift
|
Base class for CStatusMessage and CLogMessage. More...
#include <statusmessage.h>
Public Member Functions | |
| CMessageBase ()=default | |
| Default constructor. | |
| CMessageBase (const CLogCategory &category) | |
| Construct a message with some specific category. | |
| CMessageBase (const CLogCategoryList &categories) | |
| Construct a message with some specific categories. | |
| CMessageBase (const CLogCategoryList &categories, const CLogCategory &extra) | |
| Construct a message with some specific categories. | |
| CMessageBase (const CLogCategoryList &categories, const CLogCategoryList &extra) | |
| Construct a message with some specific categories. | |
| template<size_t N> | |
| Derived & | log (StatusSeverity s, const char16_t(&m)[N]) |
| Set the severity and format string. | |
| Derived & | log (StatusSeverity s, const QString &m) |
| Set the severity and format string. | |
| Derived & | debug () |
| Set the severity to debug. | |
| template<size_t N> | |
| Derived & | debug (const char16_t(&format)[N]) |
| Set the severity to debug, providing a format string. | |
| Derived & | debug (const QString &format) |
| Set the severity to debug, providing a format string. | |
| template<size_t N> | |
| Derived & | info (const char16_t(&format)[N]) |
| Set the severity to info, providing a format string. | |
| Derived & | info (const QString &format) |
| Set the severity to info, providing a format string. | |
| template<size_t N> | |
| Derived & | warning (const char16_t(&format)[N]) |
| Set the severity to warning, providing a format string. | |
| Derived & | warning (const QString &format) |
| Set the severity to warning, providing a format string. | |
| template<size_t N> | |
| Derived & | error (const char16_t(&format)[N]) |
| Set the severity to error, providing a format string. | |
| Derived & | error (const QString &format) |
| Set the severity to error, providing a format string. | |
| template<size_t N> | |
| Derived & | validation (StatusSeverity s, const char16_t(&format)[N]) |
| Set the severity to s, providing a format string, and adding the validation category. | |
| Derived & | validation (StatusSeverity s, const QString &format) |
| Set the severity to s, providing a format string, and adding the validation category. | |
| template<size_t N> | |
| Derived & | validationInfo (const char16_t(&format)[N]) |
| Set the severity to info, providing a format string, and adding the validation category. | |
| Derived & | validationInfo (const QString &format) |
| Set the severity to info, providing a format string, and adding the validation category. | |
| template<size_t N> | |
| Derived & | validationWarning (const char16_t(&format)[N]) |
| Set the severity to warning, providing a format string, and adding the validation category. | |
| Derived & | validationWarning (const QString &format) |
| Set the severity to warning, providing a format string, and adding the validation category. | |
| template<size_t N> | |
| Derived & | validationError (const char16_t(&format)[N]) |
| Set the severity to error, providing a format string, and adding the validation category. | |
| Derived & | validationError (const QString &format) |
| Set the severity to error, providing a format string, and adding the validation category. | |
| template<class T> requires (TParameter<std::decay_t<T>>::passBy == ParameterPassBy::Value) | |
| Derived & | operator<< (T v) |
| Streaming operators. | |
| template<class T> requires (TParameter<std::decay_t<T>>::passBy == ParameterPassBy::ConstRef) | |
| Derived & | operator<< (const T &v) |
| Streaming operators. | |
| bool | isEmpty () const |
| Message empty. | |
| Derived & | log (StatusSeverity, const char *)=delete |
| Deleted methods to avoid accidental implicit conversion from Latin-1 or UTF-8 string literals. | |
| Derived & | debug (const char *)=delete |
| Deleted methods to avoid accidental implicit conversion from Latin-1 or UTF-8 string literals. | |
| Derived & | info (const char *)=delete |
| Deleted methods to avoid accidental implicit conversion from Latin-1 or UTF-8 string literals. | |
| Derived & | warning (const char *)=delete |
| Deleted methods to avoid accidental implicit conversion from Latin-1 or UTF-8 string literals. | |
| Derived & | error (const char *)=delete |
| Deleted methods to avoid accidental implicit conversion from Latin-1 or UTF-8 string literals. | |
| Derived & | validation (StatusSeverity, const char *)=delete |
| Deleted methods to avoid accidental implicit conversion from Latin-1 or UTF-8 string literals. | |
| Derived & | validationInfo (const char *)=delete |
| Deleted methods to avoid accidental implicit conversion from Latin-1 or UTF-8 string literals. | |
| Derived & | validationWarning (const char *)=delete |
| Deleted methods to avoid accidental implicit conversion from Latin-1 or UTF-8 string literals. | |
| Derived & | validationError (const char *)=delete |
| Deleted methods to avoid accidental implicit conversion from Latin-1 or UTF-8 string literals. | |
Protected Member Functions | |
| void | addIfNotExisting (const CLogCategory &category) |
| Add category if not already existing. | |
| void | addIfNotExisting (const CLogCategoryList &categories) |
| Add categories if not already existing. | |
| QString | message () const |
| Private. | |
Protected Attributes | |
| CStrongStringView | m_message |
| Private. | |
| QStringList | m_args |
| Private. | |
| CLogCategoryList | m_categories = CLogCategoryList { CLogCategories::uncategorized() } |
| Private. | |
| StatusSeverity | m_severity = SeverityDebug |
| Private. | |
Base class for CStatusMessage and CLogMessage.
Definition at line 161 of file statusmessage.h.
|
inlineexplicit |
Construct a message with some specific category.
Definition at line 168 of file statusmessage.h.
|
inlineexplicit |
Construct a message with some specific categories.
Definition at line 171 of file statusmessage.h.
|
inline |
Construct a message with some specific categories.
Definition at line 174 of file statusmessage.h.
|
inline |
Construct a message with some specific categories.
Definition at line 180 of file statusmessage.h.
|
inlineprotected |
Add category if not already existing.
Definition at line 356 of file statusmessage.h.
|
inlineprotected |
Add categories if not already existing.
Definition at line 366 of file statusmessage.h.
|
inline |
Set the severity to debug.
Definition at line 203 of file statusmessage.h.
|
inline |
Set the severity to debug, providing a format string.
Definition at line 207 of file statusmessage.h.
|
inline |
Set the severity to debug, providing a format string.
Definition at line 213 of file statusmessage.h.
|
inline |
Set the severity to error, providing a format string.
Definition at line 237 of file statusmessage.h.
|
inline |
Set the severity to error, providing a format string.
Definition at line 243 of file statusmessage.h.
|
inline |
Set the severity to info, providing a format string.
Definition at line 217 of file statusmessage.h.
|
inline |
Set the severity to info, providing a format string.
Definition at line 223 of file statusmessage.h.
|
inline |
Message empty.
Definition at line 339 of file statusmessage.h.
|
inline |
Set the severity and format string.
Definition at line 187 of file statusmessage.h.
|
inline |
Set the severity and format string.
Definition at line 195 of file statusmessage.h.
|
inlineprotected |
Private.
Definition at line 395 of file statusmessage.h.
|
inline |
Streaming operators.
If the format string is empty, the message will consist of all streamed values separated by spaces. Otherwise, the streamed values will replace the place markers %1, %2, %3... in the format string.
Definition at line 333 of file statusmessage.h.
|
inline |
Streaming operators.
If the format string is empty, the message will consist of all streamed values separated by spaces. Otherwise, the streamed values will replace the place markers %1, %2, %3... in the format string.
Definition at line 323 of file statusmessage.h.
|
inline |
Set the severity to s, providing a format string, and adding the validation category.
Definition at line 247 of file statusmessage.h.
|
inline |
Set the severity to s, providing a format string, and adding the validation category.
Definition at line 254 of file statusmessage.h.
|
inline |
Set the severity to error, providing a format string, and adding the validation category.
Definition at line 292 of file statusmessage.h.
|
inline |
Set the severity to error, providing a format string, and adding the validation category.
Definition at line 299 of file statusmessage.h.
|
inline |
Set the severity to info, providing a format string, and adding the validation category.
Definition at line 262 of file statusmessage.h.
|
inline |
Set the severity to info, providing a format string, and adding the validation category.
Definition at line 269 of file statusmessage.h.
|
inline |
Set the severity to warning, providing a format string, and adding the validation category.
Definition at line 277 of file statusmessage.h.
|
inline |
Set the severity to warning, providing a format string, and adding the validation category.
Definition at line 284 of file statusmessage.h.
|
inline |
Set the severity to warning, providing a format string.
Definition at line 227 of file statusmessage.h.
|
inline |
Set the severity to warning, providing a format string.
Definition at line 233 of file statusmessage.h.
|
protected |
Private.
Definition at line 386 of file statusmessage.h.
|
protected |
Private.
Definition at line 389 of file statusmessage.h.
|
protected |
Private.
Definition at line 383 of file statusmessage.h.
|
protected |
Private.
Definition at line 392 of file statusmessage.h.