奥特QT DDS 插件库
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

moc_AQTSampleMachinePlug.cpp 8.2KB

5 个月前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'AQTSampleMachinePlug.hpp'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 68 (Qt 6.8.1)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include "../../../../plugins/AQTSampleMachinePlug/AQTSampleMachinePlug.hpp"
  9. #include <QtCore/qmetatype.h>
  10. #include <QtCore/qplugin.h>
  11. #include <QtCore/qtmochelpers.h>
  12. #include <memory>
  13. #include <QtCore/qxptype_traits.h>
  14. #if !defined(Q_MOC_OUTPUT_REVISION)
  15. #error "The header file 'AQTSampleMachinePlug.hpp' doesn't include <QObject>."
  16. #elif Q_MOC_OUTPUT_REVISION != 68
  17. #error "This file was generated using the moc from 6.8.1. It"
  18. #error "cannot be used with the include files from this version of Qt."
  19. #error "(The moc has changed too much.)"
  20. #endif
  21. #ifndef Q_CONSTINIT
  22. #define Q_CONSTINIT
  23. #endif
  24. QT_WARNING_PUSH
  25. QT_WARNING_DISABLE_DEPRECATED
  26. QT_WARNING_DISABLE_GCC("-Wuseless-cast")
  27. namespace {
  28. struct qt_meta_tag_ZN20AQTSampleMachinePlugE_t {};
  29. } // unnamed namespace
  30. #ifdef QT_MOC_HAS_STRINGDATA
  31. static constexpr auto qt_meta_stringdata_ZN20AQTSampleMachinePlugE = QtMocHelpers::stringData(
  32. "AQTSampleMachinePlug",
  33. "messagePublished",
  34. "",
  35. "message",
  36. "index",
  37. "init",
  38. "publishOnce",
  39. "echo",
  40. "calculate",
  41. "a",
  42. "b"
  43. );
  44. #else // !QT_MOC_HAS_STRINGDATA
  45. #error "qtmochelpers.h not found or too old."
  46. #endif // !QT_MOC_HAS_STRINGDATA
  47. Q_CONSTINIT static const uint qt_meta_data_ZN20AQTSampleMachinePlugE[] = {
  48. // content:
  49. 12, // revision
  50. 0, // classname
  51. 0, 0, // classinfo
  52. 5, 14, // methods
  53. 0, 0, // properties
  54. 0, 0, // enums/sets
  55. 0, 0, // constructors
  56. 0, // flags
  57. 1, // signalCount
  58. // signals: name, argc, parameters, tag, flags, initial metatype offsets
  59. 1, 2, 44, 2, 0x06, 1 /* Public */,
  60. // methods: name, argc, parameters, tag, flags, initial metatype offsets
  61. 5, 0, 49, 2, 0x02, 4 /* Public */,
  62. 6, 0, 50, 2, 0x02, 5 /* Public */,
  63. 7, 1, 51, 2, 0x02, 6 /* Public */,
  64. 8, 2, 54, 2, 0x02, 8 /* Public */,
  65. // signals: parameters
  66. QMetaType::Void, QMetaType::QString, QMetaType::Int, 3, 4,
  67. // methods: parameters
  68. QMetaType::Bool,
  69. QMetaType::Void,
  70. QMetaType::QString, QMetaType::QString, 3,
  71. QMetaType::Int, QMetaType::Int, QMetaType::Int, 9, 10,
  72. 0 // eod
  73. };
  74. Q_CONSTINIT const QMetaObject AQTSampleMachinePlug::staticMetaObject = { {
  75. QMetaObject::SuperData::link<QObject::staticMetaObject>(),
  76. qt_meta_stringdata_ZN20AQTSampleMachinePlugE.offsetsAndSizes,
  77. qt_meta_data_ZN20AQTSampleMachinePlugE,
  78. qt_static_metacall,
  79. nullptr,
  80. qt_incomplete_metaTypeArray<qt_meta_tag_ZN20AQTSampleMachinePlugE_t,
  81. // Q_OBJECT / Q_GADGET
  82. QtPrivate::TypeAndForceComplete<AQTSampleMachinePlug, std::true_type>,
  83. // method 'messagePublished'
  84. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  85. QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
  86. QtPrivate::TypeAndForceComplete<int, std::false_type>,
  87. // method 'init'
  88. QtPrivate::TypeAndForceComplete<bool, std::false_type>,
  89. // method 'publishOnce'
  90. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  91. // method 'echo'
  92. QtPrivate::TypeAndForceComplete<QString, std::false_type>,
  93. QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
  94. // method 'calculate'
  95. QtPrivate::TypeAndForceComplete<int, std::false_type>,
  96. QtPrivate::TypeAndForceComplete<int, std::false_type>,
  97. QtPrivate::TypeAndForceComplete<int, std::false_type>
  98. >,
  99. nullptr
  100. } };
  101. void AQTSampleMachinePlug::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  102. {
  103. auto *_t = static_cast<AQTSampleMachinePlug *>(_o);
  104. if (_c == QMetaObject::InvokeMetaMethod) {
  105. switch (_id) {
  106. case 0: _t->messagePublished((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<int>>(_a[2]))); break;
  107. case 1: { bool _r = _t->init();
  108. if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
  109. case 2: _t->publishOnce(); break;
  110. case 3: { QString _r = _t->echo((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])));
  111. if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); } break;
  112. case 4: { int _r = _t->calculate((*reinterpret_cast< std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<int>>(_a[2])));
  113. if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); } break;
  114. default: ;
  115. }
  116. }
  117. if (_c == QMetaObject::IndexOfMethod) {
  118. int *result = reinterpret_cast<int *>(_a[0]);
  119. {
  120. using _q_method_type = void (AQTSampleMachinePlug::*)(const QString & , int );
  121. if (_q_method_type _q_method = &AQTSampleMachinePlug::messagePublished; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
  122. *result = 0;
  123. return;
  124. }
  125. }
  126. }
  127. }
  128. const QMetaObject *AQTSampleMachinePlug::metaObject() const
  129. {
  130. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  131. }
  132. void *AQTSampleMachinePlug::qt_metacast(const char *_clname)
  133. {
  134. if (!_clname) return nullptr;
  135. if (!strcmp(_clname, qt_meta_stringdata_ZN20AQTSampleMachinePlugE.stringdata0))
  136. return static_cast<void*>(this);
  137. if (!strcmp(_clname, "AuseftDDSPluginInterface"))
  138. return static_cast< AuseftDDSPluginInterface*>(this);
  139. if (!strcmp(_clname, "Com.Auseft.AuseftDDSPluginInterface"))
  140. return static_cast< AuseftDDSPluginInterface*>(this);
  141. return QObject::qt_metacast(_clname);
  142. }
  143. int AQTSampleMachinePlug::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  144. {
  145. _id = QObject::qt_metacall(_c, _id, _a);
  146. if (_id < 0)
  147. return _id;
  148. if (_c == QMetaObject::InvokeMetaMethod) {
  149. if (_id < 5)
  150. qt_static_metacall(this, _c, _id, _a);
  151. _id -= 5;
  152. }
  153. if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  154. if (_id < 5)
  155. *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
  156. _id -= 5;
  157. }
  158. return _id;
  159. }
  160. // SIGNAL 0
  161. void AQTSampleMachinePlug::messagePublished(const QString & _t1, int _t2)
  162. {
  163. void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
  164. QMetaObject::activate(this, &staticMetaObject, 0, _a);
  165. }
  166. #ifdef QT_MOC_EXPORT_PLUGIN_V2
  167. static constexpr unsigned char qt_pluginMetaDataV2_AQTSampleMachinePlug[] = {
  168. 0xbf,
  169. // "IID"
  170. 0x02, 0x78, 0x23, 'C', 'o', 'm', '.', 'A',
  171. 'u', 's', 'e', 'f', 't', '.', 'A', 'u',
  172. 's', 'e', 'f', 't', 'D', 'D', 'S', 'P',
  173. 'l', 'u', 'g', 'i', 'n', 'I', 'n', 't',
  174. 'e', 'r', 'f', 'a', 'c', 'e',
  175. // "className"
  176. 0x03, 0x74, 'A', 'Q', 'T', 'S', 'a', 'm',
  177. 'p', 'l', 'e', 'M', 'a', 'c', 'h', 'i',
  178. 'n', 'e', 'P', 'l', 'u', 'g',
  179. 0xff,
  180. };
  181. QT_MOC_EXPORT_PLUGIN_V2(AQTSampleMachinePlug, AQTSampleMachinePlug, qt_pluginMetaDataV2_AQTSampleMachinePlug)
  182. #else
  183. QT_PLUGIN_METADATA_SECTION
  184. Q_CONSTINIT static constexpr unsigned char qt_pluginMetaData_AQTSampleMachinePlug[] = {
  185. 'Q', 'T', 'M', 'E', 'T', 'A', 'D', 'A', 'T', 'A', ' ', '!',
  186. // metadata version, Qt version, architectural requirements
  187. 0, QT_VERSION_MAJOR, QT_VERSION_MINOR, qPluginArchRequirements(),
  188. 0xbf,
  189. // "IID"
  190. 0x02, 0x78, 0x23, 'C', 'o', 'm', '.', 'A',
  191. 'u', 's', 'e', 'f', 't', '.', 'A', 'u',
  192. 's', 'e', 'f', 't', 'D', 'D', 'S', 'P',
  193. 'l', 'u', 'g', 'i', 'n', 'I', 'n', 't',
  194. 'e', 'r', 'f', 'a', 'c', 'e',
  195. // "className"
  196. 0x03, 0x74, 'A', 'Q', 'T', 'S', 'a', 'm',
  197. 'p', 'l', 'e', 'M', 'a', 'c', 'h', 'i',
  198. 'n', 'e', 'P', 'l', 'u', 'g',
  199. 0xff,
  200. };
  201. QT_MOC_EXPORT_PLUGIN(AQTSampleMachinePlug, AQTSampleMachinePlug)
  202. #endif // QT_MOC_EXPORT_PLUGIN_V2
  203. QT_WARNING_POP