6 #ifndef SWIFT_MISC_LOGCATEGORY_H
7 #define SWIFT_MISC_LOGCATEGORY_H
34 CLogCategory(
const QString &categoryString) : m_string(categoryString) {}
37 CLogCategory(
const char *categoryString) : m_string(categoryString) {}
40 bool startsWith(
const QString &prefix)
const {
return m_string.startsWith(prefix); }
43 bool endsWith(
const QString &suffix)
const {
return m_string.endsWith(suffix); }
46 bool contains(
const QString &substring)
const {
return m_string.contains(substring); }
49 QString convertToQString(
bool i18n =
false)
const;
A log category is an arbitrary string tag which can be attached to log messages.
CLogCategory(const QString &categoryString)
Constructor.
CLogCategory()=default
Constructor.
CLogCategory(const char *categoryString)
Constructor.
bool startsWith(const QString &prefix) const
Returns true if the category string starts with the given prefix.
bool endsWith(const QString &suffix) const
Returns true if the category string ends with the given suffix.
bool contains(const QString &substring) const
Returns true if the category string contains the given substring.
Mix of the most commonly used mixin classes.
Free functions in swift::misc.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...