statemachine.cpp Example File
invoke-static/statemachine.cpp// // Statemachine code from reading SCXML file 'statemachine.scxml' // Created by: The Qt SCXML Compiler version 1 (Qt 5.12.6) // WARNING! All changes made in this file will be lost! // #include "statemachine.h" #include <qscxmlinvokableservice.h> #include <qscxmltabledata.h> #include <QScxmlNullDataModel> #if !defined(Q_QSCXMLC_OUTPUT_REVISION) #error "The header file 'statemachine.scxml' doesn't include <qscxmltabledata.h>." #elif Q_QSCXMLC_OUTPUT_REVISION != 1 #error "This file was generated using the qscxmlc from 5.12.6. It" #error "cannot be used with the include files from this version of Qt." #error "(The qscxmlc has changed too much.)" #endif struct Directions::Data: private QScxmlTableData { Data(Directions &stateMachine) : stateMachine(stateMachine) {} void init() { stateMachine.setTableData(this); stateMachine.setDataModel(&dataModel); } QString name() const override final { return string(0); } QScxmlExecutableContent::ContainerId initialSetup() const override final { return -1; } QScxmlExecutableContent::InstructionId *instructions() const override final { return theInstructions; } QScxmlExecutableContent::StringId *dataNames(int *count) const override final { *count = 0; return dataIds; } QScxmlExecutableContent::EvaluatorInfo evaluatorInfo(QScxmlExecutableContent::EvaluatorId evaluatorId) const override final { Q_ASSERT(evaluatorId >= 0); Q_ASSERT(evaluatorId < 0); return evaluators[evaluatorId]; } QScxmlExecutableContent::AssignmentInfo assignmentInfo(QScxmlExecutableContent::EvaluatorId assignmentId) const override final { Q_ASSERT(assignmentId >= 0); Q_ASSERT(assignmentId < 0); return assignments[assignmentId]; } QScxmlExecutableContent::ForeachInfo foreachInfo(QScxmlExecutableContent::EvaluatorId foreachId) const override final { Q_ASSERT(foreachId >= 0); Q_ASSERT(foreachId < 0); return foreaches[foreachId]; } QString string(QScxmlExecutableContent::StringId id) const override final { Q_ASSERT(id >= QScxmlExecutableContent::NoString); Q_ASSERT(id < 8); if (id == QScxmlExecutableContent::NoString) return QString(); return QString({static_cast<QStringData*>(strings.data + id)}); } const qint32 *stateMachineTable() const override final { return theStateMachineTable; } QScxmlInvokableServiceFactory *serviceFactory(int id) const override final; Directions &stateMachine; QScxmlNullDataModel dataModel; static QScxmlExecutableContent::ParameterInfo param(QScxmlExecutableContent::StringId name, QScxmlExecutableContent::EvaluatorId expr, QScxmlExecutableContent::StringId location) { QScxmlExecutableContent::ParameterInfo p; p.name = name; p.expr = expr; p.location = location; return p; } static QScxmlExecutableContent::InvokeInfo invoke( QScxmlExecutableContent::StringId id, QScxmlExecutableContent::StringId prefix, QScxmlExecutableContent::EvaluatorId expr, QScxmlExecutableContent::StringId location, QScxmlExecutableContent::StringId context, QScxmlExecutableContent::ContainerId finalize, bool autoforward) { QScxmlExecutableContent::InvokeInfo i; i.id = id; i.prefix = prefix; i.expr = expr; i.location = location; i.context = context; i.finalize = finalize; i.autoforward = autoforward; return i; } static qint32 theInstructions[]; static QScxmlExecutableContent::StringId dataIds[]; static QScxmlExecutableContent::EvaluatorInfo evaluators[]; static QScxmlExecutableContent::AssignmentInfo assignments[]; static QScxmlExecutableContent::ForeachInfo foreaches[]; static const qint32 theStateMachineTable[]; static struct Strings { QArrayData data[8]; qunicodechar stringdata[118]; } strings; }; Directions::Directions(QObject *parent) : QScxmlStateMachine(&staticMetaObject, parent) , data(new Data(*this)) { qRegisterMetaType<Directions *>(); data->init(); } Directions::~Directions() { delete data; } QScxmlInvokableServiceFactory *Directions::Data::serviceFactory(int id) const { switch (id) { case 0: return new QScxmlStaticScxmlServiceFactory(&::anywhere::staticMetaObject,invoke(-1, 7, -1, -1, 6, -1, false), {}, {}); default: Q_UNREACHABLE(); } } qint32 Directions::Data::theInstructions[] = { -1 }; QScxmlExecutableContent::StringId Directions::Data::dataIds[] = { -1 }; QScxmlExecutableContent::EvaluatorInfo Directions::Data::evaluators[] = { { -1, -1 } }; QScxmlExecutableContent::AssignmentInfo Directions::Data::assignments[] = { { -1, -1, -1 } }; QScxmlExecutableContent::ForeachInfo Directions::Data::foreaches[] = { { -1, -1, -1, -1 } }; #define STR_LIT(idx, ofs, len) \ Q_STATIC_STRING_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ qptrdiff(offsetof(Strings, stringdata) + ofs * sizeof(qunicodechar) - idx * sizeof(QArrayData)) \ ) Directions::Data::Strings Directions::Data::strings = {{ STR_LIT(0, 0, 10), STR_LIT(1, 11, 8), STR_LIT(2, 20, 9), STR_LIT(3, 30, 11), STR_LIT(4, 42, 7), STR_LIT(5, 50, 9), STR_LIT(6, 60, 37), STR_LIT(7, 98, 18) },{ 0x44,0x69,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e,0x73,0, // 0: Directions 0x61,0x6e,0x79,0x70,0x6c,0x61,0x63,0x65,0, // 1: anyplace 0x67,0x6f,0x4e,0x6f,0x77,0x68,0x65,0x72,0x65,0, // 2: goNowhere 0x67,0x6f,0x53,0x6f,0x6d,0x65,0x77,0x68,0x65,0x72,0x65,0, // 3: goSomewhere 0x6e,0x6f,0x77,0x68,0x65,0x72,0x65,0, // 4: nowhere 0x73,0x6f,0x6d,0x65,0x77,0x68,0x65,0x72,0x65,0, // 5: somewhere 0x69,0x6e,0x76,0x6f,0x6b,0x65,0x20,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x20,0x69,0x6e,0x20,0x73,0x74,0x61,0x74,0x65,0x20,0x73,0x6f,0x6d,0x65,0x77,0x68,0x65,0x72,0x65,0, // 6: invoke instruction in state somewhere 0x73,0x6f,0x6d,0x65,0x77,0x68,0x65,0x72,0x65,0x2e,0x73,0x65,0x73,0x73,0x69,0x6f,0x6e,0x2d,0 // 7: somewhere.session- }}; const qint32 Directions::Data::theStateMachineTable[] = { 0x1, // version 0, // name 0, // data-model 18, // child states array offset 2, // transition to initial states -1, // initial setup 0, // binding 0, // maxServiceId 14, 3, // state offset and count 47, 4, // transition offset and count 71, 22, // array offset and size // States: 1, -1, 0, 3, -1, -1, -1, -1, 10, 13, -1, 4, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, 5, 0, 0, -1, -1, -1, -1, -1, -1, -1, 8, // Transitions: 2, -1, 1, 0, 0, -1, 6, -1, 1, 0, 4, -1, -1, -1, 2, -1, 20, -1, -1, -1, 2, 0, 16, -1, // Arrays: 1, 1, 1, 2, 1, 2, 1, 3, 1, 0, 2, 1, 2, 2, 0, 1, 1, 1, 1, 0, 1, 0, 0xc0ff33 // terminator }; struct qt_meta_stringdata_Directions_t { QByteArrayData data[10]; unsigned char stringdata0[101]; }; #define QT_MOC_LITERAL(idx, ofs, len) \ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ qptrdiff(offsetof(qt_meta_stringdata_Directions_t, stringdata0) + ofs \ - idx * sizeof(QByteArrayData)) \ ) static const qt_meta_stringdata_Directions_t qt_meta_stringdata_Directions = { { QT_MOC_LITERAL(0, 0, 10), // "Directions" QT_MOC_LITERAL(1, 11, 15), // "anyplaceChanged" QT_MOC_LITERAL(2, 27, 0), // "" QT_MOC_LITERAL(3, 28, 6), // "active" QT_MOC_LITERAL(4, 35, 14), // "nowhereChanged" QT_MOC_LITERAL(5, 50, 16), // "somewhereChanged" QT_MOC_LITERAL(6, 67, 6), // "parent" QT_MOC_LITERAL(7, 74, 8), // "anyplace" QT_MOC_LITERAL(8, 83, 7), // "nowhere" QT_MOC_LITERAL(9, 91, 9) // "somewhere" },{ 0x44,0x69,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e,0x73,0, // 0: Directions 0x61,0x6e,0x79,0x70,0x6c,0x61,0x63,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0, // 1: anyplaceChanged 0, // 2: 0x61,0x63,0x74,0x69,0x76,0x65,0, // 3: active 0x6e,0x6f,0x77,0x68,0x65,0x72,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0, // 4: nowhereChanged 0x73,0x6f,0x6d,0x65,0x77,0x68,0x65,0x72,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0, // 5: somewhereChanged 0x70,0x61,0x72,0x65,0x6e,0x74,0, // 6: parent 0x61,0x6e,0x79,0x70,0x6c,0x61,0x63,0x65,0, // 7: anyplace 0x6e,0x6f,0x77,0x68,0x65,0x72,0x65,0, // 8: nowhere 0x73,0x6f,0x6d,0x65,0x77,0x68,0x65,0x72,0x65,0 // 9: somewhere }}; #undef QT_MOC_LITERAL static const uint qt_meta_data_Directions[] = { // content: 8, // revision 0, // classname 0, 0, // classinfo 3, 14, // methods 3, 41, // properties 0, 0, // enums/sets 1, 53, // constructors 0, // flags 3, // signalCount // signals: name, argc, parameters, tag, flags 1, 1, 29, 2, 0x06 /* Public */, 4, 1, 32, 2, 0x06 /* Public */, 5, 1, 35, 2, 0x06 /* Public */, // signals: parameters QMetaType::Void, QMetaType::Bool, 3, QMetaType::Void, QMetaType::Bool, 3, QMetaType::Void, QMetaType::Bool, 3, // constructors: parameters 0x80000000 | 2, QMetaType::QObjectStar, 6, // properties: name, type, flags 7, QMetaType::Bool, 0x006a6001, 8, QMetaType::Bool, 0x006a6001, 9, QMetaType::Bool, 0x006a6001, // properties: notify_signal_id 0, 1, 2, // constructors: name, argc, parameters, tag, flags 0, 1, 38, 2, 0x0e /* Public */, 0 // eod }; void Directions::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) { if (_c == QMetaObject::CreateInstance) { switch (_id) { case 0: { Directions *_r = new Directions((*reinterpret_cast< QObject **>(_a[1]))); if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break; default: break; } } else if (_c == QMetaObject::InvokeMetaMethod) { Directions *_t = static_cast<Directions *>(_o); Q_UNUSED(_t) switch (_id) { case 0: QMetaObject::activate(_o, &staticMetaObject, 0, _a); break; case 1: QMetaObject::activate(_o, &staticMetaObject, 1, _a); break; case 2: QMetaObject::activate(_o, &staticMetaObject, 2, _a); break; default: ; } } else if (_c == QMetaObject::IndexOfMethod) { int *result = reinterpret_cast<int *>(_a[0]); void **func = reinterpret_cast<void **>(_a[1]); Q_UNUSED(result); Q_UNUSED(func); } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { Directions *_t = static_cast<Directions *>(_o); Q_UNUSED(_t) void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< bool*>(_v) = _t->isActive(0); break; case 1: *reinterpret_cast< bool*>(_v) = _t->isActive(1); break; case 2: *reinterpret_cast< bool*>(_v) = _t->isActive(2); break; default: break; } } else if (_c == QMetaObject::WriteProperty) { } else if (_c == QMetaObject::ResetProperty) { } #endif // QT_NO_PROPERTIES } const QMetaObject Directions::staticMetaObject = { { &QScxmlStateMachine::staticMetaObject, qt_meta_stringdata_Directions.data, qt_meta_data_Directions, qt_static_metacall, nullptr, nullptr} }; const QMetaObject *Directions::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; } void *Directions::qt_metacast(const char *_clname) { if (!_clname) return nullptr; if (!strcmp(_clname, reinterpret_cast<const char *>( qt_meta_stringdata_Directions.stringdata0))) return static_cast<void*>(const_cast< Directions*>(this)); return QScxmlStateMachine::qt_metacast(_clname); } int Directions::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QScxmlStateMachine::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 3) qt_static_metacall(this, _c, _id, _a); _id -= 3; } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { if (_id < 3) *reinterpret_cast<int*>(_a[0]) = -1; _id -= 3; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) { qt_static_metacall(this, _c, _id, _a); _id -= 3; } else if (_c == QMetaObject::QueryPropertyDesignable) { _id -= 3; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 3; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 3; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 3; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 3; } #endif // QT_NO_PROPERTIES return _id; } struct anywhere::Data: private QScxmlTableData { Data(anywhere &stateMachine) : stateMachine(stateMachine) {} void init() { stateMachine.setTableData(this); stateMachine.setDataModel(&dataModel); } QString name() const override final { return string(0); } QScxmlExecutableContent::ContainerId initialSetup() const override final { return -1; } QScxmlExecutableContent::InstructionId *instructions() const override final { return theInstructions; } QScxmlExecutableContent::StringId *dataNames(int *count) const override final { *count = 0; return dataIds; } QScxmlExecutableContent::EvaluatorInfo evaluatorInfo(QScxmlExecutableContent::EvaluatorId evaluatorId) const override final { Q_ASSERT(evaluatorId >= 0); Q_ASSERT(evaluatorId < 0); return evaluators[evaluatorId]; } QScxmlExecutableContent::AssignmentInfo assignmentInfo(QScxmlExecutableContent::EvaluatorId assignmentId) const override final { Q_ASSERT(assignmentId >= 0); Q_ASSERT(assignmentId < 0); return assignments[assignmentId]; } QScxmlExecutableContent::ForeachInfo foreachInfo(QScxmlExecutableContent::EvaluatorId foreachId) const override final { Q_ASSERT(foreachId >= 0); Q_ASSERT(foreachId < 0); return foreaches[foreachId]; } QString string(QScxmlExecutableContent::StringId id) const override final { Q_ASSERT(id >= QScxmlExecutableContent::NoString); Q_ASSERT(id < 5); if (id == QScxmlExecutableContent::NoString) return QString(); return QString({static_cast<QStringData*>(strings.data + id)}); } const qint32 *stateMachineTable() const override final { return theStateMachineTable; } QScxmlInvokableServiceFactory *serviceFactory(int id) const override final; anywhere &stateMachine; QScxmlNullDataModel dataModel; static QScxmlExecutableContent::ParameterInfo param(QScxmlExecutableContent::StringId name, QScxmlExecutableContent::EvaluatorId expr, QScxmlExecutableContent::StringId location) { QScxmlExecutableContent::ParameterInfo p; p.name = name; p.expr = expr; p.location = location; return p; } static QScxmlExecutableContent::InvokeInfo invoke( QScxmlExecutableContent::StringId id, QScxmlExecutableContent::StringId prefix, QScxmlExecutableContent::EvaluatorId expr, QScxmlExecutableContent::StringId location, QScxmlExecutableContent::StringId context, QScxmlExecutableContent::ContainerId finalize, bool autoforward) { QScxmlExecutableContent::InvokeInfo i; i.id = id; i.prefix = prefix; i.expr = expr; i.location = location; i.context = context; i.finalize = finalize; i.autoforward = autoforward; return i; } static qint32 theInstructions[]; static QScxmlExecutableContent::StringId dataIds[]; static QScxmlExecutableContent::EvaluatorInfo evaluators[]; static QScxmlExecutableContent::AssignmentInfo assignments[]; static QScxmlExecutableContent::ForeachInfo foreaches[]; static const qint32 theStateMachineTable[]; static struct Strings { QArrayData data[5]; qunicodechar stringdata[36]; } strings; }; anywhere::anywhere(QObject *parent) : QScxmlStateMachine(&staticMetaObject, parent) , data(new Data(*this)) { qRegisterMetaType<anywhere *>(); data->init(); } anywhere::~anywhere() { delete data; } QScxmlInvokableServiceFactory *anywhere::Data::serviceFactory(int id) const { Q_UNUSED(id); Q_UNREACHABLE(); } qint32 anywhere::Data::theInstructions[] = { -1 }; QScxmlExecutableContent::StringId anywhere::Data::dataIds[] = { -1 }; QScxmlExecutableContent::EvaluatorInfo anywhere::Data::evaluators[] = { { -1, -1 } }; QScxmlExecutableContent::AssignmentInfo anywhere::Data::assignments[] = { { -1, -1, -1 } }; QScxmlExecutableContent::ForeachInfo anywhere::Data::foreaches[] = { { -1, -1, -1, -1 } }; #define STR_LIT(idx, ofs, len) \ Q_STATIC_STRING_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ qptrdiff(offsetof(Strings, stringdata) + ofs * sizeof(qunicodechar) - idx * sizeof(QArrayData)) \ ) anywhere::Data::Strings anywhere::Data::strings = {{ STR_LIT(0, 0, 8), STR_LIT(1, 9, 4), STR_LIT(2, 14, 7), STR_LIT(3, 22, 5), STR_LIT(4, 28, 6) },{ 0x61,0x6e,0x79,0x77,0x68,0x65,0x72,0x65,0, // 0: anywhere 0x68,0x65,0x72,0x65,0, // 1: here 0x67,0x6f,0x54,0x68,0x65,0x72,0x65,0, // 2: goThere 0x74,0x68,0x65,0x72,0x65,0, // 3: there 0x67,0x6f,0x48,0x65,0x72,0x65,0 // 4: goHere }}; const qint32 anywhere::Data::theStateMachineTable[] = { 0x1, // version 0, // name 0, // data-model 12, // child states array offset 2, // transition to initial states -1, // initial setup 0, // binding -1, // maxServiceId 14, 2, // state offset and count 36, 3, // transition offset and count 54, 17, // array offset and size // States: 1, -1, 0, -1, -1, -1, -1, -1, -1, 4, -1, 3, -1, 0, -1, -1, -1, -1, -1, -1, 10, -1, // Transitions: 2, -1, 1, 0, 0, -1, 8, -1, 1, 1, 6, -1, -1, -1, 2, -1, 15, -1, // Arrays: 1, 1, 1, 2, 1, 0, 1, 0, 1, 4, 1, 1, 2, 0, 1, 1, 0, 0xc0ff33 // terminator }; struct qt_meta_stringdata_anywhere_t { QByteArrayData data[8]; unsigned char stringdata0[60]; }; #define QT_MOC_LITERAL(idx, ofs, len) \ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ qptrdiff(offsetof(qt_meta_stringdata_anywhere_t, stringdata0) + ofs \ - idx * sizeof(QByteArrayData)) \ ) static const qt_meta_stringdata_anywhere_t qt_meta_stringdata_anywhere = { { QT_MOC_LITERAL(0, 0, 8), // "anywhere" QT_MOC_LITERAL(1, 9, 11), // "hereChanged" QT_MOC_LITERAL(2, 21, 0), // "" QT_MOC_LITERAL(3, 22, 6), // "active" QT_MOC_LITERAL(4, 29, 12), // "thereChanged" QT_MOC_LITERAL(5, 42, 6), // "parent" QT_MOC_LITERAL(6, 49, 4), // "here" QT_MOC_LITERAL(7, 54, 5) // "there" },{ 0x61,0x6e,0x79,0x77,0x68,0x65,0x72,0x65,0, // 0: anywhere 0x68,0x65,0x72,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0, // 1: hereChanged 0, // 2: 0x61,0x63,0x74,0x69,0x76,0x65,0, // 3: active 0x74,0x68,0x65,0x72,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0, // 4: thereChanged 0x70,0x61,0x72,0x65,0x6e,0x74,0, // 5: parent 0x68,0x65,0x72,0x65,0, // 6: here 0x74,0x68,0x65,0x72,0x65,0 // 7: there }}; #undef QT_MOC_LITERAL static const uint qt_meta_data_anywhere[] = { // content: 8, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 2, 33, // properties 0, 0, // enums/sets 1, 41, // constructors 0, // flags 2, // signalCount // signals: name, argc, parameters, tag, flags 1, 1, 24, 2, 0x06 /* Public */, 4, 1, 27, 2, 0x06 /* Public */, // signals: parameters QMetaType::Void, QMetaType::Bool, 3, QMetaType::Void, QMetaType::Bool, 3, // constructors: parameters 0x80000000 | 2, QMetaType::QObjectStar, 5, // properties: name, type, flags 6, QMetaType::Bool, 0x006a6001, 7, QMetaType::Bool, 0x006a6001, // properties: notify_signal_id 0, 1, // constructors: name, argc, parameters, tag, flags 0, 1, 30, 2, 0x0e /* Public */, 0 // eod }; void anywhere::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) { if (_c == QMetaObject::CreateInstance) { switch (_id) { case 0: { anywhere *_r = new anywhere((*reinterpret_cast< QObject **>(_a[1]))); if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break; default: break; } } else if (_c == QMetaObject::InvokeMetaMethod) { anywhere *_t = static_cast<anywhere *>(_o); Q_UNUSED(_t) switch (_id) { case 0: QMetaObject::activate(_o, &staticMetaObject, 0, _a); break; case 1: QMetaObject::activate(_o, &staticMetaObject, 1, _a); break; default: ; } } else if (_c == QMetaObject::IndexOfMethod) { int *result = reinterpret_cast<int *>(_a[0]); void **func = reinterpret_cast<void **>(_a[1]); Q_UNUSED(result); Q_UNUSED(func); } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { anywhere *_t = static_cast<anywhere *>(_o); Q_UNUSED(_t) void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< bool*>(_v) = _t->isActive(0); break; case 1: *reinterpret_cast< bool*>(_v) = _t->isActive(1); break; default: break; } } else if (_c == QMetaObject::WriteProperty) { } else if (_c == QMetaObject::ResetProperty) { } #endif // QT_NO_PROPERTIES } const QMetaObject anywhere::staticMetaObject = { { &QScxmlStateMachine::staticMetaObject, qt_meta_stringdata_anywhere.data, qt_meta_data_anywhere, qt_static_metacall, nullptr, nullptr} }; const QMetaObject *anywhere::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; } void *anywhere::qt_metacast(const char *_clname) { if (!_clname) return nullptr; if (!strcmp(_clname, reinterpret_cast<const char *>( qt_meta_stringdata_anywhere.stringdata0))) return static_cast<void*>(const_cast< anywhere*>(this)); return QScxmlStateMachine::qt_metacast(_clname); } int anywhere::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QScxmlStateMachine::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 2) qt_static_metacall(this, _c, _id, _a); _id -= 2; } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { if (_id < 2) *reinterpret_cast<int*>(_a[0]) = -1; _id -= 2; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) { qt_static_metacall(this, _c, _id, _a); _id -= 2; } else if (_c == QMetaObject::QueryPropertyDesignable) { _id -= 2; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 2; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 2; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 2; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 2; } #endif // QT_NO_PROPERTIES return _id; }