moc_patternlayout.cpp 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'patternlayout.h'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include <memory>
  9. #include "../../../../Logger/log4qt/patternlayout.h"
  10. #include <QtCore/qbytearray.h>
  11. #include <QtCore/qmetatype.h>
  12. #if !defined(Q_MOC_OUTPUT_REVISION)
  13. #error "The header file 'patternlayout.h' doesn't include <QObject>."
  14. #elif Q_MOC_OUTPUT_REVISION != 67
  15. #error "This file was generated using the moc from 5.14.2. It"
  16. #error "cannot be used with the include files from this version of Qt."
  17. #error "(The moc has changed too much.)"
  18. #endif
  19. QT_BEGIN_MOC_NAMESPACE
  20. QT_WARNING_PUSH
  21. QT_WARNING_DISABLE_DEPRECATED
  22. struct qt_meta_stringdata_Log4Qt__PatternLayout_t {
  23. QByteArrayData data[5];
  24. char stringdata0[109];
  25. };
  26. #define QT_MOC_LITERAL(idx, ofs, len) \
  27. Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
  28. qptrdiff(offsetof(qt_meta_stringdata_Log4Qt__PatternLayout_t, stringdata0) + ofs \
  29. - idx * sizeof(QByteArrayData)) \
  30. )
  31. static const qt_meta_stringdata_Log4Qt__PatternLayout_t qt_meta_stringdata_Log4Qt__PatternLayout = {
  32. {
  33. QT_MOC_LITERAL(0, 0, 21), // "Log4Qt::PatternLayout"
  34. QT_MOC_LITERAL(1, 22, 17), // "conversionPattern"
  35. QT_MOC_LITERAL(2, 40, 17), // "ConversionPattern"
  36. QT_MOC_LITERAL(3, 58, 26), // "DEFAULT_CONVERSION_PATTERN"
  37. QT_MOC_LITERAL(4, 85, 23) // "TTCC_CONVERSION_PATTERN"
  38. },
  39. "Log4Qt::PatternLayout\0conversionPattern\0"
  40. "ConversionPattern\0DEFAULT_CONVERSION_PATTERN\0"
  41. "TTCC_CONVERSION_PATTERN"
  42. };
  43. #undef QT_MOC_LITERAL
  44. static const uint qt_meta_data_Log4Qt__PatternLayout[] = {
  45. // content:
  46. 8, // revision
  47. 0, // classname
  48. 0, 0, // classinfo
  49. 0, 0, // methods
  50. 1, 14, // properties
  51. 1, 17, // enums/sets
  52. 0, 0, // constructors
  53. 0, // flags
  54. 0, // signalCount
  55. // properties: name, type, flags
  56. 1, QMetaType::QString, 0x00095103,
  57. // enums: name, alias, flags, count, data
  58. 2, 2, 0x0, 2, 22,
  59. // enum data: key, value
  60. 3, uint(Log4Qt::PatternLayout::DEFAULT_CONVERSION_PATTERN),
  61. 4, uint(Log4Qt::PatternLayout::TTCC_CONVERSION_PATTERN),
  62. 0 // eod
  63. };
  64. void Log4Qt::PatternLayout::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  65. {
  66. #ifndef QT_NO_PROPERTIES
  67. if (_c == QMetaObject::ReadProperty) {
  68. auto *_t = static_cast<PatternLayout *>(_o);
  69. Q_UNUSED(_t)
  70. void *_v = _a[0];
  71. switch (_id) {
  72. case 0: *reinterpret_cast< QString*>(_v) = _t->conversionPattern(); break;
  73. default: break;
  74. }
  75. } else if (_c == QMetaObject::WriteProperty) {
  76. auto *_t = static_cast<PatternLayout *>(_o);
  77. Q_UNUSED(_t)
  78. void *_v = _a[0];
  79. switch (_id) {
  80. case 0: _t->setConversionPattern(*reinterpret_cast< QString*>(_v)); break;
  81. default: break;
  82. }
  83. } else if (_c == QMetaObject::ResetProperty) {
  84. }
  85. #endif // QT_NO_PROPERTIES
  86. Q_UNUSED(_o);
  87. Q_UNUSED(_id);
  88. Q_UNUSED(_c);
  89. Q_UNUSED(_a);
  90. }
  91. QT_INIT_METAOBJECT const QMetaObject Log4Qt::PatternLayout::staticMetaObject = { {
  92. QMetaObject::SuperData::link<Layout::staticMetaObject>(),
  93. qt_meta_stringdata_Log4Qt__PatternLayout.data,
  94. qt_meta_data_Log4Qt__PatternLayout,
  95. qt_static_metacall,
  96. nullptr,
  97. nullptr
  98. } };
  99. const QMetaObject *Log4Qt::PatternLayout::metaObject() const
  100. {
  101. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  102. }
  103. void *Log4Qt::PatternLayout::qt_metacast(const char *_clname)
  104. {
  105. if (!_clname) return nullptr;
  106. if (!strcmp(_clname, qt_meta_stringdata_Log4Qt__PatternLayout.stringdata0))
  107. return static_cast<void*>(this);
  108. return Layout::qt_metacast(_clname);
  109. }
  110. int Log4Qt::PatternLayout::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  111. {
  112. _id = Layout::qt_metacall(_c, _id, _a);
  113. if (_id < 0)
  114. return _id;
  115. #ifndef QT_NO_PROPERTIES
  116. if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
  117. || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
  118. qt_static_metacall(this, _c, _id, _a);
  119. _id -= 1;
  120. } else if (_c == QMetaObject::QueryPropertyDesignable) {
  121. _id -= 1;
  122. } else if (_c == QMetaObject::QueryPropertyScriptable) {
  123. _id -= 1;
  124. } else if (_c == QMetaObject::QueryPropertyStored) {
  125. _id -= 1;
  126. } else if (_c == QMetaObject::QueryPropertyEditable) {
  127. _id -= 1;
  128. } else if (_c == QMetaObject::QueryPropertyUser) {
  129. _id -= 1;
  130. }
  131. #endif // QT_NO_PROPERTIES
  132. return _id;
  133. }
  134. QT_WARNING_POP
  135. QT_END_MOC_NAMESPACE